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.0009554/0.0009554, allocations: 80.92 kB / 21.49 MB, free: 2.992 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.0009715/0.0009715, allocations: 172 kB / 24.91 MB, free: 8.766 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 0.9087/0.9087, allocations: 177.1 MB / 205.3 MB, free: 5.484 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.493e-06/1.493e-06, allocations: 0 / 273.5 MB, free: 1.297 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.729e-05/1.879e-05, allocations: 2.312 kB / 273.5 MB, free: 1.293 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled): time 0.006406/0.006424, allocations: 7.92 MB / 281.4 MB, free: 9.332 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.003568/0.009992, allocations: 2.761 MB / 284.1 MB, free: 6.562 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003959/0.01039, allocations: 31.81 kB / 284.2 MB, free: 6.531 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000854/0.01124, allocations: 0.5277 MB / 284.7 MB, free: 6 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000564/0.01181, allocations: 484.2 kB / 285.2 MB, free: 5.523 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004131/0.01222, allocations: 367.4 kB / 285.5 MB, free: 5.164 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0009475/0.01317, allocations: 1.553 MB / 287.1 MB, free: 3.605 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004139/0.01358, allocations: 407.9 kB / 287.5 MB, free: 3.176 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006874/0.01427, allocations: 0.8728 MB / 288.4 MB, free: 2.301 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003947/0.01466, allocations: 474.5 kB / 288.8 MB, free: 1.836 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001071/0.01477, allocations: 136 kB / 288.9 MB, free: 1.703 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001809/0.01495, allocations: 176 kB / 289.1 MB, free: 1.531 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001373/0.01509, allocations: 286.9 kB / 289.4 MB, free: 1.25 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0005201/0.01561, allocations: 458.8 kB / 289.8 MB, free: 0.8008 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.09326/0.1089, allocations: 0.9496 MB / 290.8 MB, free: 19 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.467e-06/0.1089, allocations: 0 / 290.8 MB, free: 19 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.433e-06/0.1089, allocations: 0 / 290.8 MB, free: 19 MB / 266.7 MB Notification: Performance of Transformations before backend: time 4.073e-05/0.1089, allocations: 0 / 290.8 MB, free: 19 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.001462/0.1104, allocations: 1.421 MB / 292.2 MB, free: 18.31 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.931e-05/0.1104, allocations: 8.594 kB / 292.2 MB, free: 18.31 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004029/0.1108, allocations: 230.6 kB / 292.5 MB, free: 18.31 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006552/0.1115, allocations: 0.568 MB / 293 MB, free: 18.02 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.68e-05/0.1115, allocations: 74.97 kB / 293.1 MB, free: 18.02 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.575e-05/0.1116, allocations: 106.4 kB / 293.2 MB, free: 18.02 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006758/0.1123, allocations: 0.7986 MB / 294 MB, free: 17.73 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.462e-05/0.1123, allocations: 10.89 kB / 294 MB, free: 17.73 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.01e-05/0.1123, allocations: 38.75 kB / 294 MB, free: 17.73 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.57e-05/0.1124, allocations: 24.72 kB / 294.1 MB, free: 17.73 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003314/0.1127, allocations: 249.4 kB / 294.3 MB, free: 17.71 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002462/0.1151, allocations: 3.123 MB / 297.4 MB, free: 15.97 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003194/0.1155, allocations: 226 kB / 297.7 MB, free: 15.95 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.679e-05/0.1155, allocations: 63.92 kB / 297.7 MB, free: 15.94 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.234e-05/0.1156, allocations: 11.22 kB / 297.7 MB, free: 15.94 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.542e-05/0.1156, allocations: 53.88 kB / 297.8 MB, free: 15.89 MB / 266.7 MB Notification: Performance of pre-optimization done (n=37): time 1.373e-06/0.1156, allocations: 0 / 297.8 MB, free: 15.89 MB / 266.7 MB Notification: Performance of matching and sorting (n=40): time 0.0008506/0.1164, allocations: 0.6564 MB / 298.4 MB, free: 15.64 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.137e-05/0.1165, allocations: 133.8 kB / 298.6 MB, free: 15.48 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005202/0.117, allocations: 0.7222 MB / 299.3 MB, free: 15.32 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.738e-05/0.117, allocations: 32.67 kB / 299.3 MB, free: 15.29 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001757/0.1172, allocations: 0.5146 MB / 299.8 MB, free: 14.97 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.937e-05/0.1172, allocations: 153 kB / 300 MB, free: 14.88 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001107/0.1173, allocations: 142.9 kB / 300.1 MB, free: 14.85 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 3.825e-05/0.1174, allocations: 340.2 kB / 300.5 MB, free: 14.54 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.898e-05/0.1175, allocations: 66.73 kB / 300.5 MB, free: 14.53 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001699/0.1176, allocations: 479.9 kB / 301 MB, free: 14.04 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002985/0.1179, allocations: 0.5024 MB / 301.5 MB, free: 13.65 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.558e-06/0.1179, allocations: 3.375 kB / 301.5 MB, free: 13.65 MB / 266.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.0004564/0.1184, allocations: 472.9 kB / 302 MB, free: 13.59 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.387e-05/0.1184, allocations: 8.594 kB / 302 MB, free: 13.59 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.919e-06/0.1184, allocations: 11.36 kB / 302 MB, free: 13.59 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.016e-05/0.1185, allocations: 30.17 kB / 302 MB, free: 13.59 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000294/0.1188, allocations: 168.3 kB / 302.2 MB, free: 13.59 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003558/0.1191, allocations: 1.184 MB / 303.4 MB, free: 12.45 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002416/0.1194, allocations: 41.31 kB / 303.4 MB, free: 12.44 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.403e-05/0.1194, allocations: 30.95 kB / 303.4 MB, free: 12.44 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0001517/0.1196, allocations: 155.8 kB / 303.6 MB, free: 12.36 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0001591/0.1197, allocations: 469.5 kB / 304 MB, free: 11.87 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.000286/0.12, allocations: 0.5156 MB / 304.6 MB, free: 11.48 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 4.228e-06/0.12, allocations: 3.641 kB / 304.6 MB, free: 11.48 MB / 266.7 MB Notification: Performance of matching and sorting (n=91) (initialization_lambda0): time 0.0004218/0.1204, allocations: 473.7 kB / 305 MB, free: 11.42 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.807e-06/0.1204, allocations: 10.23 kB / 305 MB, free: 11.42 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.632e-06/0.1205, allocations: 11 kB / 305 MB, free: 11.42 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 5.265e-05/0.1205, allocations: 33.91 kB / 305.1 MB, free: 11.41 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002612/0.1208, allocations: 168.3 kB / 305.2 MB, free: 11.41 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002861/0.1211, allocations: 1.167 MB / 306.4 MB, free: 10.28 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002246/0.1213, allocations: 34.62 kB / 306.4 MB, free: 10.28 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.194e-05/0.1213, allocations: 29.69 kB / 306.5 MB, free: 10.28 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 7.744e-05/0.1214, allocations: 236.5 kB / 306.7 MB, free: 10.09 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.145e-05/0.1214, allocations: 70.34 kB / 306.8 MB, free: 10.09 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002377/0.1217, allocations: 241.3 kB / 307 MB, free: 10.03 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.715e-06/0.1217, allocations: 4.156 kB / 307 MB, free: 10.03 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.753e-06/0.1217, allocations: 0 / 307 MB, free: 10.03 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.459e-06/0.1217, allocations: 6.938 kB / 307 MB, free: 10.02 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006974/0.1224, allocations: 0.7162 MB / 307.7 MB, free: 9.758 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.334e-06/0.1224, allocations: 5.469 kB / 307.7 MB, free: 9.758 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001736/0.1226, allocations: 81.52 kB / 307.8 MB, free: 9.754 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.42e-05/0.1226, allocations: 18.39 kB / 307.8 MB, free: 9.746 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.38e-05/0.1226, allocations: 11.19 kB / 307.8 MB, free: 9.746 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002741/0.1229, allocations: 1.159 MB / 309 MB, free: 8.617 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.074e-06/0.1229, allocations: 2.094 kB / 309 MB, free: 8.617 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002957/0.1232, allocations: 434.4 kB / 309.4 MB, free: 8.406 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001151/0.1233, allocations: 81.36 kB / 309.5 MB, free: 8.359 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.774e-05/0.1234, allocations: 8.906 kB / 309.5 MB, free: 8.359 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000166/0.1235, allocations: 20.77 kB / 309.5 MB, free: 8.359 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.309e-05/0.1236, allocations: 38.23 kB / 309.6 MB, free: 8.352 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.154e-05/0.1236, allocations: 14.84 kB / 309.6 MB, free: 8.352 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0002203/0.1238, allocations: 342.2 kB / 309.9 MB, free: 8.324 MB / 266.7 MB Notification: Performance of sort global known variables: time 6e-08/0.1238, allocations: 0 / 309.9 MB, free: 8.324 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0005784/0.1244, allocations: 346.3 kB / 310.3 MB, free: 8.324 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.000121/0.1245, allocations: 110.6 kB / 310.4 MB, free: 8.246 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0005101/0.125, allocations: 0.7219 MB / 311.1 MB, free: 7.996 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.559e-05/0.125, allocations: 11.34 kB / 311.1 MB, free: 7.992 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000115/0.1251, allocations: 219.7 kB / 311.3 MB, free: 7.871 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005095/0.1257, allocations: 233.6 kB / 311.5 MB, free: 7.844 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001601/0.1273, allocations: 1.64 MB / 313.2 MB, free: 6.965 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.649e-05/0.1273, allocations: 174.2 kB / 313.4 MB, free: 6.891 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0002413/0.1276, allocations: 122.3 kB / 313.5 MB, free: 6.855 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002788/0.1279, allocations: 247.4 kB / 313.7 MB, free: 6.656 MB / 266.7 MB Notification: Performance of SimCode: time 5.91e-07/0.1279, allocations: 0 / 313.7 MB, free: 6.656 MB / 266.7 MB Notification: Performance of Templates: time 0.01286/0.1407, allocations: 11.5 MB / 325.2 MB, free: 11.97 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: 2.8843775880523026]