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.001079/0.001079, allocations: 106.9 kB / 16.62 MB, free: 6.805 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.001051/0.001051, allocations: 193.9 kB / 17.55 MB, free: 5.953 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.545/1.545, allocations: 222.9 MB / 241.2 MB, free: 13.75 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001236/0.001236, allocations: 50.41 kB / 300.1 MB, free: 6.027 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1251/0.1264, allocations: 49.45 MB / 349.6 MB, free: 4.574 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate): time 0.007562/0.134, allocations: 4.956 MB / 354.5 MB, free: 15.59 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.004296/0.1383, allocations: 1.264 MB / 355.8 MB, free: 14.32 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001203/0.1396, allocations: 11.94 kB / 355.8 MB, free: 14.31 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004332/0.14, allocations: 87.3 kB / 355.9 MB, free: 14.22 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007369/0.1409, allocations: 226.1 kB / 356.1 MB, free: 14 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001013/0.1419, allocations: 267.7 kB / 356.4 MB, free: 13.74 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001059/0.143, allocations: 1.095 MB / 357.5 MB, free: 12.64 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004221/0.1434, allocations: 262.5 kB / 357.7 MB, free: 12.36 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004316/0.1438, allocations: 422.5 kB / 358.1 MB, free: 11.95 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005369/0.1444, allocations: 462 kB / 358.6 MB, free: 11.5 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001281/0.1445, allocations: 88 kB / 358.7 MB, free: 11.41 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002188/0.1447, allocations: 120 kB / 358.8 MB, free: 11.29 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001848/0.1449, allocations: 187.3 kB / 359 MB, free: 11.11 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004478/0.1454, allocations: 449.8 kB / 359.4 MB, free: 10.67 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000994/0.1464, allocations: 1.005 MB / 360.4 MB, free: 9.66 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.172e-06/0.1464, allocations: 0 / 360.4 MB, free: 9.66 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.784e-06/0.1464, allocations: 0 / 360.4 MB, free: 9.66 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.158e-05/0.1464, allocations: 0 / 360.4 MB, free: 9.66 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.002489/0.1489, allocations: 1.25 MB / 361.7 MB, free: 8.344 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.985e-05/0.149, allocations: 12.03 kB / 361.7 MB, free: 8.332 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001968/0.1492, allocations: 95.81 kB / 361.8 MB, free: 8.238 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007167/0.1499, allocations: 483.5 kB / 362.2 MB, free: 7.723 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.386e-05/0.15, allocations: 45.69 kB / 362.3 MB, free: 7.676 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001185/0.1501, allocations: 76.27 kB / 362.4 MB, free: 7.602 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001427/0.1515, allocations: 0.6507 MB / 363 MB, free: 6.949 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.273e-05/0.1516, allocations: 0 / 363 MB, free: 6.949 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.125e-05/0.1517, allocations: 32 kB / 363 MB, free: 6.918 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.939e-05/0.1517, allocations: 16 kB / 363.1 MB, free: 6.902 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001656/0.1533, allocations: 0.6922 MB / 363.8 MB, free: 6.207 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.003881/0.1572, allocations: 2.39 MB / 366.1 MB, free: 3.66 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001393/0.1586, allocations: 0.5827 MB / 366.7 MB, free: 3.07 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000692/0.1593, allocations: 326 kB / 367 MB, free: 2.75 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.396e-05/0.1594, allocations: 12.42 kB / 367.1 MB, free: 2.734 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009431/0.1604, allocations: 425.4 kB / 367.5 MB, free: 2.293 MB / 302.1 MB Notification: Performance of pre-optimization done (n=54): time 2.364e-06/0.1604, allocations: 0 / 367.5 MB, free: 2.293 MB / 302.1 MB Notification: Performance of matching and sorting (n=94): time 0.2854/0.4458, allocations: 15.41 MB / 382.9 MB, free: 22.51 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001211/0.446, allocations: 144.8 kB / 383 MB, free: 22.35 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008168/0.4468, allocations: 0.5208 MB / 383.5 MB, free: 22.04 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002218/0.447, allocations: 45.55 kB / 383.6 MB, free: 21.99 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002853/0.4473, allocations: 394.4 kB / 384 MB, free: 21.64 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002814/0.4476, allocations: 310.6 kB / 384.3 MB, free: 21.38 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003623/0.448, allocations: 179.9 kB / 384.5 MB, free: 21.27 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.000124/0.4481, allocations: 390.5 kB / 384.8 MB, free: 20.9 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001917/0.45, allocations: 0.7194 MB / 385.6 MB, free: 20.54 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002049/0.4521, allocations: 0.9586 MB / 386.5 MB, free: 19.9 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004167/0.4563, allocations: 1.695 MB / 388.2 MB, free: 18.86 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.553e-06/0.4563, allocations: 0 / 388.2 MB, free: 18.86 MB / 302.1 MB Notification: Performance of matching and sorting (n=128) (initialization): time 0.02207/0.4784, allocations: 5.389 MB / 393.6 MB, free: 14.49 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.53e-05/0.4785, allocations: 59.41 kB / 393.7 MB, free: 14.42 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.928e-05/0.4785, allocations: 4 kB / 393.7 MB, free: 14.42 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.03357/0.5121, allocations: 6.855 MB / 400.5 MB, free: 7.559 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006754/0.5128, allocations: 143.7 kB / 400.7 MB, free: 7.418 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006035/0.5188, allocations: 3.157 MB / 403.8 MB, free: 4.207 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00173/0.5206, allocations: 191.8 kB / 404 MB, free: 4.02 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001004/0.5207, allocations: 43.98 kB / 404 MB, free: 3.977 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.0004308/0.5211, allocations: 225.6 kB / 404.3 MB, free: 3.746 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001483/0.5213, allocations: 79 kB / 404.3 MB, free: 3.668 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02302/0.5443, allocations: 5.107 MB / 409.4 MB, free: 14.55 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.806e-05/0.5444, allocations: 12 kB / 409.5 MB, free: 14.54 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.521e-05/0.5444, allocations: 4 kB / 409.5 MB, free: 14.53 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.133e-05/0.5445, allocations: 3.984 kB / 409.5 MB, free: 14.53 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002322/0.5468, allocations: 1.096 MB / 410.6 MB, free: 13.41 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.504e-05/0.5468, allocations: 0 / 410.6 MB, free: 13.41 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005838/0.5474, allocations: 99.19 kB / 410.7 MB, free: 13.31 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.03752/0.585, allocations: 6.8 MB / 417.5 MB, free: 6.504 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002238/0.5852, allocations: 35.38 kB / 417.5 MB, free: 6.473 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005961/0.5912, allocations: 3.041 MB / 420.5 MB, free: 3.379 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.97e-06/0.5912, allocations: 3.938 kB / 420.5 MB, free: 3.375 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02617/0.6174, allocations: 5.996 MB / 426.5 MB, free: 13.36 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002677/0.6177, allocations: 140.2 kB / 426.7 MB, free: 13.2 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002089/0.6179, allocations: 19.98 kB / 426.7 MB, free: 13.18 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001521/0.6194, allocations: 171.8 kB / 426.9 MB, free: 13.02 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002798/0.6197, allocations: 104.9 kB / 427 MB, free: 12.91 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.735e-05/0.6198, allocations: 35.92 kB / 427 MB, free: 12.88 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0004282/0.6203, allocations: 350.8 kB / 427.3 MB, free: 12.54 MB / 334.1 MB Notification: Performance of sort global known variables: time 2.81e-07/0.6203, allocations: 4 kB / 427.3 MB, free: 12.54 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0008456/0.6211, allocations: 256 kB / 427.6 MB, free: 12.29 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.0002822/0.6214, allocations: 131.2 kB / 427.7 MB, free: 12.15 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.007137/0.6286, allocations: 2.19 MB / 429.9 MB, free: 9.938 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.717e-06/0.6286, allocations: 0 / 429.9 MB, free: 9.938 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003801/0.6324, allocations: 1.102 MB / 431 MB, free: 8.848 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001149/0.6335, allocations: 134 kB / 431.1 MB, free: 8.719 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004789/0.6384, allocations: 2.119 MB / 433.3 MB, free: 6.594 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000722/0.6391, allocations: 0.9507 MB / 434.2 MB, free: 5.617 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0003719/0.6395, allocations: 57.52 kB / 434.3 MB, free: 5.562 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001461/0.6396, allocations: 35.44 kB / 434.3 MB, free: 5.527 MB / 334.1 MB Notification: Performance of SimCode: time 7.61e-07/0.6396, allocations: 0 / 434.3 MB, free: 5.527 MB / 334.1 MB Notification: Performance of Templates: time 0.03501/0.6747, allocations: 22 MB / 456.3 MB, free: 15.62 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