Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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_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_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001046/0.001046, allocations: 181.4 kB / 8.477 MB, free: 1.852 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.317/1.317, allocations: 205.2 MB / 214.1 MB, free: 1.871 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009439/0.0009439, allocations: 83.39 kB / 262.1 MB, free: 1.816 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 6.132e-06/6.152e-06, allocations: 0 / 315 MB, free: 23.02 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07893/0.07895, allocations: 47.59 MB / 362.5 MB, free: 7.379 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2394/0.3184, allocations: 80.62 MB / 443.2 MB, free: 14.89 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002497/0.3187, allocations: 68.47 kB / 443.2 MB, free: 14.86 MB / 330.7 MB Notification: Performance of FrontEnd: time 0.03493/0.3536, allocations: 11.83 MB / 455.1 MB, free: 4.922 MB / 330.7 MB Notification: Performance of Transformations before backend: time 2.657e-05/0.3537, allocations: 12 kB / 455.1 MB, free: 4.91 MB / 330.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.002235/0.3559, allocations: 1.074 MB / 456.2 MB, free: 3.828 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.067e-05/0.356, allocations: 8.031 kB / 456.2 MB, free: 3.82 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000195/0.3562, allocations: 86.97 kB / 456.3 MB, free: 3.734 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008317/0.357, allocations: 0.4928 MB / 456.7 MB, free: 3.27 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.07e-05/0.3571, allocations: 20 kB / 456.8 MB, free: 3.25 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.959e-05/0.3572, allocations: 40 kB / 456.8 MB, free: 3.211 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0008665/0.358, allocations: 0.4986 MB / 457.3 MB, free: 2.902 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007795/0.3588, allocations: 473.5 kB / 457.8 MB, free: 2.57 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.925e-05/0.3589, allocations: 0 / 457.8 MB, free: 2.57 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.153e-05/0.3589, allocations: 3.938 kB / 457.8 MB, free: 2.566 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.626e-05/0.3589, allocations: 16 kB / 457.8 MB, free: 2.551 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003679/0.3626, allocations: 2.208 MB / 460 MB, free: 0.6875 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000651/0.3633, allocations: 403.5 kB / 460.4 MB, free: 440 kB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003186/0.3636, allocations: 240.3 kB / 460.6 MB, free: 296 kB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.246e-05/0.3637, allocations: 16.31 kB / 460.6 MB, free: 284 kB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000439/0.3641, allocations: 310.8 kB / 460.9 MB, free: 32 kB / 330.7 MB Notification: Performance of pre-optimization done (n=54): time 3.416e-06/0.3642, allocations: 3.984 kB / 460.9 MB, free: 28 kB / 330.7 MB Notification: Performance of matching and sorting (n=94): time 0.06734/0.4315, allocations: 14.28 MB / 475.2 MB, free: 2.906 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.503e-05/0.4316, allocations: 137.3 kB / 475.4 MB, free: 2.742 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005294/0.4322, allocations: 404.2 kB / 475.8 MB, free: 2.43 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001721/0.4324, allocations: 25.7 kB / 475.8 MB, free: 2.398 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001806/0.4325, allocations: 294.6 kB / 476.1 MB, free: 2.137 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002488/0.4328, allocations: 303.7 kB / 476.4 MB, free: 1.871 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.396e-05/0.4329, allocations: 0 / 476.4 MB, free: 1.871 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001366/0.433, allocations: 382.2 kB / 476.7 MB, free: 1.52 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007084/0.4337, allocations: 454.5 kB / 477.2 MB, free: 1.285 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008543/0.4346, allocations: 0.6364 MB / 477.8 MB, free: 0.7969 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001885/0.4365, allocations: 0.703 MB / 478.5 MB, free: 316 kB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.211e-06/0.4365, allocations: 4 kB / 478.5 MB, free: 312 kB / 346.7 MB Notification: Performance of matching and sorting (n=124) (initialization): time 0.02372/0.4602, allocations: 4.977 MB / 483.5 MB, free: 11.91 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.12e-05/0.4603, allocations: 4 kB / 483.5 MB, free: 11.91 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.119e-05/0.4603, allocations: 7.906 kB / 483.5 MB, free: 11.9 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0259/0.4863, allocations: 4.947 MB / 488.5 MB, free: 7.23 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007899/0.4871, allocations: 190.2 kB / 488.6 MB, free: 7.051 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006242/0.4933, allocations: 3.225 MB / 491.9 MB, free: 4.012 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001816/0.4952, allocations: 219.8 kB / 492.1 MB, free: 3.797 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001268/0.4953, allocations: 51.97 kB / 492.1 MB, free: 3.746 MB / 362.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: T1.vcb:DUMMY_STATE(unit = "V" ) "Collector-base voltage" type: Real T2.vcb:DUMMY_STATE(unit = "V" ) "Collector-base voltage" type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: $DER.T2.vcb:DUMMY_DER(fixed = false ) "Collector-base voltage" type: Real $DER.T1.veb:DUMMY_DER(fixed = false ) "Emitter-base voltage" type: Real $DER.T1.vcb:DUMMY_DER(fixed = false ) "Collector-base voltage" type: Real $DER.T2.T_heatPort:DUMMY_DER(fixed = false ) "Temperature of heatPort" type: Real $DER.T1.T_heatPort:DUMMY_DER(fixed = false ) "Temperature of heatPort" type: Real 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 () * 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.0003233/0.4956, allocations: 130.5 kB / 492.3 MB, free: 3.609 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001494/0.4958, allocations: 75.06 kB / 492.3 MB, free: 3.535 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0234/0.5192, allocations: 4.917 MB / 497.3 MB, free: 14.59 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.239e-05/0.5193, allocations: 12 kB / 497.3 MB, free: 14.58 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.546e-06/0.5193, allocations: 0 / 497.3 MB, free: 14.58 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.528e-05/0.5193, allocations: 3.984 kB / 497.3 MB, free: 14.57 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001533/0.5209, allocations: 1.003 MB / 498.3 MB, free: 13.53 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.649e-06/0.5209, allocations: 0 / 498.3 MB, free: 13.53 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006229/0.5215, allocations: 147.8 kB / 498.4 MB, free: 13.38 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.02601/0.5475, allocations: 4.945 MB / 0.4916 GB, free: 8.426 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000231/0.5478, allocations: 11.97 kB / 0.4916 GB, free: 8.414 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006482/0.5543, allocations: 3.228 MB / 0.4947 GB, free: 5.133 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.63e-06/0.5543, allocations: 0 / 0.4947 GB, free: 5.133 MB / 378.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.02542/0.5798, allocations: 5.551 MB / 0.5001 GB, free: 15.55 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003151/0.5802, allocations: 144.2 kB / 0.5003 GB, free: 15.39 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002101/0.5804, allocations: 3.984 kB / 0.5003 GB, free: 15.39 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001658/0.582, allocations: 215.8 kB / 0.5005 GB, free: 15.18 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000258/0.5823, allocations: 100.6 kB / 0.5006 GB, free: 15.08 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001049/0.5824, allocations: 35.97 kB / 0.5006 GB, free: 15.04 MB / 394.7 MB Notification: Performance of sort global known variables: time 0.0003484/0.5828, allocations: 295 kB / 0.5009 GB, free: 14.76 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.000758/0.5835, allocations: 231.9 kB / 0.5011 GB, free: 14.53 MB / 394.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.0002823/0.5838, allocations: 135.5 kB / 0.5013 GB, free: 14.39 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.003301/0.5871, allocations: 1.399 MB / 0.5026 GB, free: 12.98 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 2.865e-06/0.5872, allocations: 3.938 kB / 0.5026 GB, free: 12.98 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002355/0.5895, allocations: 0.8013 MB / 0.5034 GB, free: 12.18 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006434/0.5902, allocations: 77.97 kB / 0.5035 GB, free: 12.1 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003176/0.5934, allocations: 1.293 MB / 0.5047 GB, free: 10.77 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006253/0.594, allocations: 1.003 MB / 0.5057 GB, free: 9.746 MB / 394.7 MB Notification: Performance of SimCode: time 8.02e-07/0.594, allocations: 0 / 0.5057 GB, free: 9.746 MB / 394.7 MB Notification: Performance of Templates: time 0.02973/0.6237, allocations: 20.67 MB / 0.5259 GB, free: 5.039 MB / 410.7 MB make -j1 -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.makefile (rm -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.sim & ./Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate_res.mat","/var/lib/jenkins/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_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches