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.001371/0.001371, allocations: 92.53 kB / 16.3 MB, free: 5.527 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.00113/0.001131, allocations: 184.5 kB / 17.2 MB, free: 5.461 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.47/1.47, allocations: 223.2 MB / 241.1 MB, free: 14.54 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003058/0.0003059, allocations: 8.906 kB / 300.7 MB, free: 6.219 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1301/0.1304, allocations: 50.41 MB / 351.1 MB, free: 3.805 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate): time 0.004602/0.1351, allocations: 3.967 MB / 355.1 MB, free: 15.82 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002592/0.1377, allocations: 1.277 MB / 356.4 MB, free: 14.54 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006446/0.1384, allocations: 12 kB / 356.4 MB, free: 14.52 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003355/0.1387, allocations: 79.3 kB / 356.5 MB, free: 14.45 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008396/0.1396, allocations: 279.1 kB / 356.7 MB, free: 14.17 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007824/0.1404, allocations: 227.6 kB / 357 MB, free: 13.95 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001219/0.1416, allocations: 0.6955 MB / 357.7 MB, free: 13.25 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003802/0.142, allocations: 211.6 kB / 357.9 MB, free: 13.03 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005357/0.1426, allocations: 354.7 kB / 358.2 MB, free: 12.68 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005383/0.1431, allocations: 418.3 kB / 358.6 MB, free: 12.27 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 9.243e-05/0.1432, allocations: 44 kB / 358.7 MB, free: 12.23 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001636/0.1434, allocations: 63.98 kB / 358.7 MB, free: 12.16 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001312/0.1435, allocations: 151.3 kB / 358.9 MB, free: 12.02 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001592/0.1437, allocations: 173.3 kB / 359 MB, free: 11.84 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006464/0.1443, allocations: 0.7286 MB / 359.8 MB, free: 11.11 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.876e-06/0.1444, allocations: 3.938 kB / 359.8 MB, free: 11.11 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.633e-06/0.1444, allocations: 0 / 359.8 MB, free: 11.11 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.229e-05/0.1444, allocations: 4 kB / 359.8 MB, free: 11.1 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.002242/0.1466, allocations: 1.166 MB / 360.9 MB, free: 9.867 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.506e-05/0.1467, allocations: 8.031 kB / 361 MB, free: 9.859 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001559/0.1468, allocations: 94.88 kB / 361 MB, free: 9.766 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000605/0.1475, allocations: 462.7 kB / 361.5 MB, free: 9.27 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.45e-05/0.1475, allocations: 49.25 kB / 361.5 MB, free: 9.223 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001033/0.1476, allocations: 64 kB / 361.6 MB, free: 9.16 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00134/0.149, allocations: 0.6702 MB / 362.3 MB, free: 8.484 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.145e-05/0.149, allocations: 7.984 kB / 362.3 MB, free: 8.477 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.491e-05/0.1491, allocations: 24 kB / 362.3 MB, free: 8.453 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.696e-05/0.1491, allocations: 19.95 kB / 362.3 MB, free: 8.434 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001636/0.1507, allocations: 0.7507 MB / 363.1 MB, free: 7.68 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.003634/0.1544, allocations: 2.433 MB / 365.5 MB, free: 5.098 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00142/0.1558, allocations: 0.6295 MB / 366.1 MB, free: 4.461 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.724e-05/0.1559, allocations: 20.41 kB / 366.2 MB, free: 4.441 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009648/0.1568, allocations: 449.5 kB / 366.6 MB, free: 3.977 MB / 302.1 MB Notification: Performance of pre-optimization done (n=54): time 1.893e-06/0.1569, allocations: 0 / 366.6 MB, free: 3.977 MB / 302.1 MB Notification: Performance of matching and sorting (n=94): time 0.2557/0.4126, allocations: 16.71 MB / 383.3 MB, free: 22.25 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.226e-05/0.4127, allocations: 146.7 kB / 383.5 MB, free: 22.08 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005555/0.4133, allocations: 0.5128 MB / 384 MB, free: 21.77 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001515/0.4134, allocations: 43.45 kB / 384 MB, free: 21.73 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000192/0.4136, allocations: 384.3 kB / 384.4 MB, free: 21.39 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000199/0.4138, allocations: 318 kB / 384.7 MB, free: 21.12 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.179e-05/0.4139, allocations: 19.53 kB / 384.7 MB, free: 21.1 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 8.591e-05/0.414, allocations: 387 kB / 385.1 MB, free: 20.73 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001951/0.4159, allocations: 0.7968 MB / 385.9 MB, free: 20.37 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002075/0.418, allocations: 1.024 MB / 386.9 MB, free: 19.71 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001983/0.42, allocations: 0.8841 MB / 387.8 MB, free: 19.26 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.891e-06/0.42, allocations: 2.969 kB / 387.8 MB, free: 19.26 MB / 302.1 MB Notification: Performance of matching and sorting (n=128) (initialization): time 0.0223/0.4424, allocations: 5.649 MB / 393.4 MB, free: 14.89 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.83e-05/0.4425, allocations: 67.41 kB / 393.5 MB, free: 14.81 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.927e-05/0.4425, allocations: 4 kB / 393.5 MB, free: 14.81 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.03351/0.476, allocations: 7.324 MB / 400.8 MB, free: 7.48 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007339/0.4768, allocations: 175.8 kB / 401 MB, free: 7.309 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005946/0.4828, allocations: 3.212 MB / 404.2 MB, free: 4.043 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001781/0.4846, allocations: 227.8 kB / 404.4 MB, free: 3.82 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.649e-05/0.4847, allocations: 43.98 kB / 404.5 MB, free: 3.777 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 ($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 (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.0004589/0.4851, allocations: 226.6 kB / 404.7 MB, free: 3.547 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001327/0.4853, allocations: 83.02 kB / 404.8 MB, free: 3.465 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02171/0.507, allocations: 5.463 MB / 410.3 MB, free: 13.99 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.235e-05/0.5071, allocations: 10.34 kB / 410.3 MB, free: 13.98 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.917e-06/0.5071, allocations: 0 / 410.3 MB, free: 13.98 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.293e-05/0.5071, allocations: 3.984 kB / 410.3 MB, free: 13.98 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001614/0.5087, allocations: 1.109 MB / 411.4 MB, free: 12.85 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.45e-06/0.5088, allocations: 3.938 kB / 411.4 MB, free: 12.84 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005681/0.5093, allocations: 119.9 kB / 411.5 MB, free: 12.73 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.03428/0.5436, allocations: 7.29 MB / 418.8 MB, free: 5.434 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002489/0.5439, allocations: 31.92 kB / 418.8 MB, free: 5.402 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005781/0.5497, allocations: 3.068 MB / 421.9 MB, free: 2.277 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.589e-06/0.5498, allocations: 4.047 kB / 421.9 MB, free: 2.273 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02498/0.5747, allocations: 6.432 MB / 428.3 MB, free: 11.82 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003024/0.5751, allocations: 153.5 kB / 428.5 MB, free: 11.66 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001781/0.5753, allocations: 24.06 kB / 428.5 MB, free: 11.63 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00142/0.5767, allocations: 211.8 kB / 428.7 MB, free: 11.43 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002455/0.5769, allocations: 96.84 kB / 428.8 MB, free: 11.33 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.693e-05/0.577, allocations: 35.97 kB / 428.8 MB, free: 11.3 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0004269/0.5775, allocations: 350.8 kB / 429.2 MB, free: 10.96 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.5775, allocations: 0 / 429.2 MB, free: 10.96 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0008737/0.5784, allocations: 256 kB / 429.4 MB, free: 10.71 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 (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.000277/0.5787, allocations: 132.7 kB / 429.6 MB, free: 10.57 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.007299/0.586, allocations: 2.335 MB / 431.9 MB, free: 8.215 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 6.502e-06/0.586, allocations: 0 / 431.9 MB, free: 8.215 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003667/0.5897, allocations: 1.15 MB / 433 MB, free: 7.07 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009056/0.5906, allocations: 104.6 kB / 433.1 MB, free: 6.965 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00412/0.5947, allocations: 2.117 MB / 435.3 MB, free: 4.836 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005135/0.5953, allocations: 0.9626 MB / 436.2 MB, free: 3.844 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0002987/0.5956, allocations: 58.27 kB / 436.3 MB, free: 3.785 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001157/0.5957, allocations: 35.44 kB / 436.3 MB, free: 3.75 MB / 334.1 MB Notification: Performance of SimCode: time 5.71e-07/0.5957, allocations: 0 / 436.3 MB, free: 3.75 MB / 334.1 MB Notification: Performance of Templates: time 0.03212/0.6278, allocations: 19.79 MB / 456.1 MB, free: 64 kB / 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/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