Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.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.001307/0.001307, allocations: 109.5 kB / 20.43 MB, free: 1.449 MB / 14.72 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.001349/0.001349, allocations: 190.3 kB / 23.72 MB, free: 4.68 MB / 14.72 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 1.406/1.406, allocations: 225.6 MB / 252.5 MB, free: 13.02 MB / 206.1 MB
"
[Timeout remaining time 178]
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.DCSE_Start,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|dcse.la.i|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start")
translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|dcse.la.i|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start") [Timeout 660]
"Notification: Performance of FrontEnd - loaded program: time 0.001623/0.001623, allocations: 47.92 kB / 370.9 MB, free: 9.367 MB / 302.1 MB
Notification: Performance of FrontEnd - Absyn->SCode: time 0.2386/0.2402, allocations: 52.19 MB / 423.1 MB, free: 14.68 MB / 334.1 MB
Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start): time 0.01047/0.2507, allocations: 8.162 MB / 431.3 MB, free: 6.48 MB / 334.1 MB
Notification: Performance of NFInst.instExpressions: time 0.00474/0.2555, allocations: 2.638 MB / 433.9 MB, free: 3.836 MB / 334.1 MB
Notification: Performance of NFInst.updateImplicitVariability: time 0.0006134/0.2561, allocations: 27.88 kB / 434 MB, free: 3.809 MB / 334.1 MB
Notification: Performance of NFTyping.typeComponents: time 0.001422/0.2575, allocations: 0.5832 MB / 434.5 MB, free: 3.223 MB / 334.1 MB
Notification: Performance of NFTyping.typeBindings: time 0.0009482/0.2584, allocations: 0.4886 MB / 435 MB, free: 2.73 MB / 334.1 MB
Notification: Performance of NFTyping.typeClassSections: time 0.000458/0.2589, allocations: 255.6 kB / 435.3 MB, free: 2.48 MB / 334.1 MB
Notification: Performance of NFFlatten.flatten: time 0.001507/0.2604, allocations: 1.47 MB / 436.7 MB, free: 1.008 MB / 334.1 MB
Notification: Performance of NFFlatten.resolveConnections: time 0.0006472/0.2611, allocations: 407.2 kB / 437.1 MB, free: 0.5859 MB / 334.1 MB
Notification: Performance of NFEvalConstants.evaluate: time 0.0007086/0.2618, allocations: 0.5681 MB / 437.7 MB, free: 16 kB / 334.1 MB
Notification: Performance of NFSimplifyModel.simplify: time 0.000724/0.2625, allocations: 0.6028 MB / 438.3 MB, free: 15.41 MB / 350.1 MB
Notification: Performance of NFPackage.collectConstants: time 0.0001731/0.2627, allocations: 136 kB / 438.4 MB, free: 15.28 MB / 350.1 MB
Notification: Performance of NFFlatten.collectFunctions: time 0.0003404/0.263, allocations: 176 kB / 438.6 MB, free: 15.11 MB / 350.1 MB
Notification: Performance of NFScalarize.scalarize: time 0.0002581/0.2633, allocations: 279 kB / 438.9 MB, free: 14.83 MB / 350.1 MB
Notification: Performance of NFVerifyModel.verify: time 0.0006796/0.2639, allocations: 0.6648 MB / 439.6 MB, free: 14.16 MB / 350.1 MB
Notification: Performance of NFConvertDAE.convert: time 0.002056/0.266, allocations: 1.729 MB / 441.3 MB, free: 12.43 MB / 350.1 MB
Notification: Performance of FrontEnd - DAE generated: time 3.687e-06/0.266, allocations: 0 / 441.3 MB, free: 12.43 MB / 350.1 MB
Notification: Performance of FrontEnd: time 1.132e-06/0.266, allocations: 0 / 441.3 MB, free: 12.43 MB / 350.1 MB
Notification: Performance of Transformations before backend: time 1.651e-05/0.266, allocations: 0 / 441.3 MB, free: 12.43 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: 249
 * Number of variables: 249
Notification: Performance of Generate backend data structure: time 0.002583/0.2686, allocations: 1.415 MB / 442.7 MB, free: 10.98 MB / 350.1 MB
Notification: Performance of prepare preOptimizeDAE: time 3.351e-05/0.2686, allocations: 8.031 kB / 442.7 MB, free: 10.98 MB / 350.1 MB
Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006794/0.2693, allocations: 196 kB / 442.9 MB, free: 10.79 MB / 350.1 MB
Notification: Performance of preOpt evaluateParameters (simulation): time 0.001274/0.2706, allocations: 0.6806 MB / 443.6 MB, free: 10.07 MB / 350.1 MB
Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.063e-05/0.2707, allocations: 74 kB / 443.7 MB, free: 10 MB / 350.1 MB
Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001383/0.2708, allocations: 96 kB / 443.7 MB, free: 9.91 MB / 350.1 MB
Notification: Performance of preOpt clockPartitioning (simulation): time 0.001751/0.2725, allocations: 0.9346 MB / 444.7 MB, free: 8.945 MB / 350.1 MB
Notification: Performance of preOpt findStateOrder (simulation): time 3.155e-05/0.2726, allocations: 3.953 kB / 444.7 MB, free: 8.941 MB / 350.1 MB
Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.239e-05/0.2727, allocations: 40 kB / 444.7 MB, free: 8.902 MB / 350.1 MB
Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.223e-05/0.2727, allocations: 24 kB / 444.7 MB, free: 8.879 MB / 350.1 MB
Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001337/0.274, allocations: 0.6325 MB / 445.4 MB, free: 8.246 MB / 350.1 MB
Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005296/0.2793, allocations: 3.778 MB / 449.2 MB, free: 4.246 MB / 350.1 MB
Notification: Performance of preOpt comSubExp (simulation): time 0.0006825/0.28, allocations: 349.4 kB / 449.5 MB, free: 3.898 MB / 350.1 MB
Notification: Performance of preOpt resolveLoops (simulation): time 0.0006254/0.2806, allocations: 257.3 kB / 449.8 MB, free: 3.645 MB / 350.1 MB
Notification: Performance of preOpt evalFunc (simulation): time 2.926e-05/0.2807, allocations: 4.328 kB / 449.8 MB, free: 3.641 MB / 350.1 MB
Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.888e-05/0.2807, allocations: 34.89 kB / 449.8 MB, free: 3.598 MB / 350.1 MB
Notification: Performance of pre-optimization done (n=40): time 1.823e-06/0.2807, allocations: 0 / 449.8 MB, free: 3.598 MB / 350.1 MB
Notification: Performance of matching and sorting (n=44): time 0.002783/0.2835, allocations: 1.267 MB / 451.1 MB, free: 2.293 MB / 350.1 MB
Notification: Performance of inlineWhenForInitialization (initialization): time 7.422e-05/0.2836, allocations: 81.11 kB / 451.1 MB, free: 2.195 MB / 350.1 MB
Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001189/0.2847, allocations: 0.8253 MB / 452 MB, free: 1.363 MB / 350.1 MB
Notification: Performance of collectPreVariables (initialization): time 3.852e-05/0.2848, allocations: 37.7 kB / 452 MB, free: 1.32 MB / 350.1 MB
Notification: Performance of collectInitialEqns (initialization): time 0.0004805/0.2853, allocations: 0.5774 MB / 452.6 MB, free: 0.7344 MB / 350.1 MB
Notification: Performance of collectInitialBindings (initialization): time 0.0001384/0.2854, allocations: 162.6 kB / 452.7 MB, free: 0.5742 MB / 350.1 MB
Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001877/0.2856, allocations: 130.6 kB / 452.9 MB, free: 452 kB / 350.1 MB
Notification: Performance of setup shared object (initialization): time 0.0001871/0.2858, allocations: 334 kB / 453.2 MB, free: 112 kB / 350.1 MB
Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003719/0.2861, allocations: 161.9 kB / 453.3 MB, free: 15.95 MB / 366.1 MB
Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006221/0.2868, allocations: 464 kB / 453.8 MB, free: 15.36 MB / 366.1 MB
Notification: Performance of analyzeInitialSystem (initialization): time 0.001022/0.2878, allocations: 0.6701 MB / 454.5 MB, free: 14.55 MB / 366.1 MB
Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.396e-06/0.2878, allocations: 0 / 454.5 MB, free: 14.55 MB / 366.1 MB
Notification: Performance of matching and sorting (n=90) (initialization): time 0.001448/0.2892, allocations: 0.7712 MB / 455.2 MB, free: 13.77 MB / 366.1 MB
Notification: Performance of prepare postOptimizeDAE: time 2.135e-05/0.2893, allocations: 8 kB / 455.2 MB, free: 13.77 MB / 366.1 MB
Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.53e-05/0.2893, allocations: 16.02 kB / 455.3 MB, free: 13.75 MB / 366.1 MB
Notification: Performance of postOpt tearingSystem (initialization): time 0.0002745/0.2896, allocations: 85.62 kB / 455.3 MB, free: 13.66 MB / 366.1 MB
Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005071/0.2901, allocations: 151.7 kB / 455.5 MB, free: 13.51 MB / 366.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002706/0.2928, allocations: 2.932 MB / 458.4 MB, free: 10.35 MB / 366.1 MB
Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005581/0.2933, allocations: 36.03 kB / 458.5 MB, free: 10.32 MB / 366.1 MB
Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.381e-05/0.2934, allocations: 32 kB / 458.5 MB, free: 10.29 MB / 366.1 MB
Notification: Model statistics after passing the back-end for initialization:
 * Number of independent subsystems: 43
 * Number of states: 0 ()
 * Number of discrete variables: 0 ()
 * Number of discrete states: 0 ()
 * Number of clocked states: 0 ()
 * Top-level inputs: 0
Notification: Strong component statistics for initialization (84):
 * Single equations (assignments): 82
 * Array equations: 0
 * Algorithm blocks: 0
 * Record equations: 0
 * When equations: 0
 * If-equations: 0
 * Equation systems (not torn): 0
 * Torn equation systems: 2
 * Mixed (continuous/discrete) equation systems: 0
Notification: Torn system details for strict tearing set:
 * Linear torn systems (#iteration vars, #inner vars, density): 2 systems
   {(1,5,100.0%), (1,1,100.0%)}
 * Non-linear torn systems (#iteration vars, #inner vars): 0 systems
Notification: Performance of prepare postOptimizeDAE: time 0.0004014/0.2938, allocations: 269.5 kB / 458.8 MB, free: 10.01 MB / 366.1 MB
Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001374/0.2939, allocations: 95.5 kB / 458.9 MB, free: 9.918 MB / 366.1 MB
Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009893/0.2949, allocations: 487.4 kB / 459.3 MB, free: 9.43 MB / 366.1 MB
Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.651e-06/0.2949, allocations: 4 kB / 459.3 MB, free: 9.426 MB / 366.1 MB
Notification: Performance of postOpt constantLinearSystem (simulation): time 3.145e-06/0.2949, allocations: 4 kB / 459.3 MB, free: 9.422 MB / 366.1 MB
Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.392e-06/0.2949, allocations: 7.984 kB / 459.3 MB, free: 9.414 MB / 366.1 MB
Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002293/0.2972, allocations: 1.4 MB / 460.7 MB, free: 7.934 MB / 366.1 MB
Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.146e-05/0.2972, allocations: 7.984 kB / 460.8 MB, free: 7.926 MB / 366.1 MB
Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003098/0.2975, allocations: 75.78 kB / 460.8 MB, free: 7.852 MB / 366.1 MB
Notification: Performance of postOpt tearingSystem (simulation): time 0.0002102/0.2977, allocations: 73.89 kB / 460.9 MB, free: 7.773 MB / 366.1 MB
Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.517e-05/0.2978, allocations: 8 kB / 460.9 MB, free: 7.766 MB / 366.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002554/0.3003, allocations: 2.927 MB / 463.8 MB, free: 4.605 MB / 366.1 MB
Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.138e-06/0.3003, allocations: 4.109 kB / 463.8 MB, free: 4.602 MB / 366.1 MB
Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001357/0.3017, allocations: 0.7676 MB / 464.6 MB, free: 3.793 MB / 366.1 MB
Notification: Performance of postOpt removeConstants (simulation): time 0.0002911/0.302, allocations: 127.4 kB / 464.7 MB, free: 3.668 MB / 366.1 MB
Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.939e-05/0.3021, allocations: 11.94 kB / 464.7 MB, free: 3.656 MB / 366.1 MB
Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004618/0.3025, allocations: 31.98 kB / 464.8 MB, free: 3.625 MB / 366.1 MB
Notification: Performance of postOpt findZeroCrossings (simulation): time 7.574e-05/0.3026, allocations: 31.94 kB / 464.8 MB, free: 3.594 MB / 366.1 MB
Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.802e-05/0.3026, allocations: 16 kB / 464.8 MB, free: 3.578 MB / 366.1 MB
Notification: Performance of sorting global known variables: time 0.0008376/0.3035, allocations: 0.5615 MB / 465.4 MB, free: 3.02 MB / 366.1 MB
Notification: Performance of sort global known variables: time 1.1e-07/0.3035, allocations: 4 kB / 465.4 MB, free: 3.016 MB / 366.1 MB
Notification: Performance of remove unused functions: time 0.0008573/0.3043, allocations: 200 kB / 465.6 MB, free: 2.82 MB / 366.1 MB
Notification: Model statistics after passing the back-end for simulation:
 * Number of independent subsystems: 8
 * Number of states: 3 (dcse.inertiaRotor.w,dcse.la.i,quadraticLoadTorque.phi)
 * 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 (38):
 * Single equations (assignments): 36
 * Array equations: 0
 * Algorithm blocks: 0
 * Record equations: 0
 * When equations: 0
 * If-equations: 0
 * Equation systems (not torn): 0
 * Torn equation systems: 2
 * Mixed (continuous/discrete) equation systems: 0
Notification: Torn system details for strict tearing set:
 * Linear torn systems (#iteration vars, #inner vars, density): 2 systems
   {(1,5,100.0%), (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.0002264/0.3046, allocations: 131 kB / 465.7 MB, free: 2.684 MB / 366.1 MB
Notification: Performance of simCode: created initialization part: time 0.001272/0.3058, allocations: 0.6598 MB / 466.4 MB, free: 2 MB / 366.1 MB
Notification: Performance of simCode: created event and clocks part: time 3.256e-06/0.3058, allocations: 4 kB / 466.4 MB, free: 1.996 MB / 366.1 MB
Notification: Performance of simCode: created simulation system equations: time 0.0006939/0.3065, allocations: 429.6 kB / 466.8 MB, free: 1.551 MB / 366.1 MB
Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001048/0.3076, allocations: 219.1 kB / 467 MB, free: 1.34 MB / 366.1 MB
Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003118/0.3107, allocations: 1.751 MB / 468.8 MB, free: 15.54 MB / 382.1 MB
Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007231/0.3114, allocations: 1.001 MB / 469.8 MB, free: 14.51 MB / 382.1 MB
Notification: Performance of simCode: alias equations: time 0.0003989/0.3118, allocations: 111.2 kB / 469.9 MB, free: 14.4 MB / 382.1 MB
Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001357/0.312, allocations: 59.42 kB / 469.9 MB, free: 14.34 MB / 382.1 MB
Notification: Performance of SimCode: time 1.092e-06/0.312, allocations: 0 / 469.9 MB, free: 14.34 MB / 382.1 MB
Notification: Performance of Templates: time 0.02214/0.3341, allocations: 11.15 MB / 481.1 MB, free: 3.324 MB / 382.1 MB
"
[Timeout remaining time 660]
make -j1 -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.makefile [Timeout 660]
(rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.sim & ./Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start  -abortSlowSimulation -alarm=480  -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.pipe 2>&1) [Timeout 480]
diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/DCMachines/DCSE_Start/DCSE_Start.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.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.868862001225352]