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/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 4.0.0+maint.om/package.mo", uses=false) 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) 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_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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001593/0.001593, allocations: 110.6 kB / 17.17 MB, free: 6.309 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.001667/0.001667, allocations: 194.9 kB / 18.08 MB, free: 5.414 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.329/2.329, allocations: 222.9 MB / 241.7 MB, free: 15.52 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001672/0.001672, allocations: 56.3 kB / 300.6 MB, free: 6.336 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1186/0.1203, allocations: 49.44 MB / 350.1 MB, free: 4.891 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate): time 0.006914/0.1272, allocations: 4.948 MB / 355 MB, free: 15.91 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.003348/0.1307, allocations: 1.272 MB / 356.3 MB, free: 14.63 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008218/0.1315, allocations: 11.94 kB / 356.3 MB, free: 14.62 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005476/0.1321, allocations: 87.3 kB / 356.4 MB, free: 14.54 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001379/0.1336, allocations: 222.1 kB / 356.6 MB, free: 14.32 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001317/0.1349, allocations: 267.7 kB / 356.9 MB, free: 14.05 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.002115/0.1371, allocations: 1.04 MB / 357.9 MB, free: 13.01 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006583/0.1378, allocations: 223.3 kB / 358.1 MB, free: 12.77 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009351/0.1387, allocations: 382.5 kB / 358.5 MB, free: 12.4 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008411/0.1396, allocations: 442 kB / 358.9 MB, free: 11.96 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001876/0.1398, allocations: 52 kB / 359 MB, free: 11.91 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003418/0.1401, allocations: 79.97 kB / 359 MB, free: 11.84 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002491/0.1404, allocations: 159.3 kB / 359.2 MB, free: 11.68 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006629/0.1411, allocations: 413.8 kB / 359.6 MB, free: 11.27 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001168/0.1423, allocations: 0.7367 MB / 360.3 MB, free: 10.54 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.012e-05/0.1423, allocations: 8 kB / 360.4 MB, free: 10.53 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.784e-06/0.1423, allocations: 0 / 360.4 MB, free: 10.53 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.766e-05/0.1424, allocations: 0 / 360.4 MB, free: 10.53 MB / 302.1 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.004428/0.1468, allocations: 1.253 MB / 361.6 MB, free: 9.207 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.106e-05/0.1469, allocations: 12.03 kB / 361.6 MB, free: 9.195 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002862/0.1472, allocations: 91.81 kB / 361.7 MB, free: 9.105 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001064/0.1483, allocations: 483.5 kB / 362.2 MB, free: 8.59 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.085e-05/0.1483, allocations: 49.69 kB / 362.2 MB, free: 8.543 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001897/0.1486, allocations: 68.27 kB / 362.3 MB, free: 8.477 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002537/0.1511, allocations: 0.6587 MB / 363 MB, free: 7.812 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.14e-05/0.1512, allocations: 0 / 363 MB, free: 7.812 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001163/0.1513, allocations: 24 kB / 363 MB, free: 7.789 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.756e-05/0.1513, allocations: 16 kB / 363 MB, free: 7.773 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00313/0.1545, allocations: 0.696 MB / 363.7 MB, free: 7.074 MB / 302.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.007432/0.1619, allocations: 2.382 MB / 366.1 MB, free: 4.539 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002532/0.1645, allocations: 0.5905 MB / 366.7 MB, free: 3.941 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001346/0.1659, allocations: 330 kB / 367 MB, free: 3.617 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.128e-05/0.166, allocations: 8.422 kB / 367 MB, free: 3.605 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001693/0.1677, allocations: 421.5 kB / 367.4 MB, free: 3.168 MB / 302.1 MB Notification: Performance of pre-optimization done (n=54): time 3.717e-06/0.1677, allocations: 0 / 367.4 MB, free: 3.168 MB / 302.1 MB Notification: Performance of matching and sorting (n=94): time 0.4171/0.5848, allocations: 15.4 MB / 382.8 MB, free: 22.98 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001152/0.585, allocations: 153.3 kB / 383 MB, free: 22.8 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001379/0.5864, allocations: 0.5199 MB / 383.5 MB, free: 22.49 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003558/0.5868, allocations: 47.27 kB / 383.5 MB, free: 22.45 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004316/0.5872, allocations: 389.8 kB / 383.9 MB, free: 22.1 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005288/0.5878, allocations: 312.8 kB / 384.2 MB, free: 21.84 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007103/0.5885, allocations: 185.5 kB / 384.4 MB, free: 21.72 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001573/0.5887, allocations: 390.5 kB / 384.8 MB, free: 21.35 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003674/0.5924, allocations: 0.7199 MB / 385.5 MB, free: 21 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00365/0.5961, allocations: 0.9525 MB / 386.4 MB, free: 20.36 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007753/0.6039, allocations: 1.694 MB / 388.1 MB, free: 19.32 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.343e-05/0.604, allocations: 1.375 kB / 388.1 MB, free: 19.32 MB / 302.1 MB Notification: Performance of matching and sorting (n=128) (initialization): time 0.03692/0.6409, allocations: 5.376 MB / 393.5 MB, free: 15.34 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.021e-05/0.641, allocations: 67.23 kB / 393.6 MB, free: 15.26 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.748e-05/0.6411, allocations: 8 kB / 393.6 MB, free: 15.25 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.05306/0.6941, allocations: 6.825 MB / 400.4 MB, free: 8.422 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001181/0.6954, allocations: 151.7 kB / 400.6 MB, free: 8.273 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009861/0.7053, allocations: 3.013 MB / 403.6 MB, free: 5.207 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002969/0.7083, allocations: 179.8 kB / 403.7 MB, free: 5.031 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002463/0.7086, allocations: 47.97 kB / 403.8 MB, free: 4.984 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 27 * Number of states: 0 () * Number of discrete variables: 10 (V2.signalSource.count,$PRE.V2.signalSource.count,V2.signalSource.T_start,$PRE.V2.signalSource.T_start,V1.signalSource.count,$PRE.V1.signalSource.count,V1.signalSource.T_start,$PRE.V1.signalSource.T_start,$whenCondition1,$whenCondition2) * Number of discrete states: 0 () * Number of clocked 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 (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(5,32), (5,32)} Notification: Performance of prepare postOptimizeDAE: time 0.0007685/0.7094, allocations: 225.6 kB / 404 MB, free: 4.754 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000369/0.7098, allocations: 83.84 kB / 404.1 MB, free: 4.672 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03287/0.7427, allocations: 5.104 MB / 409.2 MB, free: 15.55 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.509e-05/0.7428, allocations: 8 kB / 409.2 MB, free: 15.55 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.458e-05/0.7428, allocations: 7.875 kB / 409.2 MB, free: 15.54 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.757e-05/0.7429, allocations: 3.984 kB / 409.2 MB, free: 15.54 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002819/0.7457, allocations: 1.102 MB / 410.3 MB, free: 14.41 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.931e-05/0.7458, allocations: 0 / 410.3 MB, free: 14.41 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008909/0.7467, allocations: 91.88 kB / 410.4 MB, free: 14.32 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.06098/0.8077, allocations: 6.805 MB / 417.2 MB, free: 7.512 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003772/0.8081, allocations: 27.97 kB / 417.2 MB, free: 7.484 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0112/0.8193, allocations: 3.029 MB / 420.3 MB, free: 4.398 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.524e-06/0.8194, allocations: 0 / 420.3 MB, free: 4.398 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04082/0.8602, allocations: 5.979 MB / 426.3 MB, free: 14.4 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00046/0.8608, allocations: 144.2 kB / 426.4 MB, free: 14.24 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004882/0.8613, allocations: 23.94 kB / 426.4 MB, free: 14.21 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002809/0.8641, allocations: 176.9 kB / 426.6 MB, free: 14.04 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005563/0.8647, allocations: 103.7 kB / 426.7 MB, free: 13.94 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002419/0.865, allocations: 27.98 kB / 426.7 MB, free: 13.91 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.001037/0.8661, allocations: 350.8 kB / 427.1 MB, free: 13.57 MB / 334.1 MB Notification: Performance of sort global known variables: time 6.21e-07/0.8661, allocations: 0 / 427.1 MB, free: 13.57 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.001895/0.868, allocations: 268 kB / 427.3 MB, free: 13.31 MB / 334.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 (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(5,32), (5,36)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0005541/0.8686, allocations: 134.5 kB / 427.5 MB, free: 13.18 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.01108/0.8797, allocations: 2.038 MB / 429.5 MB, free: 11.11 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.136e-05/0.8797, allocations: 0 / 429.5 MB, free: 11.11 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.006652/0.8864, allocations: 1.071 MB / 430.6 MB, free: 10.05 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001709/0.8882, allocations: 131.3 kB / 430.7 MB, free: 9.926 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007719/0.8959, allocations: 2.167 MB / 432.9 MB, free: 7.742 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009104/0.8969, allocations: 0.951 MB / 433.8 MB, free: 6.766 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003631/0.8973, allocations: 31.44 kB / 433.8 MB, free: 6.734 MB / 334.1 MB Notification: Performance of SimCode: time 1.202e-06/0.8973, allocations: 0 / 433.8 MB, free: 6.734 MB / 334.1 MB Notification: Performance of Templates: time 0.03977/0.9371, allocations: 17.4 MB / 451.2 MB, free: 5.363 MB / 350.1 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/HeatingPNP_NORGate/HeatingPNP_NORGate.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches