Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0009226/0.0009226, allocations: 78.66 kB / 21.42 MB, free: 3.074 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001153/0.001153, allocations: 169.9 kB / 24.82 MB, free: 9.312 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.058/1.058, allocations: 177.1 MB / 205.3 MB, free: 5.496 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|PID.I.y|dcpm.la.i|firstOrder.y|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled") translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|PID.I.y|dcpm.la.i|firstOrder.y|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.533e-06/1.533e-06, allocations: 0 / 273.4 MB, free: 1.277 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.185e-05/1.339e-05, allocations: 2.312 kB / 273.4 MB, free: 1.273 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled): time 0.00681/0.006824, allocations: 7.896 MB / 281.3 MB, free: 9.336 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.003543/0.01037, allocations: 2.672 MB / 284 MB, free: 6.656 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004206/0.01079, allocations: 27.88 kB / 284 MB, free: 6.629 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000899/0.01169, allocations: 0.516 MB / 284.5 MB, free: 6.109 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0006017/0.01229, allocations: 484.2 kB / 285 MB, free: 5.633 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004459/0.01273, allocations: 375.4 kB / 285.4 MB, free: 5.266 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0009677/0.0137, allocations: 1.553 MB / 286.9 MB, free: 3.707 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004341/0.01414, allocations: 392 kB / 287.3 MB, free: 3.297 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007271/0.01486, allocations: 0.8728 MB / 288.2 MB, free: 2.422 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003931/0.01526, allocations: 466.5 kB / 288.6 MB, free: 1.965 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001151/0.01537, allocations: 140 kB / 288.8 MB, free: 1.828 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002034/0.01557, allocations: 176 kB / 288.9 MB, free: 1.656 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001397/0.01571, allocations: 298.8 kB / 289.2 MB, free: 1.363 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002845/0.016, allocations: 450.8 kB / 289.7 MB, free: 0.9219 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.1094/0.1254, allocations: 0.9415 MB / 290.6 MB, free: 18.9 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.103e-06/0.1254, allocations: 1.188 kB / 290.6 MB, free: 18.9 MB / 266.7 MB Notification: Performance of FrontEnd: time 8.92e-07/0.1254, allocations: 0 / 290.6 MB, free: 18.9 MB / 266.7 MB Notification: Performance of Transformations before backend: time 5.139e-05/0.1255, allocations: 2.688 kB / 290.6 MB, free: 18.9 MB / 266.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 247 * Number of variables: 247 Notification: Performance of Generate backend data structure: time 0.002044/0.1275, allocations: 1.576 MB / 292.2 MB, free: 18.08 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.032e-05/0.1275, allocations: 9.125 kB / 292.2 MB, free: 18.08 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005073/0.1281, allocations: 271.2 kB / 292.5 MB, free: 18.01 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008325/0.1289, allocations: 0.7084 MB / 293.2 MB, free: 17.72 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.128e-05/0.1289, allocations: 73.42 kB / 293.2 MB, free: 17.72 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001046/0.129, allocations: 106 kB / 293.3 MB, free: 17.71 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008496/0.1299, allocations: 0.812 MB / 294.2 MB, free: 17.39 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.478e-05/0.1299, allocations: 10.67 kB / 294.2 MB, free: 17.38 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.885e-05/0.13, allocations: 40.59 kB / 294.2 MB, free: 17.38 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.816e-05/0.13, allocations: 23.5 kB / 294.2 MB, free: 17.38 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004431/0.1305, allocations: 280.7 kB / 294.5 MB, free: 17.37 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003414/0.1339, allocations: 3.975 MB / 298.5 MB, free: 15.16 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003938/0.1343, allocations: 254.9 kB / 298.7 MB, free: 15.12 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.027e-05/0.1344, allocations: 76.19 kB / 298.8 MB, free: 15.11 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.824e-05/0.1344, allocations: 11.78 kB / 298.8 MB, free: 15.11 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.934e-05/0.1344, allocations: 46.59 kB / 298.9 MB, free: 15.06 MB / 266.7 MB Notification: Performance of pre-optimization done (n=37): time 1.643e-06/0.1344, allocations: 0 / 298.9 MB, free: 15.06 MB / 266.7 MB Notification: Performance of matching and sorting (n=40): time 0.001097/0.1355, allocations: 0.7322 MB / 299.6 MB, free: 14.74 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.883e-05/0.1355, allocations: 138.4 kB / 299.7 MB, free: 14.58 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006386/0.1362, allocations: 0.7865 MB / 300.5 MB, free: 14.37 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.993e-05/0.1362, allocations: 36.64 kB / 300.6 MB, free: 14.34 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000274/0.1365, allocations: 0.6735 MB / 301.2 MB, free: 13.97 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.259e-05/0.1365, allocations: 151.4 kB / 301.4 MB, free: 13.88 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001303/0.1367, allocations: 149.8 kB / 301.5 MB, free: 13.84 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 5.879e-05/0.1367, allocations: 0.5089 MB / 302 MB, free: 13.36 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001021/0.1368, allocations: 77.47 kB / 302.1 MB, free: 13.34 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002315/0.1371, allocations: 0.6062 MB / 302.7 MB, free: 12.65 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003772/0.1374, allocations: 0.6309 MB / 303.3 MB, free: 12.09 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.396e-06/0.1374, allocations: 7.156 kB / 303.3 MB, free: 12.08 MB / 266.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.0006516/0.1381, allocations: 0.5699 MB / 303.9 MB, free: 11.98 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.838e-05/0.1381, allocations: 14.38 kB / 303.9 MB, free: 11.98 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.438e-05/0.1381, allocations: 12.03 kB / 303.9 MB, free: 11.98 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001019/0.1382, allocations: 32.45 kB / 304 MB, free: 11.96 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003249/0.1386, allocations: 169.7 kB / 304.1 MB, free: 11.96 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004966/0.139, allocations: 1.739 MB / 305.9 MB, free: 10.25 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002822/0.1393, allocations: 34.72 kB / 305.9 MB, free: 10.25 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.961e-05/0.1394, allocations: 32.36 kB / 305.9 MB, free: 10.25 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.000178/0.1395, allocations: 205.9 kB / 306.1 MB, free: 10.12 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0002227/0.1398, allocations: 0.6039 MB / 306.8 MB, free: 9.434 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0003584/0.1401, allocations: 0.6348 MB / 307.4 MB, free: 8.859 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 7.664e-06/0.1401, allocations: 4.125 kB / 307.4 MB, free: 8.859 MB / 266.7 MB Notification: Performance of matching and sorting (n=91) (initialization_lambda0): time 0.0005745/0.1407, allocations: 0.5768 MB / 308 MB, free: 8.75 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.103e-05/0.1407, allocations: 9.625 kB / 308 MB, free: 8.75 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.327e-06/0.1407, allocations: 10.33 kB / 308 MB, free: 8.75 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 6.128e-05/0.1408, allocations: 33.69 kB / 308 MB, free: 8.738 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002778/0.1411, allocations: 170.8 kB / 308.2 MB, free: 8.738 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003897/0.1414, allocations: 1.719 MB / 309.9 MB, free: 7.039 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002621/0.1417, allocations: 35.8 kB / 309.9 MB, free: 7.035 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.792e-05/0.1417, allocations: 30.97 kB / 310 MB, free: 7.035 MB / 266.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 47 * Number of states: 0 () * Number of discrete variables: 1 (PID.I.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (90): * Single equations (assignments): 89 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001048/0.1418, allocations: 323.4 kB / 310.3 MB, free: 6.758 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.429e-05/0.1419, allocations: 102.3 kB / 310.4 MB, free: 6.711 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002962/0.1422, allocations: 292.8 kB / 310.7 MB, free: 6.645 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.907e-06/0.1422, allocations: 6.188 kB / 310.7 MB, free: 6.645 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.895e-06/0.1422, allocations: 6.656 kB / 310.7 MB, free: 6.641 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.839e-06/0.1422, allocations: 1.594 kB / 310.7 MB, free: 6.641 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009042/0.1431, allocations: 0.9544 MB / 311.6 MB, free: 6.258 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.765e-06/0.1431, allocations: 1.438 kB / 311.6 MB, free: 6.258 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001738/0.1433, allocations: 78.97 kB / 311.7 MB, free: 6.254 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.151e-05/0.1434, allocations: 28.62 kB / 311.7 MB, free: 6.242 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.578e-05/0.1434, allocations: 9.656 kB / 311.8 MB, free: 6.242 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003467/0.1437, allocations: 1.709 MB / 313.5 MB, free: 4.547 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.984e-06/0.1437, allocations: 6.062 kB / 313.5 MB, free: 4.543 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003931/0.1441, allocations: 0.5646 MB / 314 MB, free: 4.184 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001404/0.1443, allocations: 121.1 kB / 314.2 MB, free: 4.105 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.101e-05/0.1443, allocations: 21.2 kB / 314.2 MB, free: 4.094 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001765/0.1445, allocations: 16.41 kB / 314.2 MB, free: 4.09 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.761e-05/0.1445, allocations: 34.45 kB / 314.2 MB, free: 4.086 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.166e-05/0.1446, allocations: 10.62 kB / 314.2 MB, free: 4.082 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0002672/0.1448, allocations: 466.1 kB / 314.7 MB, free: 3.926 MB / 266.7 MB Notification: Performance of sort global known variables: time 5e-08/0.1448, allocations: 4 kB / 314.7 MB, free: 3.922 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0007084/0.1455, allocations: 342.2 kB / 315 MB, free: 3.895 MB / 266.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 5 (dcpm.inertiaRotor.w,dcpm.la.i,loadTorque.phi,firstOrder.y,PID.I.y) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (39): * Single equations (assignments): 38 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.000135/0.1457, allocations: 129.7 kB / 315.2 MB, free: 3.801 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0005872/0.1463, allocations: 0.8571 MB / 316 MB, free: 3.383 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 3.206e-06/0.1463, allocations: 0 / 316 MB, free: 3.383 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001318/0.1464, allocations: 276.3 kB / 316.3 MB, free: 3.199 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005912/0.147, allocations: 242.6 kB / 316.5 MB, free: 3.125 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001792/0.1488, allocations: 1.692 MB / 318.2 MB, free: 2.07 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.781e-05/0.1489, allocations: 174.1 kB / 318.4 MB, free: 1.922 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0002801/0.1491, allocations: 122.2 kB / 318.5 MB, free: 1.828 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000296/0.1494, allocations: 288.9 kB / 318.8 MB, free: 1.586 MB / 266.7 MB Notification: Performance of SimCode: time 6.11e-07/0.1494, allocations: 0 / 318.8 MB, free: 1.586 MB / 266.7 MB Notification: Performance of Templates: time 0.01398/0.1634, allocations: 11.52 MB / 330.3 MB, free: 6.656 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.sim & ./Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Machines/Examples/DCMachines/DCPM_CurrentControlled/DCPM_CurrentControlled.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.111659025773406]