Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate.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.HeatingNPN_OrGate,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|HeatCapacitor1.T",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate") translateModel(Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|HeatCapacitor1.T",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate") [: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.001665/0.001665, allocations: 178.4 kB / 8.475 MB, free: 1.863 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.329/1.329, allocations: 205.2 MB / 214.1 MB, free: 5.09 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.0008744/0.0008748, allocations: 94.25 kB / 262.1 MB, free: 5.133 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 6.732e-06/6.763e-06, allocations: 0 / 315 MB, free: 41.49 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0754/0.07542, allocations: 47.58 MB / 362.5 MB, free: 9.957 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2404/0.3159, allocations: 80.33 MB / 442.9 MB, free: 10.67 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002416/0.3162, allocations: 73.27 kB / 442.9 MB, free: 10.67 MB / 314.7 MB Notification: Performance of FrontEnd: time 0.03815/0.3543, allocations: 11.85 MB / 454.8 MB, free: 7.301 MB / 314.7 MB Notification: Performance of Transformations before backend: time 2.476e-05/0.3544, allocations: 18.69 kB / 454.8 MB, free: 7.297 MB / 314.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.002109/0.3565, allocations: 1.071 MB / 455.9 MB, free: 6.543 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.579e-05/0.3566, allocations: 11.69 kB / 455.9 MB, free: 6.539 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001474/0.3567, allocations: 89.12 kB / 456 MB, free: 6.496 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007631/0.3575, allocations: 495.6 kB / 456.5 MB, free: 6.156 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.568e-05/0.3575, allocations: 23.08 kB / 456.5 MB, free: 6.152 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.963e-05/0.3576, allocations: 38.19 kB / 456.5 MB, free: 6.152 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0008911/0.3585, allocations: 0.5015 MB / 457 MB, free: 6.117 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007795/0.3593, allocations: 477.7 kB / 457.5 MB, free: 6 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.924e-05/0.3593, allocations: 3.938 kB / 457.5 MB, free: 5.996 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.28e-05/0.3594, allocations: 1.25 kB / 457.5 MB, free: 5.996 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.684e-05/0.3594, allocations: 14.66 kB / 457.5 MB, free: 5.996 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003458/0.3629, allocations: 2.207 MB / 459.7 MB, free: 4.777 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006569/0.3636, allocations: 411.3 kB / 460.1 MB, free: 4.727 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003417/0.3639, allocations: 236.5 kB / 460.3 MB, free: 4.715 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.764e-05/0.364, allocations: 10.41 kB / 460.4 MB, free: 4.715 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004574/0.3644, allocations: 320.6 kB / 460.7 MB, free: 4.574 MB / 314.7 MB Notification: Performance of pre-optimization done (n=54): time 3.046e-06/0.3645, allocations: 0 / 460.7 MB, free: 4.574 MB / 314.7 MB Notification: Performance of matching and sorting (n=94): time 0.06826/0.4327, allocations: 14.29 MB / 475 MB, free: 13.15 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.812e-05/0.4328, allocations: 140.4 kB / 475.1 MB, free: 12.99 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005607/0.4334, allocations: 396.6 kB / 475.5 MB, free: 12.68 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002262/0.4336, allocations: 28.89 kB / 475.5 MB, free: 12.64 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001977/0.4338, allocations: 298.3 kB / 475.8 MB, free: 12.38 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002747/0.4341, allocations: 294.6 kB / 476.1 MB, free: 12.12 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.689e-05/0.4342, allocations: 0 / 476.1 MB, free: 12.12 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001498/0.4344, allocations: 383.4 kB / 476.5 MB, free: 11.77 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000739/0.4351, allocations: 453.8 kB / 476.9 MB, free: 11.54 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008238/0.4359, allocations: 0.6453 MB / 477.6 MB, free: 11.04 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001971/0.4379, allocations: 0.6993 MB / 478.3 MB, free: 10.55 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.627e-06/0.4379, allocations: 0 / 478.3 MB, free: 10.55 MB / 330.7 MB Notification: Performance of matching and sorting (n=124) (initialization): time 0.02495/0.4629, allocations: 4.995 MB / 483.2 MB, free: 6.16 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.006e-05/0.4629, allocations: 8 kB / 483.3 MB, free: 6.152 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.507e-05/0.463, allocations: 8.125 kB / 483.3 MB, free: 6.145 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02654/0.4895, allocations: 4.94 MB / 488.2 MB, free: 1.488 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000819/0.4904, allocations: 191.7 kB / 488.4 MB, free: 1.305 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007479/0.4979, allocations: 3.44 MB / 491.8 MB, free: 14.6 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001925/0.4998, allocations: 227.7 kB / 492.1 MB, free: 14.38 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001345/0.5, allocations: 46.91 kB / 492.1 MB, free: 14.34 MB / 346.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: $DER.T2.vbc:DUMMY_DER(fixed = false ) "Base-collector voltage" type: Real $DER.T1.ibe:DUMMY_DER(fixed = false ) "Base-emitter diode current" type: Real $DER.T1.vbc:DUMMY_DER(fixed = false ) "Base-collector 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.0003481/0.5003, allocations: 125.5 kB / 492.2 MB, free: 14.21 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001461/0.5005, allocations: 71.16 kB / 492.3 MB, free: 14.14 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02276/0.5233, allocations: 4.922 MB / 497.2 MB, free: 9.852 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.561e-05/0.5233, allocations: 8 kB / 497.2 MB, free: 9.844 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.945e-06/0.5233, allocations: 0 / 497.2 MB, free: 9.844 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.555e-05/0.5234, allocations: 3.984 kB / 497.2 MB, free: 9.84 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001559/0.5249, allocations: 0.9957 MB / 498.2 MB, free: 9.102 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.899e-06/0.525, allocations: 4.047 kB / 498.2 MB, free: 9.098 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006089/0.5256, allocations: 143.2 kB / 498.4 MB, free: 8.961 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.02534/0.5509, allocations: 4.957 MB / 0.4915 GB, free: 4.199 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002924/0.5513, allocations: 23.97 kB / 0.4915 GB, free: 4.176 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007524/0.5588, allocations: 3.431 MB / 0.4949 GB, free: 0.6914 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.921e-06/0.5588, allocations: 3.906 kB / 0.4949 GB, free: 0.6875 MB / 346.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0238/0.5826, allocations: 5.558 MB / 0.5003 GB, free: 11.12 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002355/0.5829, allocations: 136.2 kB / 0.5005 GB, free: 10.97 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001964/0.5831, allocations: 8 kB / 0.5005 GB, free: 10.96 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001567/0.5847, allocations: 219.8 kB / 0.5007 GB, free: 10.75 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002486/0.585, allocations: 100.6 kB / 0.5008 GB, free: 10.65 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001046/0.5851, allocations: 31.97 kB / 0.5008 GB, free: 10.62 MB / 362.7 MB Notification: Performance of sort global known variables: time 0.0003466/0.5854, allocations: 295 kB / 0.5011 GB, free: 10.33 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0007498/0.5862, allocations: 236 kB / 0.5013 GB, free: 10.1 MB / 362.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.0002748/0.5865, allocations: 130.8 kB / 0.5014 GB, free: 9.965 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.004213/0.5907, allocations: 1.554 MB / 0.503 GB, free: 8.398 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 5.159e-06/0.5907, allocations: 0 / 0.503 GB, free: 8.398 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003274/0.594, allocations: 0.9649 MB / 0.5039 GB, free: 7.434 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006706/0.5947, allocations: 78.05 kB / 0.504 GB, free: 7.355 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003207/0.5979, allocations: 1.271 MB / 0.5052 GB, free: 6.074 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005779/0.5985, allocations: 0.9991 MB / 0.5062 GB, free: 5.051 MB / 362.7 MB Notification: Performance of SimCode: time 7.82e-07/0.5985, allocations: 0 / 0.5062 GB, free: 5.051 MB / 362.7 MB Notification: Performance of Templates: time 0.02847/0.627, allocations: 20.13 MB / 0.5258 GB, free: 0.9297 MB / 378.7 MB make -j1 -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate.makefile (rm -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate.sim & ./Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Analog/Examples/HeatingNPN_OrGate/HeatingNPN_OrGate.csv","../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches