Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008744/0.0008744, allocations: 85.05 kB / 21.5 MB, free: 2.988 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008284/0.0008284, allocations: 142.1 kB / 24.89 MB, free: 8.777 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.897/0.897, allocations: 173.4 MB / 201.5 MB, free: 8.754 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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.0.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.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.473e-06/1.473e-06, allocations: 0 / 268.5 MB, free: 6.016 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.33e-05/1.477e-05, allocations: 2.312 kB / 268.5 MB, free: 6.012 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled): time 0.008921/0.008935, allocations: 7.908 MB / 276.4 MB, free: 14.06 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.004737/0.01367, allocations: 2.714 MB / 279.1 MB, free: 11.34 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005648/0.01424, allocations: 39.81 kB / 279.1 MB, free: 11.3 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0009282/0.01517, allocations: 0.5276 MB / 279.7 MB, free: 10.77 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000849/0.01601, allocations: 484.2 kB / 280.1 MB, free: 10.29 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004427/0.01646, allocations: 371.4 kB / 280.5 MB, free: 9.926 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0009947/0.01745, allocations: 1.557 MB / 282.1 MB, free: 8.363 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004225/0.01787, allocations: 400 kB / 282.4 MB, free: 7.941 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006861/0.01856, allocations: 0.8651 MB / 283.3 MB, free: 7.074 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000414/0.01897, allocations: 474.5 kB / 283.8 MB, free: 6.609 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001143/0.01909, allocations: 140 kB / 283.9 MB, free: 6.473 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001897/0.01928, allocations: 168 kB / 284.1 MB, free: 6.309 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001422/0.01942, allocations: 302.8 kB / 284.4 MB, free: 6.012 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002852/0.01971, allocations: 454.8 kB / 284.8 MB, free: 5.566 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0008087/0.02051, allocations: 0.9416 MB / 285.8 MB, free: 4.621 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.659e-06/0.02052, allocations: 3.984 kB / 285.8 MB, free: 4.617 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.022e-06/0.02052, allocations: 0 / 285.8 MB, free: 4.617 MB / 266.7 MB Notification: Performance of Transformations before backend: time 8.776e-06/0.02053, allocations: 0 / 285.8 MB, free: 4.617 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.001615/0.02214, allocations: 1.421 MB / 287.2 MB, free: 3.168 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.871e-05/0.02217, allocations: 8.922 kB / 287.2 MB, free: 3.16 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003386/0.02251, allocations: 228.7 kB / 287.4 MB, free: 2.938 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006313/0.02314, allocations: 0.5847 MB / 288 MB, free: 2.32 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.05e-05/0.02318, allocations: 74.36 kB / 288.1 MB, free: 2.246 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.022e-05/0.02327, allocations: 104.4 kB / 288.2 MB, free: 2.145 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006013/0.02387, allocations: 0.763 MB / 288.9 MB, free: 1.324 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.368e-05/0.0239, allocations: 3.953 kB / 288.9 MB, free: 1.32 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.088e-05/0.02394, allocations: 47.94 kB / 289 MB, free: 1.273 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.583e-05/0.02395, allocations: 24 kB / 289 MB, free: 1.25 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002986/0.02425, allocations: 245.8 kB / 289.3 MB, free: 1.008 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09645/0.1207, allocations: 3.111 MB / 292.4 MB, free: 26.26 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003652/0.1211, allocations: 227.9 kB / 292.6 MB, free: 26.23 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.489e-05/0.1211, allocations: 68.69 kB / 292.7 MB, free: 26.23 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.326e-05/0.1212, allocations: 6.75 kB / 292.7 MB, free: 26.23 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.833e-05/0.1212, allocations: 42.17 kB / 292.7 MB, free: 26.19 MB / 266.7 MB Notification: Performance of pre-optimization done (n=37): time 2.094e-06/0.1212, allocations: 0 / 292.7 MB, free: 26.19 MB / 266.7 MB Notification: Performance of matching and sorting (n=40): time 0.001026/0.1222, allocations: 0.6644 MB / 293.4 MB, free: 26.02 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.383e-05/0.1222, allocations: 110.5 kB / 293.5 MB, free: 25.89 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005457/0.1228, allocations: 0.7213 MB / 294.2 MB, free: 25.75 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.039e-05/0.1228, allocations: 34.2 kB / 294.2 MB, free: 25.71 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001893/0.123, allocations: 0.5139 MB / 294.7 MB, free: 25.46 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.46e-05/0.1231, allocations: 153.4 kB / 294.9 MB, free: 25.38 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001098/0.1232, allocations: 141.6 kB / 295 MB, free: 25.36 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 3.935e-05/0.1232, allocations: 336.4 kB / 295.4 MB, free: 25.05 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.146e-05/0.1233, allocations: 66.52 kB / 295.4 MB, free: 25.04 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001709/0.1235, allocations: 444.3 kB / 295.9 MB, free: 24.58 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000325/0.1238, allocations: 0.5234 MB / 296.4 MB, free: 24.2 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.209e-06/0.1238, allocations: 3.375 kB / 296.4 MB, free: 24.2 MB / 266.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.0004792/0.1243, allocations: 471.8 kB / 296.8 MB, free: 24.14 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.604e-05/0.1243, allocations: 11.81 kB / 296.9 MB, free: 24.14 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.006e-05/0.1243, allocations: 10.22 kB / 296.9 MB, free: 24.14 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.627e-05/0.1244, allocations: 29.12 kB / 296.9 MB, free: 24.13 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003101/0.1247, allocations: 169.1 kB / 297.1 MB, free: 24.13 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004804/0.1252, allocations: 1.179 MB / 298.2 MB, free: 23 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002772/0.1255, allocations: 34.95 kB / 298.3 MB, free: 23 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.873e-05/0.1255, allocations: 34.58 kB / 298.3 MB, free: 23 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0001635/0.1256, allocations: 152.8 kB / 298.5 MB, free: 22.91 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.000174/0.1258, allocations: 445.1 kB / 298.9 MB, free: 22.46 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0003189/0.1261, allocations: 0.505 MB / 299.4 MB, free: 22.07 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 4.719e-06/0.1261, allocations: 3.281 kB / 299.4 MB, free: 22.07 MB / 266.7 MB Notification: Performance of matching and sorting (n=91) (initialization_lambda0): time 0.0004639/0.1266, allocations: 469.3 kB / 299.9 MB, free: 22.02 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.528e-06/0.1266, allocations: 8.719 kB / 299.9 MB, free: 22.02 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.907e-06/0.1266, allocations: 12.12 kB / 299.9 MB, free: 22.02 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 5.955e-05/0.1267, allocations: 33.12 kB / 299.9 MB, free: 22.01 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000282/0.127, allocations: 161 kB / 300.1 MB, free: 22 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00032/0.1273, allocations: 1.18 MB / 301.2 MB, free: 20.85 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000234/0.1275, allocations: 30.28 kB / 301.3 MB, free: 20.85 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.667e-05/0.1275, allocations: 32.14 kB / 301.3 MB, free: 20.85 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 9.681e-05/0.1276, allocations: 239.6 kB / 301.5 MB, free: 20.65 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.668e-05/0.1277, allocations: 66.33 kB / 301.6 MB, free: 20.64 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000274/0.128, allocations: 251.2 kB / 301.9 MB, free: 20.59 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.397e-06/0.128, allocations: 3.719 kB / 301.9 MB, free: 20.59 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.924e-06/0.128, allocations: 0 / 301.9 MB, free: 20.59 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.47e-06/0.128, allocations: 3.375 kB / 301.9 MB, free: 20.59 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008312/0.1288, allocations: 0.7068 MB / 302.6 MB, free: 20.31 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.417e-06/0.1288, allocations: 7.484 kB / 302.6 MB, free: 20.3 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000184/0.129, allocations: 74.08 kB / 302.6 MB, free: 20.3 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.154e-05/0.1291, allocations: 23.2 kB / 302.7 MB, free: 20.29 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.586e-05/0.1291, allocations: 11.22 kB / 302.7 MB, free: 20.29 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003047/0.1294, allocations: 1.155 MB / 303.8 MB, free: 19.15 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.964e-06/0.1294, allocations: 6.219 kB / 303.8 MB, free: 19.15 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003555/0.1298, allocations: 447.3 kB / 304.3 MB, free: 18.93 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001281/0.1299, allocations: 81.94 kB / 304.4 MB, free: 18.88 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.142e-05/0.1299, allocations: 8.734 kB / 304.4 MB, free: 18.88 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001611/0.1301, allocations: 23.02 kB / 304.4 MB, free: 18.88 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.454e-05/0.1301, allocations: 36.44 kB / 304.4 MB, free: 18.87 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.276e-05/0.1302, allocations: 10.42 kB / 304.4 MB, free: 18.87 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0003173/0.1305, allocations: 349.5 kB / 304.8 MB, free: 18.84 MB / 266.7 MB Notification: Performance of sort global known variables: time 7e-08/0.1305, allocations: 3.828 kB / 304.8 MB, free: 18.84 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0007005/0.1312, allocations: 348.9 kB / 305.1 MB, free: 18.84 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.0001202/0.1313, allocations: 103.2 kB / 305.2 MB, free: 18.77 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0005995/0.1319, allocations: 0.7227 MB / 305.9 MB, free: 18.45 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.784e-05/0.1319, allocations: 11.91 kB / 306 MB, free: 18.45 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001338/0.132, allocations: 219.5 kB / 306.2 MB, free: 18.32 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005315/0.1326, allocations: 233.6 kB / 306.4 MB, free: 18.3 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00183/0.1344, allocations: 1.649 MB / 308 MB, free: 17.42 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.768e-05/0.1345, allocations: 172.2 kB / 308.2 MB, free: 17.34 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0002684/0.1348, allocations: 114.6 kB / 308.3 MB, free: 17.32 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002791/0.135, allocations: 238 kB / 308.6 MB, free: 17.27 MB / 266.7 MB Notification: Performance of SimCode: time 5.41e-07/0.135, allocations: 4 kB / 308.6 MB, free: 17.26 MB / 266.7 MB Notification: Performance of Templates: time 0.01298/0.148, allocations: 11.49 MB / 320 MB, free: 8.445 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.sim & ./Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.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: 2.9067092007026076]