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/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.HeatingPNP_NORGate,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,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=5000,variableFilter="time|HeatCapacitor1.T",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009724/0.0009725, allocations: 175.5 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.265/1.265, allocations: 221.3 MB / 235.5 MB, free: 2.961 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.0008786/0.0008786, allocations: 99.23 kB / 286.5 MB, free: 228 kB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.144e-05/3.147e-05, allocations: 4 kB / 343.8 MB, free: 4.32 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1225/0.1226, allocations: 50.42 MB / 394.2 MB, free: 1.859 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.331/0.4537, allocations: 82.97 MB / 477.2 MB, free: 4.574 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001832/0.4539, allocations: 75.78 kB / 477.3 MB, free: 4.504 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03531/0.4892, allocations: 12.72 MB / 490 MB, free: 7.738 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.824e-06/0.4892, allocations: 8 kB / 490 MB, free: 7.73 MB / 362.7 MB Notification: Performance of Transformations before backend: time 4.718e-05/0.4893, allocations: 12 kB / 490 MB, free: 7.719 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.002175/0.4915, allocations: 1.074 MB / 491.1 MB, free: 6.582 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.563e-05/0.4915, allocations: 8.031 kB / 491.1 MB, free: 6.574 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001553/0.4917, allocations: 90.97 kB / 491.2 MB, free: 6.484 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000801/0.4925, allocations: 0.4959 MB / 491.7 MB, free: 5.949 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.004e-05/0.4926, allocations: 49.25 kB / 491.7 MB, free: 5.902 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001057/0.4927, allocations: 67.95 kB / 491.8 MB, free: 5.836 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009885/0.4937, allocations: 0.5727 MB / 492.4 MB, free: 5.254 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.801e-05/0.4937, allocations: 0 / 492.4 MB, free: 5.254 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.132e-05/0.4938, allocations: 24 kB / 492.4 MB, free: 5.23 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.278e-05/0.4938, allocations: 16 kB / 492.4 MB, free: 5.215 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008904/0.4947, allocations: 0.544 MB / 493 MB, free: 4.672 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003631/0.4983, allocations: 2.356 MB / 495.3 MB, free: 2.188 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007243/0.4991, allocations: 458.7 kB / 495.8 MB, free: 1.734 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003582/0.4994, allocations: 262 kB / 496 MB, free: 1.477 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.809e-05/0.4995, allocations: 12.42 kB / 496 MB, free: 1.465 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005216/0.5, allocations: 337.7 kB / 496.4 MB, free: 1.105 MB / 362.7 MB Notification: Performance of pre-optimization done (n=54): time 1.743e-06/0.5, allocations: 4 kB / 496.4 MB, free: 1.102 MB / 362.7 MB Notification: Performance of matching and sorting (n=94): time 0.05805/0.5581, allocations: 13.47 MB / 0.4979 GB, free: 3.543 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.97e-05/0.5582, allocations: 149.3 kB / 0.498 GB, free: 3.367 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006836/0.5589, allocations: 452.9 kB / 0.4985 GB, free: 2.918 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001759/0.5591, allocations: 45.7 kB / 0.4985 GB, free: 2.867 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002975/0.5594, allocations: 391.7 kB / 0.4989 GB, free: 2.477 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002899/0.5597, allocations: 315.5 kB / 0.4992 GB, free: 2.164 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.07e-05/0.5598, allocations: 20 kB / 0.4992 GB, free: 2.145 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001693/0.56, allocations: 386.8 kB / 0.4996 GB, free: 1.758 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009934/0.561, allocations: 478.3 kB / 0.5 GB, free: 1.289 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001132/0.5621, allocations: 0.6939 MB / 0.5007 GB, free: 0.5117 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008574/0.563, allocations: 0.5587 MB / 0.5013 GB, free: 15.94 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.117e-06/0.563, allocations: 0 / 0.5013 GB, free: 15.94 MB / 394.7 MB Notification: Performance of matching and sorting (n=128) (initialization): time 0.02067/0.5837, allocations: 4.844 MB / 0.506 GB, free: 11.07 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.394e-05/0.5838, allocations: 59.41 kB / 0.506 GB, free: 11 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.673e-05/0.5838, allocations: 8 kB / 0.5061 GB, free: 10.99 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.03264/0.6165, allocations: 6.923 MB / 0.5128 GB, free: 4.051 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008042/0.6173, allocations: 195.7 kB / 0.513 GB, free: 3.859 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004466/0.6218, allocations: 2.665 MB / 0.5156 GB, free: 1.141 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00176/0.6236, allocations: 223.8 kB / 0.5158 GB, free: 0.9219 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001136/0.6237, allocations: 47.97 kB / 0.5159 GB, free: 0.875 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.0002557/0.624, allocations: 164.8 kB / 0.516 GB, free: 0.707 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000137/0.6241, allocations: 79.06 kB / 0.5161 GB, free: 0.6289 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02091/0.645, allocations: 4.673 MB / 0.5207 GB, free: 11.93 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.492e-05/0.6451, allocations: 11.94 kB / 0.5207 GB, free: 11.92 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.762e-06/0.6451, allocations: 4 kB / 0.5207 GB, free: 11.92 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.897e-05/0.6451, allocations: 3.984 kB / 0.5207 GB, free: 11.91 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001564/0.6467, allocations: 1.122 MB / 0.5218 GB, free: 10.74 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.929e-06/0.6467, allocations: 0 / 0.5218 GB, free: 10.74 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000596/0.6473, allocations: 123.9 kB / 0.5219 GB, free: 10.62 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.03296/0.6803, allocations: 6.895 MB / 0.5286 GB, free: 3.711 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001866/0.6805, allocations: 27.97 kB / 0.5286 GB, free: 3.684 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004239/0.6848, allocations: 2.679 MB / 0.5313 GB, free: 0.9492 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.214e-06/0.6848, allocations: 128 / 0.5313 GB, free: 0.9492 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02141/0.7062, allocations: 5.321 MB / 0.5365 GB, free: 11.6 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003103/0.7066, allocations: 144.2 kB / 0.5366 GB, free: 11.44 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001539/0.7067, allocations: 19.94 kB / 0.5366 GB, free: 11.42 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001476/0.7082, allocations: 219.8 kB / 0.5368 GB, free: 11.21 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002642/0.7085, allocations: 100.6 kB / 0.5369 GB, free: 11.11 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.416e-05/0.7086, allocations: 39.97 kB / 0.537 GB, free: 11.07 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.000392/0.709, allocations: 341.6 kB / 0.5373 GB, free: 10.74 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.709, allocations: 0 / 0.5373 GB, free: 10.74 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.0007332/0.7097, allocations: 268 kB / 0.5375 GB, free: 10.48 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.000265/0.71, allocations: 151.6 kB / 0.5377 GB, free: 10.32 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.003381/0.7134, allocations: 1.52 MB / 0.5392 GB, free: 8.773 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 4.89e-06/0.7134, allocations: 4 kB / 0.5392 GB, free: 8.77 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002267/0.7157, allocations: 0.8185 MB / 0.54 GB, free: 7.953 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005034/0.7162, allocations: 114 kB / 0.5401 GB, free: 7.844 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002258/0.7185, allocations: 1.243 MB / 0.5413 GB, free: 6.566 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004201/0.7189, allocations: 0.9627 MB / 0.5422 GB, free: 5.578 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.0002808/0.7192, allocations: 54.28 kB / 0.5423 GB, free: 5.523 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001149/0.7193, allocations: 31.44 kB / 0.5423 GB, free: 5.492 MB / 426.7 MB Notification: Performance of SimCode: time 6.01e-07/0.7193, allocations: 8 kB / 0.5423 GB, free: 5.484 MB / 426.7 MB Notification: Performance of Templates: time 0.2147/0.934, allocations: 20.93 MB / 0.5628 GB, free: 131.9 MB / 426.7 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.makefile (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) 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","../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches