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.001812/0.001812, allocations: 110.4 kB / 21.19 MB, free: 0.6641 MB / 14.72 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.002208/0.002208, allocations: 209.7 kB / 24.49 MB, free: 3.965 MB / 14.72 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.45/1.45, allocations: 230.6 MB / 258.3 MB, free: 7.793 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+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 0.001558/0.001558, allocations: 43.92 kB / 379 MB, free: 2.535 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2238/0.2254, allocations: 53.35 MB / 432.4 MB, free: 6.719 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled): time 0.009596/0.235, allocations: 7.259 MB / 439.6 MB, free: 15.43 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.004271/0.2392, allocations: 2.57 MB / 442.2 MB, free: 12.86 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004606/0.2397, allocations: 31.81 kB / 442.2 MB, free: 12.82 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001259/0.241, allocations: 0.5084 MB / 442.7 MB, free: 12.31 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000873/0.2418, allocations: 468.5 kB / 443.2 MB, free: 11.85 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006807/0.2425, allocations: 366.5 kB / 443.5 MB, free: 11.5 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001519/0.244, allocations: 1.503 MB / 445 MB, free: 9.984 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006622/0.2447, allocations: 428 kB / 445.5 MB, free: 9.543 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000725/0.2454, allocations: 0.5797 MB / 446 MB, free: 8.961 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006699/0.2461, allocations: 0.6026 MB / 446.6 MB, free: 8.355 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001789/0.2463, allocations: 139.9 kB / 446.8 MB, free: 8.219 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003194/0.2466, allocations: 176 kB / 446.9 MB, free: 8.047 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002347/0.2468, allocations: 286.9 kB / 447.2 MB, free: 7.766 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000519/0.2473, allocations: 0.5326 MB / 447.8 MB, free: 7.23 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001896/0.2492, allocations: 1.739 MB / 449.5 MB, free: 5.484 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.188e-06/0.2492, allocations: 0 / 449.5 MB, free: 5.484 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.492e-06/0.2492, allocations: 4 kB / 449.5 MB, free: 5.48 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.879e-05/0.2493, allocations: 0 / 449.5 MB, free: 5.48 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.002694/0.2519, allocations: 1.465 MB / 451 MB, free: 3.98 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.76e-05/0.252, allocations: 8.031 kB / 451 MB, free: 3.973 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006596/0.2526, allocations: 196 kB / 451.2 MB, free: 3.781 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001375/0.254, allocations: 0.729 MB / 451.9 MB, free: 3.023 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.023e-05/0.2541, allocations: 77.94 kB / 452 MB, free: 2.945 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001532/0.2542, allocations: 107.9 kB / 452.1 MB, free: 2.84 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001784/0.256, allocations: 1.055 MB / 453.1 MB, free: 1.719 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.655e-05/0.2561, allocations: 3.984 kB / 453.1 MB, free: 1.715 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.92e-05/0.2562, allocations: 44 kB / 453.2 MB, free: 1.672 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.504e-05/0.2562, allocations: 24 kB / 453.2 MB, free: 1.648 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001243/0.2574, allocations: 0.6363 MB / 453.8 MB, free: 1.012 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005073/0.2625, allocations: 3.544 MB / 457.4 MB, free: 13.27 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001029/0.2635, allocations: 411.9 kB / 457.8 MB, free: 12.86 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003183/0.2639, allocations: 156.7 kB / 457.9 MB, free: 12.7 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.943e-05/0.2639, allocations: 7.938 kB / 457.9 MB, free: 12.69 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.475e-05/0.2639, allocations: 38.56 kB / 458 MB, free: 12.64 MB / 366.1 MB Notification: Performance of pre-optimization done (n=37): time 2.054e-06/0.2639, allocations: 0 / 458 MB, free: 12.64 MB / 366.1 MB Notification: Performance of matching and sorting (n=40): time 0.002459/0.2664, allocations: 1.181 MB / 459.2 MB, free: 11.43 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.749e-05/0.2665, allocations: 136.5 kB / 459.3 MB, free: 11.27 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001132/0.2676, allocations: 0.833 MB / 460.1 MB, free: 10.42 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.119e-05/0.2676, allocations: 33.7 kB / 460.2 MB, free: 10.38 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004816/0.2681, allocations: 0.6086 MB / 460.8 MB, free: 9.766 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001324/0.2683, allocations: 158.7 kB / 460.9 MB, free: 9.609 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002007/0.2685, allocations: 138.6 kB / 461.1 MB, free: 9.465 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001546/0.2686, allocations: 334 kB / 461.4 MB, free: 9.133 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003499/0.269, allocations: 172.8 kB / 461.6 MB, free: 8.961 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006642/0.2696, allocations: 0.5739 MB / 462.1 MB, free: 8.215 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009947/0.2706, allocations: 0.6789 MB / 462.8 MB, free: 7.391 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.875e-06/0.2706, allocations: 8 kB / 462.8 MB, free: 7.383 MB / 366.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.001318/0.2719, allocations: 0.7396 MB / 463.6 MB, free: 6.633 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.093e-05/0.272, allocations: 11.94 kB / 463.6 MB, free: 6.621 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.654e-05/0.272, allocations: 12 kB / 463.6 MB, free: 6.609 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001558/0.2721, allocations: 32.84 kB / 463.6 MB, free: 6.574 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006122/0.2727, allocations: 168.1 kB / 463.8 MB, free: 6.41 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001104/0.2739, allocations: 1.264 MB / 465 MB, free: 5.047 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005236/0.2744, allocations: 39.94 kB / 465.1 MB, free: 5.008 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.823e-05/0.2744, allocations: 40 kB / 465.1 MB, free: 4.969 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0005842/0.275, allocations: 357.9 kB / 465.5 MB, free: 4.613 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0006096/0.2756, allocations: 0.5545 MB / 466 MB, free: 3.891 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0009093/0.2765, allocations: 0.6598 MB / 466.7 MB, free: 3.086 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 6.031e-06/0.2765, allocations: 4 kB / 466.7 MB, free: 3.082 MB / 366.1 MB Notification: Performance of matching and sorting (n=91) (initialization_lambda0): time 0.001226/0.2778, allocations: 0.7119 MB / 467.4 MB, free: 2.359 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.88e-05/0.2778, allocations: 12.94 kB / 467.4 MB, free: 2.348 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.016e-05/0.2778, allocations: 8.047 kB / 467.4 MB, free: 2.34 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.704e-05/0.2779, allocations: 44.83 kB / 467.5 MB, free: 2.293 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000569/0.2785, allocations: 163.7 kB / 467.6 MB, free: 2.133 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001049/0.2795, allocations: 1.256 MB / 468.9 MB, free: 0.7773 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000521/0.28, allocations: 40.09 kB / 468.9 MB, free: 0.7383 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.679e-05/0.2801, allocations: 36 kB / 469 MB, free: 0.7031 MB / 366.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.000196/0.2803, allocations: 232 kB / 469.2 MB, free: 480 kB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001339/0.2804, allocations: 91.38 kB / 469.3 MB, free: 388 kB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008807/0.2813, allocations: 430.4 kB / 469.7 MB, free: 15.94 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.464e-06/0.2813, allocations: 3.984 kB / 469.7 MB, free: 15.93 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.566e-06/0.2813, allocations: 4 kB / 469.7 MB, free: 15.93 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002705/0.2816, allocations: 119.4 kB / 469.8 MB, free: 15.81 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.922e-05/0.2817, allocations: 8 kB / 469.8 MB, free: 15.8 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004119/0.2821, allocations: 31.91 kB / 469.9 MB, free: 15.77 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.518e-05/0.2821, allocations: 27.83 kB / 469.9 MB, free: 15.75 MB / 382.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.001056/0.2832, allocations: 470 kB / 470.3 MB, free: 15.28 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.001103/0.2843, allocations: 0.7223 MB / 471.1 MB, free: 14.54 MB / 382.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0002649/0.2846, allocations: 132.5 kB / 471.2 MB, free: 14.41 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0007834/0.2854, allocations: 0.5536 MB / 471.7 MB, free: 13.87 MB / 382.1 MB Notification: Performance of Backend: time 4.61e-07/0.2854, allocations: 0 / 471.7 MB, free: 13.87 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001862/0.2872, allocations: 0.9214 MB / 472.7 MB, free: 12.92 MB / 382.1 MB Notification: Performance of SimCode: time 0.003514/0.2907, allocations: 2.364 MB / 475 MB, free: 10.5 MB / 382.1 MB Notification: Performance of Templates: time 0.02559/0.3163, allocations: 14.85 MB / 489.9 MB, free: 11.91 MB / 398.1 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=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/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/OpenModelicaLibraryTesting/files/Modelica_4.1.0_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.887992201998713]