Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: translateModel(Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|HeatCapacitor1.T",fileNamePrefix="Modelica_trunk_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_trunk_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001142/0.001142, allocations: 198.3 kB / 8.766 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.319/1.319, allocations: 225.6 MB / 234.8 MB, free: 3.309 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008748/0.0008749, allocations: 100.6 kB / 286.7 MB, free: 5.27 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.476e-05/1.478e-05, allocations: 4 kB / 343.7 MB, free: 8.32 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1007/0.1007, allocations: 51.48 MB / 395.2 MB, free: 4.801 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3215/0.4223, allocations: 83.1 MB / 478.3 MB, free: 9.941 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002079/0.4226, allocations: 72.56 kB / 478.3 MB, free: 9.914 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03074/0.4533, allocations: 12.61 MB / 491 MB, free: 15.52 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.382e-06/0.4534, allocations: 4 kB / 491 MB, free: 15.52 MB / 362.7 MB Notification: Performance of Transformations before backend: time 4.567e-05/0.4534, allocations: 16 kB / 491 MB, free: 15.5 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.002375/0.4558, allocations: 1.08 MB / 492.1 MB, free: 14.41 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.936e-05/0.4559, allocations: 8.031 kB / 492.1 MB, free: 14.41 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000155/0.456, allocations: 91.83 kB / 492.1 MB, free: 14.32 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008098/0.4568, allocations: 0.498 MB / 492.6 MB, free: 13.86 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.829e-05/0.4569, allocations: 24 kB / 492.7 MB, free: 13.83 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.199e-05/0.457, allocations: 46.75 kB / 492.7 MB, free: 13.79 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0008321/0.4578, allocations: 0.5107 MB / 493.2 MB, free: 13.47 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008143/0.4586, allocations: 490.6 kB / 493.7 MB, free: 13.13 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.886e-05/0.4587, allocations: 3.125 kB / 493.7 MB, free: 13.13 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.127e-05/0.4587, allocations: 0 / 493.7 MB, free: 13.13 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.483e-05/0.4588, allocations: 16 kB / 493.7 MB, free: 13.11 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003502/0.4623, allocations: 2.237 MB / 496 MB, free: 11.24 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006584/0.4629, allocations: 440.2 kB / 496.4 MB, free: 10.98 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000312/0.4633, allocations: 241.9 kB / 496.6 MB, free: 10.84 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.689e-05/0.4633, allocations: 4.438 kB / 496.6 MB, free: 10.83 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004934/0.4638, allocations: 342.4 kB / 497 MB, free: 10.56 MB / 362.7 MB Notification: Performance of pre-optimization done (n=54): time 1.803e-06/0.4638, allocations: 0 / 497 MB, free: 10.56 MB / 362.7 MB Notification: Performance of matching and sorting (n=94): time 0.0572/0.521, allocations: 13.79 MB / 0.4988 GB, free: 13.95 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.886e-05/0.5212, allocations: 144.7 kB / 0.4989 GB, free: 13.78 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005126/0.5217, allocations: 412 kB / 0.4993 GB, free: 13.46 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001568/0.5218, allocations: 29.7 kB / 0.4993 GB, free: 13.43 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002722/0.5221, allocations: 403.3 kB / 0.4997 GB, free: 13.14 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002742/0.5224, allocations: 304.1 kB / 0.5 GB, free: 12.88 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.962e-05/0.5225, allocations: 0 / 0.5 GB, free: 12.88 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001397/0.5226, allocations: 384.9 kB / 0.5004 GB, free: 12.52 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006703/0.5233, allocations: 459.1 kB / 0.5008 GB, free: 12.28 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008104/0.5241, allocations: 0.6674 MB / 0.5015 GB, free: 11.7 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001805/0.526, allocations: 0.701 MB / 0.5022 GB, free: 11 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.542e-06/0.526, allocations: 4 kB / 0.5022 GB, free: 11 MB / 378.7 MB Notification: Performance of matching and sorting (n=128) (initialization): time 0.02051/0.5465, allocations: 4.891 MB / 0.5069 GB, free: 6.086 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.015e-05/0.5466, allocations: 67.98 kB / 0.507 GB, free: 6.008 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.476e-05/0.5467, allocations: 8 kB / 0.507 GB, free: 6 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02206/0.5687, allocations: 4.799 MB / 0.5117 GB, free: 1.191 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007778/0.5695, allocations: 179.7 kB / 0.5119 GB, free: 1.016 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00568/0.5752, allocations: 3.074 MB / 0.5149 GB, free: 13.89 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001749/0.577, allocations: 207.8 kB / 0.5151 GB, free: 13.68 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001607/0.5772, allocations: 55.92 kB / 0.5151 GB, free: 13.63 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.0003947/0.5776, allocations: 139.2 kB / 0.5153 GB, free: 13.49 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001952/0.5778, allocations: 75.06 kB / 0.5153 GB, free: 13.41 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02023/0.5981, allocations: 4.787 MB / 0.52 GB, free: 8.613 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.774e-05/0.5981, allocations: 12 kB / 0.52 GB, free: 8.602 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.474e-06/0.5981, allocations: 0 / 0.52 GB, free: 8.602 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.242e-05/0.5982, allocations: 3.984 kB / 0.52 GB, free: 8.598 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001484/0.5997, allocations: 1.01 MB / 0.521 GB, free: 7.555 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5e-06/0.5997, allocations: 0 / 0.521 GB, free: 7.555 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005678/0.6003, allocations: 131.9 kB / 0.5211 GB, free: 7.426 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.02143/0.6217, allocations: 4.793 MB / 0.5258 GB, free: 2.621 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001366/0.6219, allocations: 15.97 kB / 0.5258 GB, free: 2.605 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005061/0.6269, allocations: 3.082 MB / 0.5288 GB, free: 15.46 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.606e-06/0.627, allocations: 0 / 0.5288 GB, free: 15.46 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02083/0.6478, allocations: 5.424 MB / 0.5341 GB, free: 10.01 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002268/0.6481, allocations: 144.1 kB / 0.5343 GB, free: 9.848 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000236/0.6483, allocations: 8 kB / 0.5343 GB, free: 9.84 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001427/0.6497, allocations: 199.8 kB / 0.5345 GB, free: 9.645 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002336/0.65, allocations: 104.6 kB / 0.5346 GB, free: 9.543 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.101e-05/0.6501, allocations: 36.84 kB / 0.5346 GB, free: 9.508 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0003465/0.6504, allocations: 305 kB / 0.5349 GB, free: 9.211 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.6504, allocations: 0 / 0.5349 GB, free: 9.211 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0007748/0.6512, allocations: 243.9 kB / 0.5351 GB, free: 8.973 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.0003027/0.6515, allocations: 121.1 kB / 0.5352 GB, free: 8.848 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.003104/0.6547, allocations: 1.463 MB / 0.5367 GB, free: 7.363 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 3.206e-06/0.6547, allocations: 0 / 0.5367 GB, free: 7.363 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002076/0.6568, allocations: 0.7989 MB / 0.5374 GB, free: 6.574 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005152/0.6573, allocations: 85.28 kB / 0.5375 GB, free: 6.488 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002116/0.6594, allocations: 1.192 MB / 0.5387 GB, free: 5.27 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004119/0.6598, allocations: 0.9624 MB / 0.5396 GB, free: 4.277 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.000278/0.6601, allocations: 58.22 kB / 0.5397 GB, free: 4.219 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001074/0.6602, allocations: 35.42 kB / 0.5397 GB, free: 4.184 MB / 410.7 MB Notification: Performance of SimCode: time 1.352e-06/0.6602, allocations: 0 / 0.5397 GB, free: 4.184 MB / 410.7 MB Notification: Performance of Templates: time 0.02692/0.6872, allocations: 19.64 MB / 0.5589 GB, free: 0.7188 MB / 426.7 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.makefile (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.sim & ./Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches