Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingNPN_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.HeatingNPN_NORGate,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|HeatCapacitor1.T",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate") translateModel(Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|HeatCapacitor1.T",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000909/0.0009091, allocations: 91.69 kB / 16.65 MB, free: 6.59 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.001139/0.001139, allocations: 181.9 kB / 17.56 MB, free: 6.203 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.555/1.555, allocations: 223.3 MB / 241.6 MB, free: 244 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002978/0.0002978, allocations: 12.44 kB / 301.4 MB, free: 6.141 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1138/0.1141, allocations: 50.41 MB / 351.8 MB, free: 3.719 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate): time 0.005285/0.1194, allocations: 4.539 MB / 356.4 MB, free: 15.15 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002983/0.1224, allocations: 1.264 MB / 357.6 MB, free: 13.88 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008485/0.1233, allocations: 8 kB / 357.6 MB, free: 13.88 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004333/0.1238, allocations: 95.17 kB / 357.7 MB, free: 13.78 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000788/0.1246, allocations: 222.1 kB / 357.9 MB, free: 13.56 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009366/0.1255, allocations: 267.7 kB / 358.2 MB, free: 13.3 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001078/0.1266, allocations: 1.044 MB / 359.3 MB, free: 12.25 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003596/0.127, allocations: 219.4 kB / 359.5 MB, free: 12.02 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004183/0.1274, allocations: 370.5 kB / 359.8 MB, free: 11.66 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004568/0.1279, allocations: 414.1 kB / 360.2 MB, free: 11.25 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001011/0.128, allocations: 44 kB / 360.3 MB, free: 11.21 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001736/0.1282, allocations: 67.98 kB / 360.3 MB, free: 11.14 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001257/0.1283, allocations: 155.3 kB / 360.5 MB, free: 10.99 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003451/0.1287, allocations: 419.5 kB / 360.9 MB, free: 10.57 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008073/0.1295, allocations: 0.9419 MB / 361.8 MB, free: 9.625 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.92e-06/0.1295, allocations: 0 / 361.8 MB, free: 9.625 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.983e-06/0.1295, allocations: 4 kB / 361.9 MB, free: 9.621 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.003e-05/0.1295, allocations: 0 / 361.9 MB, free: 9.621 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.002449/0.132, allocations: 1.146 MB / 363 MB, free: 8.406 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.197e-05/0.132, allocations: 12.03 kB / 363 MB, free: 8.395 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000202/0.1322, allocations: 91.81 kB / 363.1 MB, free: 8.305 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000697/0.1329, allocations: 487.4 kB / 363.6 MB, free: 7.785 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.762e-05/0.133, allocations: 45.69 kB / 363.6 MB, free: 7.742 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001364/0.1331, allocations: 72.36 kB / 363.7 MB, free: 7.672 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001573/0.1347, allocations: 0.6822 MB / 364.4 MB, free: 6.984 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.211e-05/0.1348, allocations: 7.844 kB / 364.4 MB, free: 6.977 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.651e-05/0.1348, allocations: 24 kB / 364.4 MB, free: 6.953 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.594e-05/0.1349, allocations: 16 kB / 364.4 MB, free: 6.938 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001772/0.1366, allocations: 0.7586 MB / 365.2 MB, free: 6.176 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.003865/0.1405, allocations: 2.429 MB / 367.6 MB, free: 3.594 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00157/0.1421, allocations: 0.6373 MB / 368.2 MB, free: 2.949 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007949/0.1429, allocations: 358 kB / 368.6 MB, free: 2.598 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.284e-05/0.143, allocations: 16.42 kB / 368.6 MB, free: 2.578 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001027/0.144, allocations: 452.7 kB / 369.1 MB, free: 2.113 MB / 302.1 MB Notification: Performance of pre-optimization done (n=54): time 4.188e-06/0.144, allocations: 0 / 369.1 MB, free: 2.113 MB / 302.1 MB Notification: Performance of matching and sorting (n=94): time 0.3104/0.4544, allocations: 16.74 MB / 385.8 MB, free: 21.78 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.608e-05/0.4545, allocations: 145.4 kB / 385.9 MB, free: 21.62 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008148/0.4553, allocations: 0.5127 MB / 386.4 MB, free: 21.31 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002076/0.4556, allocations: 47.98 kB / 386.5 MB, free: 21.26 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002389/0.4558, allocations: 392.1 kB / 386.9 MB, free: 20.91 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002439/0.4561, allocations: 312.9 kB / 387.2 MB, free: 20.65 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001345/0.4562, allocations: 82.8 kB / 387.3 MB, free: 20.59 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001054/0.4563, allocations: 387.6 kB / 387.6 MB, free: 20.22 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001978/0.4583, allocations: 0.7958 MB / 388.4 MB, free: 19.86 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002069/0.4604, allocations: 1.041 MB / 389.5 MB, free: 19.2 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003902/0.4643, allocations: 1.842 MB / 391.3 MB, free: 17.3 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.189e-06/0.4643, allocations: 4 kB / 391.3 MB, free: 17.3 MB / 302.1 MB Notification: Performance of matching and sorting (n=128) (initialization): time 0.02366/0.488, allocations: 5.746 MB / 397.1 MB, free: 11.53 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.506e-05/0.4881, allocations: 67.39 kB / 397.1 MB, free: 11.45 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.685e-05/0.4881, allocations: 8 kB / 397.1 MB, free: 11.45 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0351/0.5232, allocations: 7.317 MB / 404.5 MB, free: 4.125 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007721/0.5241, allocations: 176.6 kB / 404.6 MB, free: 3.953 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006246/0.5303, allocations: 3.235 MB / 407.9 MB, free: 0.668 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001835/0.5322, allocations: 227.8 kB / 408.1 MB, free: 456 kB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001024/0.5323, allocations: 51.97 kB / 408.1 MB, free: 404 kB / 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.0004617/0.5328, allocations: 223.3 kB / 408.4 MB, free: 172 kB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001601/0.5329, allocations: 83 kB / 408.4 MB, free: 88 kB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02471/0.5577, allocations: 5.473 MB / 413.9 MB, free: 10.62 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.107e-05/0.5578, allocations: 11.09 kB / 413.9 MB, free: 10.61 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.532e-05/0.5578, allocations: 0 / 413.9 MB, free: 10.61 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.873e-05/0.5578, allocations: 7.984 kB / 413.9 MB, free: 10.6 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001987/0.5598, allocations: 1.099 MB / 415 MB, free: 9.48 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.484e-06/0.5599, allocations: 0 / 415 MB, free: 9.48 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006043/0.5605, allocations: 135.8 kB / 415.2 MB, free: 9.348 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0362/0.5967, allocations: 7.283 MB / 422.5 MB, free: 2.059 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002958/0.597, allocations: 27.98 kB / 422.5 MB, free: 2.031 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006373/0.6034, allocations: 3.1 MB / 425.6 MB, free: 14.88 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.729e-06/0.6035, allocations: 0 / 425.6 MB, free: 14.88 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02774/0.6312, allocations: 6.428 MB / 432 MB, free: 8.426 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004781/0.6318, allocations: 148.1 kB / 432.1 MB, free: 8.262 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004227/0.6322, allocations: 16 kB / 432.2 MB, free: 8.246 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00181/0.634, allocations: 219.8 kB / 432.4 MB, free: 8.031 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003219/0.6344, allocations: 100.7 kB / 432.5 MB, free: 7.93 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.181e-05/0.6345, allocations: 38.83 kB / 432.5 MB, free: 7.895 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0005877/0.6351, allocations: 354.8 kB / 432.9 MB, free: 7.551 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.6351, allocations: 0 / 432.9 MB, free: 7.551 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.001001/0.6361, allocations: 260 kB / 433.1 MB, free: 7.297 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.000345/0.6364, allocations: 128.8 kB / 433.2 MB, free: 7.168 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.007624/0.6441, allocations: 2.338 MB / 435.6 MB, free: 4.805 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 7.644e-06/0.6441, allocations: 0 / 435.6 MB, free: 4.805 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003886/0.648, allocations: 1.16 MB / 436.7 MB, free: 3.652 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001098/0.6492, allocations: 133.1 kB / 436.9 MB, free: 3.523 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004618/0.6538, allocations: 2.177 MB / 439 MB, free: 1.328 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000577/0.6544, allocations: 0.951 MB / 440 MB, free: 356 kB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0003363/0.6547, allocations: 58.27 kB / 440.1 MB, free: 296 kB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000128/0.6549, allocations: 31.44 kB / 440.1 MB, free: 264 kB / 334.1 MB Notification: Performance of SimCode: time 1.693e-06/0.6549, allocations: 0 / 440.1 MB, free: 264 kB / 334.1 MB Notification: Performance of Templates: time 0.03876/0.6936, allocations: 20.48 MB / 460.6 MB, free: 11.87 MB / 366.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate.sim & ./Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/HeatingNPN_NORGate/HeatingNPN_NORGate.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches