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/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) 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) Running command: translateModel(Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,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=5000,variableFilter="time|HeatCapacitor1.T",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001001/0.001001, allocations: 175.1 kB / 13.63 MB, free: 1.684 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.405/1.405, allocations: 221.3 MB / 235.5 MB, free: 2.91 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009136/0.0009137, allocations: 87.23 kB / 286.5 MB, free: 192 kB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.331e-05/2.332e-05, allocations: 4 kB / 343.8 MB, free: 4.32 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08568/0.08572, allocations: 50.41 MB / 394.2 MB, free: 1.863 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2729/0.3587, allocations: 82.98 MB / 477.2 MB, free: 4.582 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002005/0.3589, allocations: 79.78 kB / 477.3 MB, free: 4.508 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03458/0.3935, allocations: 12.75 MB / 490 MB, free: 7.711 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.844e-06/0.3936, allocations: 0 / 490 MB, free: 7.711 MB / 362.7 MB Notification: Performance of Transformations before backend: time 3.432e-05/0.3936, allocations: 16 kB / 490.1 MB, free: 7.695 MB / 362.7 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.002113/0.3957, allocations: 1.07 MB / 491.1 MB, free: 6.562 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.098e-05/0.3958, allocations: 12.03 kB / 491.1 MB, free: 6.551 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001578/0.396, allocations: 86.97 kB / 491.2 MB, free: 6.465 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008197/0.3968, allocations: 0.4998 MB / 491.7 MB, free: 5.926 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.255e-05/0.3969, allocations: 49.31 kB / 491.8 MB, free: 5.879 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001048/0.397, allocations: 71.94 kB / 491.8 MB, free: 5.809 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009513/0.3979, allocations: 0.561 MB / 492.4 MB, free: 5.238 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.781e-05/0.3979, allocations: 4 kB / 492.4 MB, free: 5.234 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.38e-05/0.398, allocations: 28 kB / 492.4 MB, free: 5.207 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.277e-05/0.398, allocations: 16 kB / 492.5 MB, free: 5.191 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009215/0.399, allocations: 0.548 MB / 493 MB, free: 4.645 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003514/0.4025, allocations: 2.348 MB / 495.4 MB, free: 2.168 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007479/0.4033, allocations: 470.6 kB / 495.8 MB, free: 1.703 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003747/0.4036, allocations: 262.1 kB / 496.1 MB, free: 1.445 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.308e-05/0.4037, allocations: 8.438 kB / 496.1 MB, free: 1.438 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005559/0.4043, allocations: 341.7 kB / 496.4 MB, free: 1.074 MB / 362.7 MB Notification: Performance of pre-optimization done (n=54): time 2.454e-06/0.4043, allocations: 0 / 496.4 MB, free: 1.074 MB / 362.7 MB Notification: Performance of matching and sorting (n=94): time 0.05753/0.4618, allocations: 13.49 MB / 0.4979 GB, free: 3.504 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.982e-05/0.4619, allocations: 145.3 kB / 0.4981 GB, free: 3.332 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005769/0.4625, allocations: 449 kB / 0.4985 GB, free: 2.891 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001524/0.4627, allocations: 45.7 kB / 0.4986 GB, free: 2.84 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003036/0.463, allocations: 395.7 kB / 0.4989 GB, free: 2.445 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002604/0.4633, allocations: 315.4 kB / 0.4992 GB, free: 2.133 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.651e-05/0.4633, allocations: 24 kB / 0.4993 GB, free: 2.109 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001372/0.4635, allocations: 382.8 kB / 0.4996 GB, free: 1.727 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008111/0.4643, allocations: 478.3 kB / 0.5001 GB, free: 1.258 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009207/0.4652, allocations: 0.6939 MB / 0.5008 GB, free: 492 kB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008394/0.4661, allocations: 0.5548 MB / 0.5013 GB, free: 15.91 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.417e-06/0.4661, allocations: 0 / 0.5013 GB, free: 15.91 MB / 394.7 MB Notification: Performance of matching and sorting (n=128) (initialization): time 0.02032/0.4864, allocations: 4.844 MB / 0.506 GB, free: 11.04 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.917e-05/0.4865, allocations: 67.39 kB / 0.5061 GB, free: 10.96 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.638e-05/0.4865, allocations: 4 kB / 0.5061 GB, free: 10.96 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.03209/0.5186, allocations: 6.946 MB / 0.5129 GB, free: 3.996 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008739/0.5196, allocations: 187.7 kB / 0.5131 GB, free: 3.812 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005353/0.5249, allocations: 2.821 MB / 0.5158 GB, free: 0.9375 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001954/0.5269, allocations: 219.8 kB / 0.516 GB, free: 0.7227 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001713/0.5271, allocations: 55.92 kB / 0.5161 GB, free: 0.668 MB / 394.7 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 ($whenCondition2,$whenCondition1,$PRE.V1.signalSource.T_start,V1.signalSource.T_start,$PRE.V1.signalSource.count,V1.signalSource.count,$PRE.V2.signalSource.T_start,V2.signalSource.T_start,$PRE.V2.signalSource.count,V2.signalSource.count) * Number of discrete 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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {5 32,5 32} Notification: Performance of prepare postOptimizeDAE: time 0.0003456/0.5275, allocations: 167.2 kB / 0.5162 GB, free: 0.5 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001726/0.5276, allocations: 75.06 kB / 0.5163 GB, free: 436 kB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02032/0.548, allocations: 4.688 MB / 0.5209 GB, free: 11.71 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.226e-05/0.548, allocations: 15.94 kB / 0.5209 GB, free: 11.7 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.357e-06/0.5481, allocations: 0 / 0.5209 GB, free: 11.7 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.622e-05/0.5481, allocations: 7.969 kB / 0.5209 GB, free: 11.69 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00162/0.5497, allocations: 1.106 MB / 0.522 GB, free: 10.53 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.548e-06/0.5497, allocations: 4 kB / 0.522 GB, free: 10.53 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005681/0.5503, allocations: 127.9 kB / 0.5221 GB, free: 10.4 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.03217/0.5825, allocations: 6.899 MB / 0.5289 GB, free: 3.488 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001877/0.5827, allocations: 27.97 kB / 0.5289 GB, free: 3.461 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005053/0.5878, allocations: 2.827 MB / 0.5316 GB, free: 0.5781 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.934e-06/0.5878, allocations: 3.938 kB / 0.5316 GB, free: 0.5742 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02116/0.609, allocations: 5.321 MB / 0.5368 GB, free: 11.23 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002895/0.6093, allocations: 136.2 kB / 0.537 GB, free: 11.07 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001494/0.6095, allocations: 31.94 kB / 0.537 GB, free: 11.04 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00141/0.6109, allocations: 215.8 kB / 0.5372 GB, free: 10.83 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002971/0.6112, allocations: 100.6 kB / 0.5373 GB, free: 10.73 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.666e-05/0.6113, allocations: 31.97 kB / 0.5373 GB, free: 10.7 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0003899/0.6117, allocations: 349.6 kB / 0.5377 GB, free: 10.36 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.51e-07/0.6117, allocations: 0 / 0.5377 GB, free: 10.36 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.000722/0.6124, allocations: 271.9 kB / 0.5379 GB, free: 10.1 MB / 426.7 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) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {5 32,5 36} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002763/0.6127, allocations: 142.9 kB / 0.5381 GB, free: 9.949 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.004336/0.6171, allocations: 1.672 MB / 0.5397 GB, free: 8.25 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 2.595e-06/0.6171, allocations: 0 / 0.5397 GB, free: 8.25 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003201/0.6203, allocations: 0.9702 MB / 0.5406 GB, free: 7.281 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005328/0.6208, allocations: 112.3 kB / 0.5407 GB, free: 7.176 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002501/0.6233, allocations: 1.22 MB / 0.5419 GB, free: 5.922 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004273/0.6238, allocations: 0.9705 MB / 0.5429 GB, free: 4.926 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.0002882/0.6241, allocations: 62.25 kB / 0.5429 GB, free: 4.863 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001135/0.6242, allocations: 31.44 kB / 0.543 GB, free: 4.832 MB / 426.7 MB Notification: Performance of SimCode: time 3.81e-07/0.6242, allocations: 4 kB / 0.543 GB, free: 4.828 MB / 426.7 MB Notification: Performance of Templates: time 0.2065/0.8307, allocations: 20.39 MB / 0.5629 GB, free: 132.5 MB / 426.7 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate.makefile (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) 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","../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches