Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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_3.2.3_cpp_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_3.2.3_cpp_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001932/0.001933, allocations: 180.9 kB / 17.41 MB, free: 4.402 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 4.125/4.125, allocations: 205.4 MB / 223.6 MB, free: 9.023 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001273/0.001273, allocations: 100.7 kB / 271.9 MB, free: 8.246 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004967/0.0004972, allocations: 12 kB / 328.1 MB, free: 15.94 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5889/0.5895, allocations: 47.58 MB / 375.7 MB, free: 45.41 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1933/0.7829, allocations: 81.23 MB / 457 MB, free: 15.39 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004284/0.7835, allocations: 71.91 kB / 457 MB, free: 15.32 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.06318/0.8467, allocations: 12.1 MB / 469.1 MB, free: 3.156 MB / 346.7 MB Notification: Performance of FrontEnd: time 3.587e-06/0.8468, allocations: 4 kB / 469.1 MB, free: 3.152 MB / 346.7 MB Notification: Performance of Transformations before backend: time 7.881e-05/0.8469, allocations: 16 kB / 469.1 MB, free: 3.137 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 152 * Number of variables: 152 Notification: Performance of Generate backend data structure: time 0.005123/0.852, allocations: 1.12 MB / 470.3 MB, free: 1.949 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 8.293e-05/0.8522, allocations: 8.031 kB / 470.3 MB, free: 1.941 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006034/0.8528, allocations: 84 kB / 470.4 MB, free: 1.859 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00192/0.8547, allocations: 0.5141 MB / 470.9 MB, free: 1.305 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001066/0.8549, allocations: 41.69 kB / 470.9 MB, free: 1.262 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003895/0.8553, allocations: 68.38 kB / 471 MB, free: 1.195 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002317/0.8576, allocations: 0.6512 MB / 471.6 MB, free: 0.5391 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.655e-05/0.8577, allocations: 8.094 kB / 471.6 MB, free: 0.5312 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001385/0.8578, allocations: 27.94 kB / 471.7 MB, free: 0.5039 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.232e-05/0.8579, allocations: 19.98 kB / 471.7 MB, free: 496 kB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002992/0.8609, allocations: 0.7312 MB / 472.4 MB, free: 15.75 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008279/0.8692, allocations: 2.29 MB / 474.7 MB, free: 13.34 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003066/0.8724, allocations: 0.6304 MB / 475.3 MB, free: 12.7 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001443/0.8739, allocations: 362.6 kB / 475.7 MB, free: 12.34 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.066e-05/0.874, allocations: 8.422 kB / 475.7 MB, free: 12.33 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001627/0.8756, allocations: 457.4 kB / 476.1 MB, free: 11.86 MB / 362.7 MB Notification: Performance of pre-optimization done (n=54): time 6.853e-06/0.8757, allocations: 3.984 kB / 476.1 MB, free: 11.86 MB / 362.7 MB Notification: Performance of matching and sorting (n=94): time 0.1136/0.9893, allocations: 16.55 MB / 492.7 MB, free: 11.19 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002283/0.9896, allocations: 141.5 kB / 492.8 MB, free: 11.02 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001345/0.991, allocations: 490.8 kB / 493.3 MB, free: 10.53 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004624/0.9914, allocations: 49.7 kB / 493.4 MB, free: 10.48 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005888/0.9921, allocations: 371.8 kB / 493.7 MB, free: 10.11 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006915/0.9928, allocations: 307.5 kB / 494 MB, free: 9.801 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001166/0.9929, allocations: 16 kB / 494 MB, free: 9.785 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0004535/0.9934, allocations: 382.8 kB / 494.4 MB, free: 9.402 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003565/0.9969, allocations: 0.7905 MB / 495.2 MB, free: 8.613 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003461/1, allocations: 1.002 MB / 496.2 MB, free: 7.531 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01406/1.015, allocations: 1.803 MB / 498 MB, free: 5.648 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.152e-05/1.015, allocations: 0 / 498 MB, free: 5.648 MB / 378.7 MB Notification: Performance of matching and sorting (n=124) (initialization): time 0.05255/1.067, allocations: 5.601 MB / 0.4918 GB, free: 16 kB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.8034/1.871, allocations: 60.86 kB / 0.4919 GB, free: 106.7 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.687e-05/1.871, allocations: 5.484 kB / 0.4919 GB, free: 106.7 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.05208/1.923, allocations: 7.337 MB / 0.499 GB, free: 106.7 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001059/1.924, allocations: 172.6 kB / 0.4992 GB, free: 106.7 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008463/1.933, allocations: 3.071 MB / 0.5022 GB, free: 105.6 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002862/1.936, allocations: 225.6 kB / 0.5024 GB, free: 105.6 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003179/1.936, allocations: 41.86 kB / 0.5025 GB, free: 105.6 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 23 * 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (50): * Single equations (assignments): 46 * 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.0009067/1.937, allocations: 223.6 kB / 0.5027 GB, free: 105.5 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002914/1.937, allocations: 74.12 kB / 0.5027 GB, free: 105.5 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03012/1.967, allocations: 5.465 MB / 0.5081 GB, free: 105.2 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.448e-05/1.967, allocations: 11.69 kB / 0.5081 GB, free: 105.2 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.862e-05/1.967, allocations: 0 / 0.5081 GB, free: 105.2 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.517e-05/1.967, allocations: 8.797 kB / 0.5081 GB, free: 105.2 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002467/1.97, allocations: 1.075 MB / 0.5091 GB, free: 104.7 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.229e-05/1.97, allocations: 4.594 kB / 0.5092 GB, free: 104.7 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008228/1.971, allocations: 129.2 kB / 0.5093 GB, free: 104.7 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.06138/2.032, allocations: 7.289 MB / 0.5164 GB, free: 99.17 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004406/2.033, allocations: 27.97 kB / 0.5164 GB, free: 99.14 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01418/2.047, allocations: 3.234 MB / 0.5196 GB, free: 95.88 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.1e-05/2.047, allocations: 2 kB / 0.5196 GB, free: 95.88 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.05328/2.1, allocations: 6.423 MB / 0.5259 GB, free: 89.51 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005109/2.101, allocations: 140.1 kB / 0.526 GB, free: 89.35 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006549/2.102, allocations: 24 kB / 0.526 GB, free: 89.33 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002353/2.104, allocations: 211.8 kB / 0.5262 GB, free: 89.12 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005599/2.105, allocations: 106.2 kB / 0.5263 GB, free: 89.02 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002512/2.105, allocations: 27.98 kB / 0.5263 GB, free: 88.99 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001239/2.106, allocations: 330.9 kB / 0.5267 GB, free: 88.67 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.323e-06/2.107, allocations: 0 / 0.5267 GB, free: 88.67 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.002371/2.109, allocations: 266.5 kB / 0.5269 GB, free: 88.42 MB / 378.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) * 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 (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.0006774/2.11, allocations: 139 kB / 0.527 GB, free: 88.29 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.01135/2.121, allocations: 2.181 MB / 0.5292 GB, free: 86.09 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.733e-05/2.121, allocations: 3.172 kB / 0.5292 GB, free: 86.09 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.008533/2.13, allocations: 1.286 MB / 0.5304 GB, free: 84.81 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002773/2.133, allocations: 128.6 kB / 0.5306 GB, free: 84.69 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008713/2.141, allocations: 2.1 MB / 0.5326 GB, free: 82.59 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009293/2.142, allocations: 0.9391 MB / 0.5335 GB, free: 81.62 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003761/2.143, allocations: 31.44 kB / 0.5335 GB, free: 81.59 MB / 378.7 MB Notification: Performance of SimCode: time 1.713e-06/2.143, allocations: 0 / 0.5335 GB, free: 81.59 MB / 378.7 MB Notification: Performance of Templates: time 0.04398/2.187, allocations: 16.74 MB / 0.5499 GB, free: 64.91 MB / 378.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.sim & ./Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Analog/Examples/HeatingPNP_NORGate/HeatingPNP_NORGate.csv","../files/Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches