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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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 3.2.3+maint.om/package.mo", uses=false) 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 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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_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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008797/0.0008798, allocations: 95.58 kB / 16.95 MB, free: 6.449 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009977/0.0009978, allocations: 183.4 kB / 17.84 MB, free: 6.004 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.583/1.583, allocations: 205.4 MB / 224 MB, free: 13.08 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0004112/0.0004112, allocations: 8 kB / 280.8 MB, free: 3.734 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1146/0.115, allocations: 47.59 MB / 328.3 MB, free: 4.078 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate): time 0.004175/0.1192, allocations: 4.072 MB / 332.4 MB, free: 15.98 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002188/0.1214, allocations: 1.218 MB / 333.6 MB, free: 14.75 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002289/0.1217, allocations: 8 kB / 333.6 MB, free: 14.75 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001941/0.1219, allocations: 83.3 kB / 333.7 MB, free: 14.66 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003572/0.1222, allocations: 218.2 kB / 333.9 MB, free: 14.45 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005557/0.1228, allocations: 207.7 kB / 334.1 MB, free: 14.25 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008651/0.1237, allocations: 0.9469 MB / 335.1 MB, free: 13.3 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003535/0.124, allocations: 195.5 kB / 335.3 MB, free: 13.09 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003933/0.1244, allocations: 350.6 kB / 335.6 MB, free: 12.75 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000481/0.1249, allocations: 398.3 kB / 336 MB, free: 12.36 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 8.723e-05/0.125, allocations: 44 kB / 336.1 MB, free: 12.31 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001849/0.1252, allocations: 71.97 kB / 336.1 MB, free: 12.24 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001448/0.1254, allocations: 151.3 kB / 336.3 MB, free: 12.09 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001698/0.1255, allocations: 161.3 kB / 336.4 MB, free: 11.93 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006753/0.1262, allocations: 0.7131 MB / 337.1 MB, free: 11.21 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.132e-06/0.1262, allocations: 0 / 337.1 MB, free: 11.21 MB / 286.1 MB Notification: Performance of FrontEnd: time 3.787e-06/0.1262, allocations: 3.984 kB / 337.1 MB, free: 11.21 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.003e-05/0.1263, allocations: 0 / 337.1 MB, free: 11.21 MB / 286.1 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.002152/0.1284, allocations: 1.122 MB / 338.3 MB, free: 10.02 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.476e-05/0.1285, allocations: 8.031 kB / 338.3 MB, free: 10.02 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001571/0.1286, allocations: 83.06 kB / 338.4 MB, free: 9.934 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000578/0.1292, allocations: 452.4 kB / 338.8 MB, free: 9.453 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.863e-05/0.1293, allocations: 49.27 kB / 338.8 MB, free: 9.406 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.92e-05/0.1294, allocations: 60 kB / 338.9 MB, free: 9.348 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001346/0.1307, allocations: 0.6584 MB / 339.6 MB, free: 8.68 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.971e-05/0.1308, allocations: 0 / 339.6 MB, free: 8.68 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.246e-05/0.1308, allocations: 28 kB / 339.6 MB, free: 8.652 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.551e-05/0.1309, allocations: 16 kB / 339.6 MB, free: 8.637 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001606/0.1325, allocations: 0.7351 MB / 340.3 MB, free: 7.902 MB / 286.1 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003679/0.1362, allocations: 2.367 MB / 342.7 MB, free: 5.375 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001319/0.1375, allocations: 0.6374 MB / 343.3 MB, free: 4.73 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000696/0.1382, allocations: 358 kB / 343.7 MB, free: 4.379 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.498e-05/0.1383, allocations: 12.36 kB / 343.7 MB, free: 4.367 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009267/0.1392, allocations: 457.3 kB / 344.2 MB, free: 3.895 MB / 286.1 MB Notification: Performance of pre-optimization done (n=54): time 2.424e-06/0.1392, allocations: 0 / 344.2 MB, free: 3.895 MB / 286.1 MB Notification: Performance of matching and sorting (n=94): time 0.06655/0.2058, allocations: 16.73 MB / 360.9 MB, free: 3.059 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001087/0.2059, allocations: 141.5 kB / 361 MB, free: 2.891 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007043/0.2066, allocations: 494.8 kB / 361.5 MB, free: 2.402 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002028/0.2069, allocations: 49.7 kB / 361.6 MB, free: 2.348 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002974/0.2072, allocations: 367.9 kB / 361.9 MB, free: 1.98 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004021/0.2076, allocations: 311.5 kB / 362.2 MB, free: 1.672 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.481e-05/0.2077, allocations: 16 kB / 362.2 MB, free: 1.656 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001669/0.2078, allocations: 382.8 kB / 362.6 MB, free: 1.273 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002049/0.2099, allocations: 0.7944 MB / 363.4 MB, free: 492 kB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002222/0.2121, allocations: 1.005 MB / 364.4 MB, free: 15.39 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002117/0.2143, allocations: 0.8691 MB / 365.3 MB, free: 14.51 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.07e-06/0.2143, allocations: 4 kB / 365.3 MB, free: 14.51 MB / 318.1 MB Notification: Performance of matching and sorting (n=124) (initialization): time 0.02199/0.2363, allocations: 5.628 MB / 370.9 MB, free: 8.852 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.788e-05/0.2364, allocations: 59.41 kB / 371 MB, free: 8.781 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.756e-05/0.2364, allocations: 7.984 kB / 371 MB, free: 8.773 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.033/0.2694, allocations: 7.32 MB / 378.3 MB, free: 1.438 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007495/0.2702, allocations: 175.7 kB / 378.5 MB, free: 1.266 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2104/0.4807, allocations: 3.199 MB / 381.7 MB, free: 52.48 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001818/0.4825, allocations: 220.2 kB / 381.9 MB, free: 52.48 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001365/0.4827, allocations: 45.08 kB / 381.9 MB, free: 52.48 MB / 318.1 MB 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 () * Number of clocked 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.0003757/0.4831, allocations: 223.6 kB / 382.1 MB, free: 52.37 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001354/0.4832, allocations: 78.48 kB / 382.2 MB, free: 52.37 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02308/0.5063, allocations: 5.463 MB / 387.7 MB, free: 51.65 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.813e-05/0.5064, allocations: 10.27 kB / 387.7 MB, free: 51.65 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.101e-05/0.5065, allocations: 0.9062 kB / 387.7 MB, free: 51.65 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.523e-05/0.5065, allocations: 9.797 kB / 387.7 MB, free: 51.65 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002493/0.509, allocations: 1.084 MB / 388.8 MB, free: 51.09 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.172e-05/0.5091, allocations: 3.938 kB / 388.8 MB, free: 51.09 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005355/0.5096, allocations: 123.1 kB / 388.9 MB, free: 51.08 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0306/0.5402, allocations: 7.291 MB / 396.2 MB, free: 49.51 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002412/0.5405, allocations: 27.66 kB / 396.2 MB, free: 49.49 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004744/0.5453, allocations: 3.08 MB / 399.3 MB, free: 47.02 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.745e-06/0.5453, allocations: 3.5 kB / 399.3 MB, free: 47.02 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02083/0.5661, allocations: 6.421 MB / 405.7 MB, free: 40.61 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002215/0.5664, allocations: 144.2 kB / 405.9 MB, free: 40.45 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002614/0.5667, allocations: 16 kB / 405.9 MB, free: 40.43 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001308/0.568, allocations: 219.8 kB / 406.1 MB, free: 40.21 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002942/0.5683, allocations: 99.09 kB / 406.2 MB, free: 40.12 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001091/0.5684, allocations: 35.97 kB / 406.2 MB, free: 40.09 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0004053/0.5688, allocations: 336.7 kB / 406.6 MB, free: 39.76 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.5688, allocations: 0 / 406.6 MB, free: 39.76 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0009232/0.5698, allocations: 253 kB / 406.8 MB, free: 39.52 MB / 318.1 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) * Number of clocked states: 0 () * 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.0003513/0.5701, allocations: 131.1 kB / 406.9 MB, free: 39.38 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.00584/0.576, allocations: 2.322 MB / 409.3 MB, free: 37.04 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 4.509e-06/0.576, allocations: 0 / 409.3 MB, free: 37.04 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002867/0.5789, allocations: 1.151 MB / 410.4 MB, free: 35.89 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007129/0.5796, allocations: 123.2 kB / 410.5 MB, free: 35.77 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003125/0.5827, allocations: 2.06 MB / 412.6 MB, free: 33.7 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002844/0.583, allocations: 0.9425 MB / 413.5 MB, free: 32.73 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0002682/0.5833, allocations: 54.06 kB / 413.6 MB, free: 32.67 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.993e-05/0.5834, allocations: 31.16 kB / 413.6 MB, free: 32.64 MB / 318.1 MB Notification: Performance of SimCode: time 1.293e-06/0.5834, allocations: 4 kB / 413.6 MB, free: 32.64 MB / 318.1 MB Notification: Performance of Templates: time 0.02357/0.607, allocations: 19.73 MB / 433.4 MB, free: 12.9 MB / 318.1 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