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.001549/0.001549, allocations: 177.1 kB / 8.35 MB, free: 0.7266 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.473/1.473, allocations: 221.5 MB / 230.3 MB, free: 7.57 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.000934/0.0009341, allocations: 83.19 kB / 281.2 MB, free: 5.336 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.039e-05/2.041e-05, allocations: 7.938 kB / 337 MB, free: 10.04 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1137/0.1137, allocations: 50.43 MB / 387.5 MB, free: 7.578 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.322/0.4358, allocations: 82.31 MB / 469.8 MB, free: 12.57 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002285/0.436, allocations: 67.95 kB / 469.8 MB, free: 12.5 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03498/0.471, allocations: 12.6 MB / 482.4 MB, free: 15.85 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.553e-06/0.4711, allocations: 0 / 482.4 MB, free: 15.85 MB / 362.7 MB Notification: Performance of Transformations before backend: time 3.239e-05/0.4711, allocations: 16 kB / 482.5 MB, free: 15.83 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.002224/0.4734, allocations: 1.07 MB / 483.5 MB, free: 14.7 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.859e-05/0.4734, allocations: 8.031 kB / 483.5 MB, free: 14.69 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000165/0.4736, allocations: 94.95 kB / 483.6 MB, free: 14.6 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008651/0.4744, allocations: 0.5037 MB / 484.1 MB, free: 14.05 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.42e-05/0.4745, allocations: 20 kB / 484.2 MB, free: 14.03 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.241e-05/0.4746, allocations: 43.94 kB / 484.2 MB, free: 13.99 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0008893/0.4755, allocations: 0.5181 MB / 484.7 MB, free: 13.47 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008676/0.4764, allocations: 483.9 kB / 485.2 MB, free: 12.99 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.898e-05/0.4764, allocations: 0 / 485.2 MB, free: 12.99 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.111e-05/0.4765, allocations: 0 / 485.2 MB, free: 12.99 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.512e-05/0.4765, allocations: 16 kB / 485.2 MB, free: 12.98 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003611/0.4801, allocations: 2.249 MB / 487.4 MB, free: 10.61 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000668/0.4808, allocations: 436.6 kB / 487.9 MB, free: 10.18 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003211/0.4811, allocations: 242.1 kB / 488.1 MB, free: 9.941 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.656e-05/0.4812, allocations: 4.438 kB / 488.1 MB, free: 9.938 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005206/0.4817, allocations: 336.7 kB / 488.4 MB, free: 9.586 MB / 362.7 MB Notification: Performance of pre-optimization done (n=54): time 1.923e-06/0.4817, allocations: 0 / 488.4 MB, free: 9.586 MB / 362.7 MB Notification: Performance of matching and sorting (n=94): time 0.06031/0.542, allocations: 13.78 MB / 0.4904 GB, free: 11.73 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001127/0.5422, allocations: 149.2 kB / 0.4906 GB, free: 11.55 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006994/0.5429, allocations: 422.2 kB / 0.491 GB, free: 11.14 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002464/0.5431, allocations: 25.7 kB / 0.491 GB, free: 11.11 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003262/0.5435, allocations: 399.7 kB / 0.4914 GB, free: 10.71 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003275/0.5438, allocations: 303.5 kB / 0.4917 GB, free: 10.41 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.282e-05/0.5439, allocations: 0 / 0.4917 GB, free: 10.41 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.000175/0.5441, allocations: 382.8 kB / 0.4921 GB, free: 10.02 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007374/0.5448, allocations: 454.6 kB / 0.4925 GB, free: 9.578 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009333/0.5458, allocations: 0.6818 MB / 0.4932 GB, free: 8.809 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001834/0.5476, allocations: 0.6894 MB / 0.4938 GB, free: 8.121 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.031e-06/0.5476, allocations: 0 / 0.4938 GB, free: 8.121 MB / 378.7 MB Notification: Performance of matching and sorting (n=128) (initialization): time 0.02111/0.5687, allocations: 4.902 MB / 0.4986 GB, free: 3.195 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.536e-05/0.5689, allocations: 68.95 kB / 0.4987 GB, free: 3.117 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.874e-05/0.5689, allocations: 4 kB / 0.4987 GB, free: 3.113 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02287/0.5918, allocations: 4.8 MB / 0.5034 GB, free: 14.3 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008259/0.5927, allocations: 183.7 kB / 0.5035 GB, free: 14.12 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00602/0.5987, allocations: 3.079 MB / 0.5066 GB, free: 10.99 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00177/0.6005, allocations: 203.8 kB / 0.5067 GB, free: 10.79 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001159/0.6006, allocations: 48.03 kB / 0.5068 GB, free: 10.74 MB / 394.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: 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.0003375/0.601, allocations: 141.9 kB / 0.5069 GB, free: 10.59 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001477/0.6011, allocations: 83.27 kB / 0.507 GB, free: 10.51 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02098/0.6221, allocations: 4.786 MB / 0.5117 GB, free: 5.707 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.763e-05/0.6222, allocations: 8 kB / 0.5117 GB, free: 5.699 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.118e-05/0.6222, allocations: 3.953 kB / 0.5117 GB, free: 5.695 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.213e-05/0.6223, allocations: 3.984 kB / 0.5117 GB, free: 5.691 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001913/0.6242, allocations: 1.014 MB / 0.5127 GB, free: 4.637 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.386e-06/0.6242, allocations: 3.953 kB / 0.5127 GB, free: 4.633 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006179/0.6248, allocations: 123.9 kB / 0.5128 GB, free: 4.512 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.02266/0.6475, allocations: 4.796 MB / 0.5175 GB, free: 15.7 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003249/0.6479, allocations: 15.97 kB / 0.5175 GB, free: 15.69 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005894/0.6538, allocations: 3.068 MB / 0.5205 GB, free: 12.56 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.222e-06/0.6539, allocations: 0 / 0.5205 GB, free: 12.56 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02208/0.676, allocations: 5.428 MB / 0.5258 GB, free: 7.102 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003036/0.6763, allocations: 144.2 kB / 0.5259 GB, free: 6.941 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003364/0.6767, allocations: 0 / 0.5259 GB, free: 6.941 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001714/0.6784, allocations: 203.8 kB / 0.5261 GB, free: 6.742 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000285/0.6787, allocations: 100.6 kB / 0.5262 GB, free: 6.645 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001129/0.6788, allocations: 36.22 kB / 0.5263 GB, free: 6.609 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0003864/0.6792, allocations: 314.9 kB / 0.5266 GB, free: 6.301 MB / 410.7 MB Notification: Performance of sort global known variables: time 2.61e-07/0.6792, allocations: 0 / 0.5266 GB, free: 6.301 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0008476/0.6801, allocations: 231.9 kB / 0.5268 GB, free: 6.074 MB / 410.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.0002914/0.6804, allocations: 131.1 kB / 0.5269 GB, free: 5.938 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.003396/0.6838, allocations: 1.463 MB / 0.5283 GB, free: 4.453 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 3.717e-06/0.6838, allocations: 0 / 0.5283 GB, free: 4.453 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00232/0.6861, allocations: 0.7986 MB / 0.5291 GB, free: 3.66 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007045/0.6868, allocations: 82.05 kB / 0.5292 GB, free: 3.574 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002913/0.6898, allocations: 1.196 MB / 0.5304 GB, free: 2.352 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005907/0.6904, allocations: 0.9663 MB / 0.5313 GB, free: 1.355 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0003319/0.6907, allocations: 58.22 kB / 0.5314 GB, free: 1.297 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001176/0.6908, allocations: 31.44 kB / 0.5314 GB, free: 1.266 MB / 410.7 MB Notification: Performance of SimCode: time 1.333e-06/0.6909, allocations: 0 / 0.5314 GB, free: 1.266 MB / 410.7 MB Notification: Performance of Templates: time 0.2309/0.9217, allocations: 19.66 MB / 0.5506 GB, free: 137.3 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