Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate.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.001293/0.001293, allocations: 109.5 kB / 20.43 MB, free: 1.457 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.001363/0.001363, allocations: 184.3 kB / 23.71 MB, free: 4.695 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.475/1.475, allocations: 225.6 MB / 252.5 MB, free: 13 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.Analog.Examples.HeatingNPN_NORGate,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5041,variableFilter="time|HeatCapacitor1.T",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate")
translateModel(Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5041,variableFilter="time|HeatCapacitor1.T",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate") [Timeout 660]
"Notification: Performance of FrontEnd - loaded program: time 0.001582/0.001582, allocations: 39.92 kB / 371 MB, free: 9.402 MB / 302.1 MB
Notification: Performance of FrontEnd - Absyn->SCode: time 0.2581/0.2596, allocations: 52.17 MB / 423.1 MB, free: 14.66 MB / 334.1 MB
Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate): time 0.006613/0.2663, allocations: 4.998 MB / 428.1 MB, free: 9.641 MB / 334.1 MB
Notification: Performance of NFInst.instExpressions: time 0.002566/0.2688, allocations: 1.28 MB / 429.4 MB, free: 8.352 MB / 334.1 MB
Notification: Performance of NFInst.updateImplicitVariability: time 0.0003252/0.2692, allocations: 11.94 kB / 429.4 MB, free: 8.34 MB / 334.1 MB
Notification: Performance of NFTyping.typeComponents: time 0.0003021/0.2695, allocations: 130.7 kB / 429.5 MB, free: 8.211 MB / 334.1 MB
Notification: Performance of NFTyping.typeBindings: time 0.0004799/0.2699, allocations: 261.7 kB / 429.8 MB, free: 7.953 MB / 334.1 MB
Notification: Performance of NFTyping.typeClassSections: time 0.0006766/0.2706, allocations: 311.5 kB / 430.1 MB, free: 7.648 MB / 334.1 MB
Notification: Performance of NFFlatten.flatten: time 0.001151/0.2718, allocations: 1.095 MB / 431.2 MB, free: 6.551 MB / 334.1 MB
Notification: Performance of NFFlatten.resolveConnections: time 0.0004151/0.2722, allocations: 187 kB / 431.4 MB, free: 6.352 MB / 334.1 MB
Notification: Performance of NFEvalConstants.evaluate: time 0.0005323/0.2727, allocations: 434.5 kB / 431.8 MB, free: 5.926 MB / 334.1 MB
Notification: Performance of NFSimplifyModel.simplify: time 0.0006243/0.2733, allocations: 478 kB / 432.3 MB, free: 5.457 MB / 334.1 MB
Notification: Performance of NFPackage.collectConstants: time 0.0001303/0.2735, allocations: 92 kB / 432.4 MB, free: 5.367 MB / 334.1 MB
Notification: Performance of NFFlatten.collectFunctions: time 0.0002219/0.2737, allocations: 112 kB / 432.5 MB, free: 5.258 MB / 334.1 MB
Notification: Performance of NFScalarize.scalarize: time 0.0001944/0.2739, allocations: 207.3 kB / 432.7 MB, free: 5.055 MB / 334.1 MB
Notification: Performance of NFVerifyModel.verify: time 0.0004419/0.2743, allocations: 449.8 kB / 433.1 MB, free: 4.613 MB / 334.1 MB
Notification: Performance of NFConvertDAE.convert: time 0.001166/0.2755, allocations: 1.04 MB / 434.2 MB, free: 3.574 MB / 334.1 MB
Notification: Performance of FrontEnd - DAE generated: time 7.935e-06/0.2755, allocations: 8 kB / 434.2 MB, free: 3.566 MB / 334.1 MB
Notification: Performance of FrontEnd: time 1.673e-06/0.2755, allocations: 0 / 434.2 MB, free: 3.566 MB / 334.1 MB
Notification: Performance of Transformations before backend: time 1.111e-05/0.2755, allocations: 0 / 434.2 MB, free: 3.566 MB / 334.1 MB
Notification: Model statistics after passing the front-end and creating the data structures used by the back-end:
 * Number of equations: 158
 * Number of variables: 158
Notification: Performance of Generate backend data structure: time 0.002866/0.2784, allocations: 1.202 MB / 435.4 MB, free: 2.316 MB / 334.1 MB
Notification: Performance of prepare preOptimizeDAE: time 4.232e-05/0.2784, allocations: 15.95 kB / 435.4 MB, free: 2.301 MB / 334.1 MB
Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001715/0.2786, allocations: 96.38 kB / 435.5 MB, free: 2.207 MB / 334.1 MB
Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007584/0.2793, allocations: 430.1 kB / 435.9 MB, free: 1.758 MB / 334.1 MB
Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.948e-05/0.2794, allocations: 45.69 kB / 435.9 MB, free: 1.711 MB / 334.1 MB
Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001213/0.2795, allocations: 68.36 kB / 436 MB, free: 1.645 MB / 334.1 MB
Notification: Performance of preOpt clockPartitioning (simulation): time 0.001537/0.2811, allocations: 0.647 MB / 436.7 MB, free: 0.9961 MB / 334.1 MB
Notification: Performance of preOpt findStateOrder (simulation): time 1.994e-05/0.2811, allocations: 7.938 kB / 436.7 MB, free: 0.9883 MB / 334.1 MB
Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.832e-05/0.2811, allocations: 28 kB / 436.7 MB, free: 0.9609 MB / 334.1 MB
Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.674e-05/0.2812, allocations: 16 kB / 436.7 MB, free: 0.9453 MB / 334.1 MB
Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001855/0.283, allocations: 0.6961 MB / 437.4 MB, free: 252 kB / 334.1 MB
Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts.
Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004239/0.2873, allocations: 2.316 MB / 439.7 MB, free: 13.78 MB / 350.1 MB
Notification: Performance of preOpt comSubExp (simulation): time 0.00159/0.2888, allocations: 0.5554 MB / 440.3 MB, free: 13.21 MB / 350.1 MB
Notification: Performance of preOpt resolveLoops (simulation): time 0.0008135/0.2897, allocations: 317.9 kB / 440.6 MB, free: 12.9 MB / 350.1 MB
Notification: Performance of preOpt evalFunc (simulation): time 4.514e-05/0.2897, allocations: 8.422 kB / 440.6 MB, free: 12.89 MB / 350.1 MB
Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00102/0.2907, allocations: 429.4 kB / 441 MB, free: 12.45 MB / 350.1 MB
Notification: Performance of pre-optimization done (n=54): time 1.844e-06/0.2907, allocations: 0 / 441 MB, free: 12.45 MB / 350.1 MB
Notification: Performance of matching and sorting (n=94): time 0.07444/0.3652, allocations: 15.23 MB / 456.2 MB, free: 13.16 MB / 366.1 MB
Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001668/0.3653, allocations: 145.5 kB / 456.4 MB, free: 12.98 MB / 366.1 MB
Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007386/0.3661, allocations: 0.5147 MB / 456.9 MB, free: 12.46 MB / 366.1 MB
Notification: Performance of collectPreVariables (initialization): time 0.0002042/0.3663, allocations: 49.7 kB / 456.9 MB, free: 12.41 MB / 366.1 MB
Notification: Performance of collectInitialEqns (initialization): time 0.000355/0.3666, allocations: 404.6 kB / 457.3 MB, free: 12 MB / 366.1 MB
Notification: Performance of collectInitialBindings (initialization): time 0.0003579/0.367, allocations: 325.2 kB / 457.7 MB, free: 11.68 MB / 366.1 MB
Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004142/0.3674, allocations: 186.6 kB / 457.8 MB, free: 11.5 MB / 366.1 MB
Notification: Performance of setup shared object (initialization): time 0.0002119/0.3676, allocations: 386.7 kB / 458.2 MB, free: 11.11 MB / 366.1 MB
Notification: Performance of preBalanceInitialSystem (initialization): time 0.002247/0.3699, allocations: 0.7205 MB / 458.9 MB, free: 10.39 MB / 366.1 MB
Notification: Performance of partitionIndependentBlocks (initialization): time 0.002422/0.3723, allocations: 0.9551 MB / 459.9 MB, free: 9.344 MB / 366.1 MB
Notification: Performance of analyzeInitialSystem (initialization): time 0.004497/0.3768, allocations: 1.697 MB / 461.6 MB, free: 7.555 MB / 366.1 MB
Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.418e-06/0.3768, allocations: 4 kB / 461.6 MB, free: 7.551 MB / 366.1 MB
Notification: Performance of matching and sorting (n=128) (initialization): time 0.02425/0.401, allocations: 5.328 MB / 466.9 MB, free: 2.191 MB / 366.1 MB
Notification: Performance of prepare postOptimizeDAE: time 7.642e-05/0.4011, allocations: 63.39 kB / 467 MB, free: 2.117 MB / 366.1 MB
Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.581e-05/0.4011, allocations: 4 kB / 467 MB, free: 2.113 MB / 366.1 MB
Notification: Performance of postOpt tearingSystem (initialization): time 0.03573/0.4369, allocations: 6.845 MB / 473.8 MB, free: 11.25 MB / 382.1 MB
Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007695/0.4376, allocations: 151.7 kB / 474 MB, free: 11.11 MB / 382.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007325/0.4449, allocations: 3.18 MB / 477.2 MB, free: 7.871 MB / 382.1 MB
Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001758/0.4467, allocations: 171.9 kB / 477.3 MB, free: 7.703 MB / 382.1 MB
Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001274/0.4468, allocations: 47.97 kB / 477.4 MB, free: 7.656 MB / 382.1 MB
Notification: Model statistics after passing the back-end for initialization:
 * Number of independent subsystems: 27
 * Number of states: 0 ()
 * Number of discrete variables: 10 (V2.signalSource.count,$PRE.V2.signalSource.count,V2.signalSource.T_start,$PRE.V2.signalSource.T_start,V1.signalSource.count,$PRE.V1.signalSource.count,V1.signalSource.T_start,$PRE.V1.signalSource.T_start,$whenCondition1,$whenCondition2)
 * Number of discrete states: 0 ()
 * Number of clocked states: 0 ()
 * Top-level inputs: 0
Notification: Strong component statistics for initialization (54):
 * Single equations (assignments): 50
 * Array equations: 0
 * Algorithm blocks: 2
 * 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): 0 systems
 * Non-linear torn systems (#iteration vars, #inner vars): 2 systems
   {(5,32), (5,32)}
Notification: Performance of prepare postOptimizeDAE: time 0.0004707/0.4473, allocations: 229.6 kB / 477.6 MB, free: 7.422 MB / 382.1 MB
Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001874/0.4475, allocations: 87.48 kB / 477.7 MB, free: 7.336 MB / 382.1 MB
Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02286/0.4703, allocations: 5.052 MB / 482.7 MB, free: 2.258 MB / 382.1 MB
Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.396e-05/0.4704, allocations: 15.94 kB / 482.8 MB, free: 2.242 MB / 382.1 MB
Notification: Performance of postOpt constantLinearSystem (simulation): time 8.466e-06/0.4704, allocations: 0 / 482.8 MB, free: 2.242 MB / 382.1 MB
Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.159e-05/0.4704, allocations: 7.922 kB / 482.8 MB, free: 2.234 MB / 382.1 MB
Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001577/0.472, allocations: 1.076 MB / 483.8 MB, free: 1.117 MB / 382.1 MB
Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.345e-06/0.472, allocations: 7.984 kB / 483.8 MB, free: 1.109 MB / 382.1 MB
Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005467/0.4725, allocations: 91.89 kB / 483.9 MB, free: 1.02 MB / 382.1 MB
Notification: Performance of postOpt tearingSystem (simulation): time 0.03486/0.5074, allocations: 6.797 MB / 490.7 MB, free: 10.2 MB / 398.1 MB
Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001804/0.5076, allocations: 23.98 kB / 490.8 MB, free: 10.18 MB / 398.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006443/0.514, allocations: 3.048 MB / 493.8 MB, free: 7.074 MB / 398.1 MB
Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.615e-06/0.514, allocations: 0.5 kB / 493.8 MB, free: 7.074 MB / 398.1 MB
Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02617/0.5402, allocations: 5.956 MB / 499.8 MB, free: 1.094 MB / 398.1 MB
Notification: Performance of postOpt removeConstants (simulation): time 0.0003234/0.5405, allocations: 75.44 kB / 499.8 MB, free: 1.02 MB / 398.1 MB
Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002903/0.5408, allocations: 16 kB / 499.8 MB, free: 1.004 MB / 398.1 MB
Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002064/0.5429, allocations: 175.8 kB / 0.4883 GB, free: 0.832 MB / 398.1 MB
Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004266/0.5433, allocations: 100.8 kB / 0.4884 GB, free: 0.7344 MB / 398.1 MB
Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001514/0.5434, allocations: 31.97 kB / 0.4884 GB, free: 0.7031 MB / 398.1 MB
Notification: Performance of sorting global known variables: time 0.0007248/0.5442, allocations: 354.9 kB / 0.4888 GB, free: 364 kB / 398.1 MB
Notification: Performance of sort global known variables: time 2.3e-07/0.5442, allocations: 0 / 0.4888 GB, free: 364 kB / 398.1 MB
Notification: Performance of remove unused functions: time 0.001272/0.5454, allocations: 267.9 kB / 0.489 GB, free: 96 kB / 398.1 MB
Notification: Model statistics after passing the back-end for simulation:
 * Number of independent subsystems: 1
 * Number of states: 1 (HeatCapacitor1.T)
 * Number of discrete variables: 6 ($whenCondition2,$whenCondition1,V1.signalSource.T_start,V1.signalSource.count,V2.signalSource.T_start,V2.signalSource.count)
 * Number of discrete states: 2 (V2.signalSource.count,V1.signalSource.count)
 * Number of clocked states: 0 ()
 * Top-level inputs: 0
Notification: Strong component statistics for simulation (22):
 * Single equations (assignments): 16
 * Array equations: 0
 * Algorithm blocks: 0
 * Record equations: 0
 * When equations: 4
 * 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): 0 systems
 * Non-linear torn systems (#iteration vars, #inner vars): 2 systems
   {(5,32), (5,36)}
Notification: Performance of Backend phase and start with SimCode phase: time 0.0003839/0.5458, allocations: 119.2 kB / 0.4891 GB, free: 15.97 MB / 414.1 MB
Notification: Performance of simCode: created initialization part: time 0.01035/0.5562, allocations: 2.11 MB / 0.4912 GB, free: 13.83 MB / 414.1 MB
Notification: Performance of simCode: created event and clocks part: time 5.841e-06/0.5562, allocations: 0 / 0.4912 GB, free: 13.83 MB / 414.1 MB
Notification: Performance of simCode: created simulation system equations: time 0.005293/0.5615, allocations: 1.019 MB / 0.4922 GB, free: 12.82 MB / 414.1 MB
Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001102/0.5626, allocations: 126.2 kB / 0.4923 GB, free: 12.7 MB / 414.1 MB
Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005833/0.5684, allocations: 1.795 MB / 0.4941 GB, free: 10.87 MB / 414.1 MB
Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00079/0.5692, allocations: 0.9468 MB / 0.495 GB, free: 9.891 MB / 414.1 MB
Notification: Performance of simCode: alias equations: time 0.0003882/0.5696, allocations: 58.27 kB / 0.495 GB, free: 9.832 MB / 414.1 MB
Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001891/0.5698, allocations: 43.44 kB / 0.4951 GB, free: 9.789 MB / 414.1 MB
Notification: Performance of SimCode: time 1.172e-06/0.5698, allocations: 0 / 0.4951 GB, free: 9.789 MB / 414.1 MB
Notification: Performance of Templates: time 0.0432/0.613, allocations: 23.8 MB / 0.5183 GB, free: 2.074 MB / 430.1 MB
"
[Timeout remaining time 659]
make -j1 -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate.makefile [Timeout 660]
(rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate.sim & ./Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate  -abortSlowSimulation -alarm=480  -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate.pipe 2>&1) [Timeout 480]
diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/HeatingNPN_NORGate/HeatingNPN_NORGate.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate.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: 5.8829465340822935]