Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingPNP_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.001817/0.001817, allocations: 112 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.0021/0.0021, allocations: 180.8 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.451/1.451, 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.Analog.Examples.HeatingPNP_NORGate,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5041,variableFilter="time|HeatCapacitor1.T",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate")
translateModel(Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5041,variableFilter="time|HeatCapacitor1.T",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate") [Timeout 660]
"Notification: Performance of FrontEnd - loaded program: time 0.001577/0.001577, allocations: 51.91 kB / 371 MB, free: 9.324 MB / 302.1 MB
Notification: Performance of FrontEnd - Absyn->SCode: time 0.3003/0.3019, allocations: 52.19 MB / 423.1 MB, free: 14.68 MB / 334.1 MB
Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate): time 0.006407/0.3083, allocations: 4.976 MB / 428.1 MB, free: 9.676 MB / 334.1 MB
Notification: Performance of NFInst.instExpressions: time 0.00258/0.3109, allocations: 1.276 MB / 429.4 MB, free: 8.391 MB / 334.1 MB
Notification: Performance of NFInst.updateImplicitVariability: time 0.0003668/0.3113, allocations: 15.94 kB / 429.4 MB, free: 8.375 MB / 334.1 MB
Notification: Performance of NFTyping.typeComponents: time 0.0003073/0.3116, allocations: 118.7 kB / 429.5 MB, free: 8.258 MB / 334.1 MB
Notification: Performance of NFTyping.typeBindings: time 0.0005286/0.3121, allocations: 265.6 kB / 429.8 MB, free: 7.996 MB / 334.1 MB
Notification: Performance of NFTyping.typeClassSections: time 0.0007554/0.3128, allocations: 315.5 kB / 430.1 MB, free: 7.688 MB / 334.1 MB
Notification: Performance of NFFlatten.flatten: time 0.001313/0.3142, allocations: 1.099 MB / 431.2 MB, free: 6.586 MB / 334.1 MB
Notification: Performance of NFFlatten.resolveConnections: time 0.0003518/0.3145, allocations: 191 kB / 431.4 MB, free: 6.383 MB / 334.1 MB
Notification: Performance of NFEvalConstants.evaluate: time 0.0006126/0.3151, allocations: 422.6 kB / 431.8 MB, free: 5.969 MB / 334.1 MB
Notification: Performance of NFSimplifyModel.simplify: time 0.0006471/0.3158, allocations: 489.9 kB / 432.3 MB, free: 5.488 MB / 334.1 MB
Notification: Performance of NFPackage.collectConstants: time 0.0001483/0.3159, allocations: 88 kB / 432.4 MB, free: 5.402 MB / 334.1 MB
Notification: Performance of NFFlatten.collectFunctions: time 0.0002415/0.3162, allocations: 116 kB / 432.5 MB, free: 5.289 MB / 334.1 MB
Notification: Performance of NFScalarize.scalarize: time 0.00021/0.3164, allocations: 199.3 kB / 432.7 MB, free: 5.094 MB / 334.1 MB
Notification: Performance of NFVerifyModel.verify: time 0.0004754/0.3168, allocations: 453.8 kB / 433.1 MB, free: 4.648 MB / 334.1 MB
Notification: Performance of NFConvertDAE.convert: time 0.001259/0.3181, allocations: 1.04 MB / 434.1 MB, free: 3.609 MB / 334.1 MB
Notification: Performance of FrontEnd - DAE generated: time 4.879e-06/0.3181, allocations: 4 kB / 434.1 MB, free: 3.605 MB / 334.1 MB
Notification: Performance of FrontEnd: time 1.573e-06/0.3181, allocations: 0 / 434.1 MB, free: 3.605 MB / 334.1 MB
Notification: Performance of Transformations before backend: time 1.48e-05/0.3181, allocations: 0 / 434.1 MB, free: 3.605 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.002923/0.321, allocations: 1.209 MB / 435.4 MB, free: 2.348 MB / 334.1 MB
Notification: Performance of prepare preOptimizeDAE: time 3.835e-05/0.3211, allocations: 12.02 kB / 435.4 MB, free: 2.336 MB / 334.1 MB
Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001811/0.3213, allocations: 96.38 kB / 435.5 MB, free: 2.242 MB / 334.1 MB
Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007831/0.3221, allocations: 422.1 kB / 435.9 MB, free: 1.801 MB / 334.1 MB
Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.665e-05/0.3221, allocations: 49.69 kB / 435.9 MB, free: 1.75 MB / 334.1 MB
Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001245/0.3222, allocations: 68.36 kB / 436 MB, free: 1.684 MB / 334.1 MB
Notification: Performance of preOpt clockPartitioning (simulation): time 0.001558/0.3238, allocations: 0.6509 MB / 436.6 MB, free: 1.031 MB / 334.1 MB
Notification: Performance of preOpt findStateOrder (simulation): time 2.012e-05/0.3238, allocations: 4 kB / 436.6 MB, free: 1.027 MB / 334.1 MB
Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.886e-05/0.3239, allocations: 24 kB / 436.7 MB, free: 1.004 MB / 334.1 MB
Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.837e-05/0.3239, allocations: 16 kB / 436.7 MB, free: 0.9883 MB / 334.1 MB
Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001901/0.3258, allocations: 0.696 MB / 437.4 MB, free: 296 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.004439/0.3302, allocations: 2.327 MB / 439.7 MB, free: 13.81 MB / 350.1 MB
Notification: Performance of preOpt comSubExp (simulation): time 0.001592/0.3318, allocations: 0.5592 MB / 440.3 MB, free: 13.24 MB / 350.1 MB
Notification: Performance of preOpt resolveLoops (simulation): time 0.000823/0.3326, allocations: 306 kB / 440.6 MB, free: 12.94 MB / 350.1 MB
Notification: Performance of preOpt evalFunc (simulation): time 4.786e-05/0.3327, allocations: 8.438 kB / 440.6 MB, free: 12.93 MB / 350.1 MB
Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001059/0.3337, allocations: 429.1 kB / 441 MB, free: 12.49 MB / 350.1 MB
Notification: Performance of pre-optimization done (n=54): time 2.134e-06/0.3338, allocations: 4 kB / 441 MB, free: 12.49 MB / 350.1 MB
Notification: Performance of matching and sorting (n=94): time 0.07243/0.4062, allocations: 15.22 MB / 456.2 MB, free: 13.21 MB / 366.1 MB
Notification: Performance of inlineWhenForInitialization (initialization): time 0.000134/0.4063, allocations: 141.5 kB / 456.4 MB, free: 13.04 MB / 366.1 MB
Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009779/0.4073, allocations: 0.5186 MB / 456.9 MB, free: 12.51 MB / 366.1 MB
Notification: Performance of collectPreVariables (initialization): time 0.0002251/0.4075, allocations: 49.64 kB / 456.9 MB, free: 12.45 MB / 366.1 MB
Notification: Performance of collectInitialEqns (initialization): time 0.00036/0.4079, allocations: 404.6 kB / 457.3 MB, free: 12.05 MB / 366.1 MB
Notification: Performance of collectInitialBindings (initialization): time 0.0003408/0.4082, allocations: 329.2 kB / 457.6 MB, free: 11.73 MB / 366.1 MB
Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004064/0.4086, allocations: 182.6 kB / 457.8 MB, free: 11.54 MB / 366.1 MB
Notification: Performance of setup shared object (initialization): time 0.000219/0.4088, allocations: 394.6 kB / 458.2 MB, free: 11.15 MB / 366.1 MB
Notification: Performance of preBalanceInitialSystem (initialization): time 0.002204/0.411, allocations: 0.7205 MB / 458.9 MB, free: 10.43 MB / 366.1 MB
Notification: Performance of partitionIndependentBlocks (initialization): time 0.002372/0.4134, allocations: 0.9551 MB / 459.9 MB, free: 9.383 MB / 366.1 MB
Notification: Performance of analyzeInitialSystem (initialization): time 0.004628/0.418, allocations: 1.693 MB / 461.6 MB, free: 7.598 MB / 366.1 MB
Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.841e-06/0.4181, allocations: 0 / 461.6 MB, free: 7.598 MB / 366.1 MB
Notification: Performance of matching and sorting (n=128) (initialization): time 0.02505/0.4431, allocations: 5.332 MB / 466.9 MB, free: 2.234 MB / 366.1 MB
Notification: Performance of prepare postOptimizeDAE: time 8.375e-05/0.4432, allocations: 59.41 kB / 467 MB, free: 2.164 MB / 366.1 MB
Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.344e-05/0.4432, allocations: 7.984 kB / 467 MB, free: 2.156 MB / 366.1 MB
Notification: Performance of postOpt tearingSystem (initialization): time 0.03549/0.4787, allocations: 6.825 MB / 473.8 MB, free: 11.32 MB / 382.1 MB
Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007727/0.4795, allocations: 159.7 kB / 474 MB, free: 11.16 MB / 382.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006532/0.486, allocations: 3.02 MB / 477 MB, free: 8.086 MB / 382.1 MB
Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001734/0.4877, allocations: 179.8 kB / 477.1 MB, free: 7.91 MB / 382.1 MB
Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000135/0.4879, allocations: 51.97 kB / 477.2 MB, free: 7.859 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.0004834/0.4884, allocations: 225.6 kB / 477.4 MB, free: 7.629 MB / 382.1 MB
Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001706/0.4885, allocations: 83.48 kB / 477.5 MB, free: 7.547 MB / 382.1 MB
Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02323/0.5118, allocations: 5.064 MB / 482.6 MB, free: 2.457 MB / 382.1 MB
Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.815e-05/0.5118, allocations: 12.05 kB / 482.6 MB, free: 2.445 MB / 382.1 MB
Notification: Performance of postOpt constantLinearSystem (simulation): time 7.163e-06/0.5118, allocations: 3.984 kB / 482.6 MB, free: 2.441 MB / 382.1 MB
Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.725e-05/0.5118, allocations: 3.984 kB / 482.6 MB, free: 2.438 MB / 382.1 MB
Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001658/0.5135, allocations: 1.076 MB / 483.7 MB, free: 1.32 MB / 382.1 MB
Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.071e-06/0.5135, allocations: 4 kB / 483.7 MB, free: 1.316 MB / 382.1 MB
Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005616/0.514, allocations: 91.88 kB / 483.8 MB, free: 1.227 MB / 382.1 MB
Notification: Performance of postOpt tearingSystem (simulation): time 0.03557/0.5496, allocations: 6.789 MB / 490.5 MB, free: 10.42 MB / 398.1 MB
Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002193/0.5498, allocations: 27.97 kB / 490.6 MB, free: 10.39 MB / 398.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006732/0.5566, allocations: 3.032 MB / 493.6 MB, free: 7.305 MB / 398.1 MB
Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.966e-06/0.5566, allocations: 0 / 493.6 MB, free: 7.305 MB / 398.1 MB
Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02623/0.5828, allocations: 5.941 MB / 499.5 MB, free: 1.336 MB / 398.1 MB
Notification: Performance of postOpt removeConstants (simulation): time 0.0002114/0.583, allocations: 75.44 kB / 499.6 MB, free: 1.262 MB / 398.1 MB
Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002152/0.5832, allocations: 24 kB / 499.6 MB, free: 1.238 MB / 398.1 MB
Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001528/0.5847, allocations: 163.8 kB / 499.8 MB, free: 1.078 MB / 398.1 MB
Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002842/0.585, allocations: 104.8 kB / 499.9 MB, free: 0.9766 MB / 398.1 MB
Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.731e-05/0.5851, allocations: 27.98 kB / 499.9 MB, free: 0.9492 MB / 398.1 MB
Notification: Performance of sorting global known variables: time 0.0004918/0.5856, allocations: 354.8 kB / 0.4886 GB, free: 0.6016 MB / 398.1 MB
Notification: Performance of sort global known variables: time 8.1e-08/0.5856, allocations: 0 / 0.4886 GB, free: 0.6016 MB / 398.1 MB
Notification: Performance of remove unused functions: time 0.0009489/0.5866, allocations: 264 kB / 0.4888 GB, free: 352 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.0002783/0.5868, allocations: 129 kB / 0.4889 GB, free: 216 kB / 398.1 MB
Notification: Performance of simCode: created initialization part: time 0.00722/0.5941, allocations: 1.986 MB / 0.4909 GB, free: 14.2 MB / 414.1 MB
Notification: Performance of simCode: created event and clocks part: time 5.861e-06/0.5941, allocations: 0 / 0.4909 GB, free: 14.2 MB / 414.1 MB
Notification: Performance of simCode: created simulation system equations: time 0.003981/0.5981, allocations: 1.003 MB / 0.4918 GB, free: 13.2 MB / 414.1 MB
Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008067/0.5989, allocations: 138.2 kB / 0.492 GB, free: 13.07 MB / 414.1 MB
Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004058/0.6029, allocations: 1.799 MB / 0.4937 GB, free: 11.24 MB / 414.1 MB
Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005991/0.6035, allocations: 0.9507 MB / 0.4947 GB, free: 10.25 MB / 414.1 MB
Notification: Performance of simCode: alias equations: time 0.0002831/0.6038, allocations: 62.2 kB / 0.4947 GB, free: 10.19 MB / 414.1 MB
Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001244/0.6039, allocations: 31.44 kB / 0.4948 GB, free: 10.16 MB / 414.1 MB
Notification: Performance of SimCode: time 1.283e-06/0.6039, allocations: 7.938 kB / 0.4948 GB, free: 10.15 MB / 414.1 MB
Notification: Performance of Templates: time 0.04103/0.645, allocations: 24.04 MB / 0.5182 GB, free: 2.195 MB / 430.1 MB
"
[Timeout remaining time 659]
make -j1 -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.makefile [Timeout 660]
(rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.sim & ./Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate  -abortSlowSimulation -alarm=480  -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.pipe 2>&1) [Timeout 480]
diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/HeatingPNP_NORGate/HeatingPNP_NORGate.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingPNP_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.906852942891419]