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") [: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.001654/0.001654, allocations: 173.7 kB / 8.149 MB, free: 2.207 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.674/1.674, allocations: 205.2 MB / 213.8 MB, free: 13.87 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.001291/0.001291, allocations: 94.45 kB / 261.8 MB, free: 13.62 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 1.28e-05/1.302e-05, allocations: 4 kB / 314.3 MB, free: 9.055 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.246/0.246, allocations: 47.55 MB / 361.8 MB, free: 45.64 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1233/0.3694, allocations: 80.35 MB / 442.2 MB, free: 5.719 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002719/0.3697, allocations: 73.3 kB / 442.3 MB, free: 5.652 MB / 330.7 MB Notification: Performance of FrontEnd: time 0.05938/0.4291, allocations: 11.83 MB / 454.1 MB, free: 9.828 MB / 346.7 MB Notification: Performance of Transformations before backend: time 4.468e-05/0.4292, allocations: 12 kB / 454.1 MB, free: 9.816 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.004208/0.4334, allocations: 1.073 MB / 455.2 MB, free: 8.684 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.998e-05/0.4335, allocations: 8.031 kB / 455.2 MB, free: 8.676 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004043/0.4339, allocations: 86.97 kB / 455.3 MB, free: 8.59 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001603/0.4355, allocations: 0.4899 MB / 455.8 MB, free: 8.059 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.65e-05/0.4356, allocations: 24 kB / 455.8 MB, free: 8.035 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001783/0.4358, allocations: 36 kB / 455.8 MB, free: 8 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001747/0.4376, allocations: 0.4985 MB / 456.3 MB, free: 7.5 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001516/0.4391, allocations: 475.9 kB / 456.8 MB, free: 7.031 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.517e-05/0.4392, allocations: 4 kB / 456.8 MB, free: 7.027 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.152e-05/0.4393, allocations: 3.938 kB / 456.8 MB, free: 7.023 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.29e-05/0.4393, allocations: 15.98 kB / 456.8 MB, free: 7.008 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008027/0.4474, allocations: 2.205 MB / 459 MB, free: 4.688 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001512/0.449, allocations: 408.1 kB / 459.4 MB, free: 4.281 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007368/0.4498, allocations: 242.1 kB / 459.6 MB, free: 4.043 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.763e-05/0.4499, allocations: 8.438 kB / 459.7 MB, free: 4.035 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008628/0.4507, allocations: 316.7 kB / 460 MB, free: 3.699 MB / 346.7 MB Notification: Performance of pre-optimization done (n=54): time 4.248e-06/0.4508, allocations: 0 / 460 MB, free: 3.699 MB / 346.7 MB Notification: Performance of matching and sorting (n=94): time 0.1279/0.5786, allocations: 14.27 MB / 474.2 MB, free: 5.355 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001029/0.5788, allocations: 146.1 kB / 474.4 MB, free: 5.184 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007829/0.5796, allocations: 398 kB / 474.8 MB, free: 4.789 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002863/0.5799, allocations: 25.7 kB / 474.8 MB, free: 4.758 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002561/0.5802, allocations: 326.4 kB / 475.1 MB, free: 4.434 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004473/0.5806, allocations: 295.5 kB / 475.4 MB, free: 4.141 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001291/0.5808, allocations: 8 kB / 475.4 MB, free: 4.133 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001847/0.581, allocations: 346.8 kB / 475.7 MB, free: 3.785 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001514/0.5825, allocations: 454 kB / 476.2 MB, free: 3.344 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001732/0.5843, allocations: 0.6398 MB / 476.8 MB, free: 2.625 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003688/0.588, allocations: 0.7005 MB / 477.5 MB, free: 1.93 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.357e-05/0.588, allocations: 4 kB / 477.5 MB, free: 1.926 MB / 362.7 MB Notification: Performance of matching and sorting (n=124) (initialization): time 0.04547/0.6335, allocations: 4.951 MB / 482.5 MB, free: 12.96 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.44e-05/0.6336, allocations: 4 kB / 482.5 MB, free: 12.95 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.245e-05/0.6336, allocations: 4 kB / 482.5 MB, free: 12.95 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.04243/0.6761, allocations: 4.305 MB / 486.8 MB, free: 8.633 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001453/0.6776, allocations: 187.8 kB / 487 MB, free: 8.449 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01103/0.6886, allocations: 3.114 MB / 490.1 MB, free: 5.281 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003329/0.692, allocations: 232.3 kB / 490.3 MB, free: 5.055 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002737/0.6924, allocations: 43.97 kB / 490.4 MB, free: 5.012 MB / 378.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.0004715/0.6928, allocations: 55.97 kB / 490.4 MB, free: 4.957 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002974/0.6931, allocations: 75.06 kB / 490.5 MB, free: 4.883 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04452/0.7377, allocations: 4.915 MB / 495.4 MB, free: 15.94 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.073e-05/0.7378, allocations: 11.98 kB / 495.4 MB, free: 15.93 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.969e-06/0.7378, allocations: 3.125 kB / 495.4 MB, free: 15.93 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.923e-05/0.7378, allocations: 3.984 kB / 495.4 MB, free: 15.93 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002355/0.7402, allocations: 1.002 MB / 496.4 MB, free: 14.89 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.103e-05/0.7402, allocations: 4.25 kB / 496.4 MB, free: 14.89 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001234/0.7415, allocations: 143.9 kB / 496.6 MB, free: 14.75 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.04945/0.791, allocations: 4.956 MB / 0.4898 GB, free: 9.777 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002986/0.7913, allocations: 11.97 kB / 0.4898 GB, free: 9.766 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01189/0.8032, allocations: 3.232 MB / 0.4929 GB, free: 6.48 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.433e-06/0.8033, allocations: 0 / 0.4929 GB, free: 6.48 MB / 394.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.04703/0.8503, allocations: 5.551 MB / 0.4984 GB, free: 0.8945 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002978/0.8507, allocations: 140.2 kB / 0.4985 GB, free: 0.7383 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000362/0.8511, allocations: 0 / 0.4985 GB, free: 0.7383 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003238/0.8543, allocations: 227.8 kB / 0.4987 GB, free: 0.5156 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005116/0.8549, allocations: 96.62 kB / 0.4988 GB, free: 432 kB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000206/0.8551, allocations: 35.97 kB / 0.4988 GB, free: 396 kB / 394.7 MB Notification: Performance of sort global known variables: time 0.0005882/0.8557, allocations: 291 kB / 0.4991 GB, free: 108 kB / 394.7 MB Notification: Performance of remove unused functions: time 0.1263/0.982, allocations: 237.1 kB / 0.4993 GB, free: 167.8 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.0004093/0.9825, allocations: 119.5 kB / 0.4994 GB, free: 167.7 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.005445/0.988, allocations: 1.372 MB / 0.5008 GB, free: 167.7 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 8.365e-06/0.988, allocations: 6.969 kB / 0.5008 GB, free: 167.7 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00418/0.9922, allocations: 0.7885 MB / 0.5016 GB, free: 167.6 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001009/0.9933, allocations: 86.48 kB / 0.5016 GB, free: 167.6 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004747/0.998, allocations: 1.328 MB / 0.5029 GB, free: 167.3 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006985/0.9988, allocations: 0.9989 MB / 0.5039 GB, free: 166.6 MB / 394.7 MB Notification: Performance of SimCode: time 1.242e-06/0.9988, allocations: 0 / 0.5039 GB, free: 166.6 MB / 394.7 MB Notification: Performance of Templates: time 0.03092/1.03, allocations: 17.1 MB / 0.5206 GB, free: 163.4 MB / 394.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