Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001284/0.001284, allocations: 116.1 kB / 21.18 MB, free: 0.7422 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001471/0.001471, allocations: 214.8 kB / 24.48 MB, free: 4.191 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.412/1.412, allocations: 230.4 MB / 258.1 MB, free: 8.152 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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-beta.om_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-beta.om_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled") [Timeout 660] "Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.00196/0.00196, allocations: 67.84 kB / 378.8 MB, free: 2.883 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2209/0.2229, allocations: 53.32 MB / 432.1 MB, free: 7.391 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled): time 0.01037/0.2332, allocations: 8.258 MB / 440.3 MB, free: 15.09 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.004713/0.2379, allocations: 2.742 MB / 443.1 MB, free: 12.34 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007816/0.2387, allocations: 31.94 kB / 443.1 MB, free: 12.31 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001482/0.2402, allocations: 0.559 MB / 443.7 MB, free: 11.75 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001189/0.2414, allocations: 468.5 kB / 444.1 MB, free: 11.29 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008374/0.2422, allocations: 374.6 kB / 444.5 MB, free: 10.93 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001888/0.2441, allocations: 1.491 MB / 446 MB, free: 9.43 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006944/0.2448, allocations: 423.5 kB / 446.4 MB, free: 8.988 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007956/0.2456, allocations: 0.568 MB / 447 MB, free: 8.418 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007532/0.2464, allocations: 0.6065 MB / 447.6 MB, free: 7.809 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001722/0.2465, allocations: 139.9 kB / 447.7 MB, free: 7.672 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003095/0.2468, allocations: 180 kB / 447.9 MB, free: 7.496 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002383/0.2471, allocations: 283 kB / 448.2 MB, free: 7.219 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006262/0.2477, allocations: 0.6686 MB / 448.8 MB, free: 6.547 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001972/0.2497, allocations: 1.727 MB / 450.5 MB, free: 4.812 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.727e-06/0.2497, allocations: 0 / 450.5 MB, free: 4.812 MB / 350.1 MB Notification: Performance of FrontEnd: time 8.02e-07/0.2497, allocations: 7.938 kB / 450.6 MB, free: 4.805 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.672e-05/0.2497, allocations: 0 / 450.6 MB, free: 4.805 MB / 350.1 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.002645/0.2523, allocations: 1.533 MB / 452.1 MB, free: 3.219 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.081e-05/0.2524, allocations: 16.03 kB / 452.1 MB, free: 3.203 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007038/0.2531, allocations: 192 kB / 452.3 MB, free: 3.016 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001317/0.2544, allocations: 0.7985 MB / 453.1 MB, free: 2.176 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.039e-05/0.2545, allocations: 81.88 kB / 453.2 MB, free: 2.094 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001458/0.2546, allocations: 104 kB / 453.3 MB, free: 1.992 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001662/0.2563, allocations: 0.9584 MB / 454.2 MB, free: 0.9922 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.577e-05/0.2563, allocations: 8 kB / 454.2 MB, free: 0.9844 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.323e-05/0.2564, allocations: 36 kB / 454.3 MB, free: 0.9492 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.399e-05/0.2564, allocations: 28 kB / 454.3 MB, free: 0.9219 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001268/0.2577, allocations: 0.6363 MB / 454.9 MB, free: 292 kB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005531/0.2632, allocations: 4.101 MB / 459 MB, free: 11.96 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001041/0.2643, allocations: 419.9 kB / 459.4 MB, free: 11.54 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003298/0.2646, allocations: 160.7 kB / 459.6 MB, free: 11.38 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.846e-05/0.2646, allocations: 8 kB / 459.6 MB, free: 11.38 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.202e-05/0.2647, allocations: 34.56 kB / 459.6 MB, free: 11.33 MB / 366.1 MB Notification: Performance of pre-optimization done (n=37): time 1.723e-06/0.2647, allocations: 0 / 459.6 MB, free: 11.33 MB / 366.1 MB Notification: Performance of matching and sorting (n=40): time 0.002477/0.2671, allocations: 1.332 MB / 461 MB, free: 9.93 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.258e-05/0.2672, allocations: 132.5 kB / 461.1 MB, free: 9.77 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001231/0.2685, allocations: 0.8937 MB / 462 MB, free: 8.852 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.126e-05/0.2685, allocations: 37.7 kB / 462 MB, free: 8.809 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000502/0.269, allocations: 0.6047 MB / 462.6 MB, free: 8.195 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001261/0.2691, allocations: 154.7 kB / 462.8 MB, free: 8.043 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001947/0.2693, allocations: 142.6 kB / 462.9 MB, free: 7.895 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001533/0.2695, allocations: 334 kB / 463.3 MB, free: 7.562 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003544/0.2698, allocations: 172.8 kB / 463.4 MB, free: 7.391 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006247/0.2705, allocations: 0.4908 MB / 463.9 MB, free: 6.742 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009973/0.2715, allocations: 0.6867 MB / 464.6 MB, free: 5.91 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.627e-06/0.2715, allocations: 0 / 464.6 MB, free: 5.91 MB / 366.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.001352/0.2728, allocations: 0.7473 MB / 465.4 MB, free: 5.152 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.877e-05/0.2728, allocations: 8 kB / 465.4 MB, free: 5.145 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.405e-05/0.2728, allocations: 12 kB / 465.4 MB, free: 5.133 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001455/0.273, allocations: 40.78 kB / 465.4 MB, free: 5.09 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005901/0.2736, allocations: 171.7 kB / 465.6 MB, free: 4.922 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00116/0.2747, allocations: 1.387 MB / 467 MB, free: 3.398 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005383/0.2753, allocations: 47.94 kB / 467 MB, free: 3.352 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.879e-05/0.2753, allocations: 36 kB / 467 MB, free: 3.316 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.000609/0.2759, allocations: 358 kB / 467.4 MB, free: 2.961 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0005793/0.2765, allocations: 486.5 kB / 467.9 MB, free: 2.336 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0008851/0.2774, allocations: 0.6561 MB / 468.5 MB, free: 1.535 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 6.702e-06/0.2774, allocations: 7.938 kB / 468.5 MB, free: 1.527 MB / 366.1 MB Notification: Performance of matching and sorting (n=91) (initialization_lambda0): time 0.001287/0.2787, allocations: 0.7239 MB / 469.3 MB, free: 0.793 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.621e-05/0.2787, allocations: 16.22 kB / 469.3 MB, free: 0.7773 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.628e-06/0.2787, allocations: 8 kB / 469.3 MB, free: 0.7695 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.902e-05/0.2788, allocations: 36.84 kB / 469.3 MB, free: 0.7305 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005589/0.2794, allocations: 163.7 kB / 469.5 MB, free: 0.5703 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001105/0.2805, allocations: 1.387 MB / 470.9 MB, free: 15.05 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005241/0.281, allocations: 35.98 kB / 470.9 MB, free: 15.01 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.67e-05/0.281, allocations: 32 kB / 470.9 MB, free: 14.98 MB / 382.1 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.0002002/0.2812, allocations: 252 kB / 471.2 MB, free: 14.73 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001436/0.2814, allocations: 99.38 kB / 471.3 MB, free: 14.63 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008654/0.2823, allocations: 427.5 kB / 471.7 MB, free: 14.2 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.476e-06/0.2823, allocations: 3.984 kB / 471.7 MB, free: 14.2 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.563e-06/0.2823, allocations: 0 / 471.7 MB, free: 14.2 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002931/0.2826, allocations: 208.4 kB / 471.9 MB, free: 13.98 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001111/0.2827, allocations: 15.92 kB / 471.9 MB, free: 13.96 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000395/0.2831, allocations: 19.98 kB / 471.9 MB, free: 13.94 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.866e-05/0.2831, allocations: 27.91 kB / 472 MB, free: 13.91 MB / 382.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.001049/0.2842, allocations: 465.5 kB / 472.4 MB, free: 13.45 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.001131/0.2853, allocations: 0.7392 MB / 473.2 MB, free: 12.7 MB / 382.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0002679/0.2856, allocations: 135.9 kB / 473.3 MB, free: 12.56 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0008574/0.2864, allocations: 0.6054 MB / 473.9 MB, free: 11.95 MB / 382.1 MB Notification: Performance of Backend: time 3.71e-07/0.2864, allocations: 0 / 473.9 MB, free: 11.95 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001893/0.2883, allocations: 0.9174 MB / 474.8 MB, free: 11 MB / 382.1 MB Notification: Performance of SimCode: time 0.00355/0.2919, allocations: 2.396 MB / 477.2 MB, free: 8.551 MB / 382.1 MB Notification: Performance of Templates: time 0.02504/0.3169, allocations: 13.41 MB / 490.6 MB, free: 11.27 MB / 398.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.makefile [Timeout 660] (rm -f Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.sim & ./Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Machines/Examples/DCMachines/DCPM_CurrentControlled/DCPM_CurrentControlled.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.718317786231637]