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.001731/0.001739, allocations: 112.5 kB / 17.7 MB, free: 5.438 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.001953/0.001953, allocations: 191 kB / 18.63 MB, free: 4.508 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.442/1.442, allocations: 222.9 MB / 242.3 MB, free: 15.19 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001077/0.001077, allocations: 46.39 kB / 302.1 MB, free: 5.191 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1302/0.1313, allocations: 49.45 MB / 351.5 MB, free: 3.723 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate): time 0.006451/0.1378, allocations: 4.953 MB / 356.5 MB, free: 14.74 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002298/0.1402, allocations: 1.264 MB / 357.7 MB, free: 13.47 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003379/0.1405, allocations: 8 kB / 357.7 MB, free: 13.46 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002971/0.1408, allocations: 130.7 kB / 357.9 MB, free: 13.33 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004317/0.1413, allocations: 245.7 kB / 358.1 MB, free: 13.09 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006813/0.142, allocations: 319.4 kB / 358.4 MB, free: 12.78 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001044/0.143, allocations: 1.095 MB / 359.5 MB, free: 11.68 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003646/0.1434, allocations: 262.5 kB / 359.8 MB, free: 11.4 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004532/0.1439, allocations: 418.5 kB / 360.2 MB, free: 10.99 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005045/0.1444, allocations: 466 kB / 360.6 MB, free: 10.53 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001092/0.1445, allocations: 84 kB / 360.7 MB, free: 10.45 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002/0.1447, allocations: 116 kB / 360.8 MB, free: 10.34 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001654/0.1449, allocations: 199.3 kB / 361 MB, free: 10.14 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000373/0.1453, allocations: 449.8 kB / 361.4 MB, free: 9.699 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008775/0.1462, allocations: 1.012 MB / 362.5 MB, free: 8.684 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.258e-06/0.1462, allocations: 0 / 362.5 MB, free: 8.684 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.442e-06/0.1462, allocations: 0 / 362.5 MB, free: 8.684 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.204e-05/0.1462, allocations: 0 / 362.5 MB, free: 8.684 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.002433/0.1486, allocations: 1.247 MB / 363.7 MB, free: 7.371 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.766e-05/0.1487, allocations: 11.97 kB / 363.7 MB, free: 7.359 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000154/0.1489, allocations: 99.81 kB / 363.8 MB, free: 7.262 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006904/0.1495, allocations: 491.5 kB / 364.3 MB, free: 6.742 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.44e-05/0.1496, allocations: 45.69 kB / 364.3 MB, free: 6.695 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001081/0.1497, allocations: 68.28 kB / 364.4 MB, free: 6.629 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00132/0.151, allocations: 0.6548 MB / 365.1 MB, free: 5.969 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.995e-05/0.1511, allocations: 4 kB / 365.1 MB, free: 5.965 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.103e-05/0.1511, allocations: 31.97 kB / 365.1 MB, free: 5.934 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.3e-05/0.1512, allocations: 16 kB / 365.1 MB, free: 5.918 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001609/0.1528, allocations: 0.6922 MB / 365.8 MB, free: 5.227 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.003859/0.1566, allocations: 2.366 MB / 368.2 MB, free: 2.703 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001368/0.158, allocations: 0.5827 MB / 368.8 MB, free: 2.113 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006852/0.1587, allocations: 334 kB / 369.1 MB, free: 1.785 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.72e-05/0.1588, allocations: 16.36 kB / 369.1 MB, free: 1.766 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008453/0.1597, allocations: 429.4 kB / 369.5 MB, free: 1.32 MB / 302.1 MB Notification: Performance of pre-optimization done (n=54): time 2.164e-06/0.1597, allocations: 0 / 369.5 MB, free: 1.32 MB / 302.1 MB Notification: Performance of matching and sorting (n=94): time 0.2658/0.4255, allocations: 15.42 MB / 384.9 MB, free: 22.4 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001081/0.4257, allocations: 145.3 kB / 385.1 MB, free: 22.24 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008317/0.4265, allocations: 0.5207 MB / 385.6 MB, free: 21.92 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000219/0.4268, allocations: 43.2 kB / 385.6 MB, free: 21.88 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000262/0.427, allocations: 386.3 kB / 386 MB, free: 21.54 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002521/0.4273, allocations: 317.3 kB / 386.3 MB, free: 21.27 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003861/0.4277, allocations: 188.8 kB / 386.5 MB, free: 21.15 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001421/0.4278, allocations: 383.2 kB / 386.9 MB, free: 20.79 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001848/0.4297, allocations: 0.7274 MB / 387.6 MB, free: 20.43 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001863/0.4316, allocations: 0.9542 MB / 388.6 MB, free: 19.78 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003415/0.435, allocations: 1.688 MB / 390.3 MB, free: 18.73 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.384e-06/0.435, allocations: 4 kB / 390.3 MB, free: 18.73 MB / 302.1 MB Notification: Performance of matching and sorting (n=128) (initialization): time 0.02057/0.4556, allocations: 5.377 MB / 395.6 MB, free: 13.33 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.319e-05/0.4557, allocations: 67.39 kB / 395.7 MB, free: 13.25 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.813e-05/0.4557, allocations: 8 kB / 395.7 MB, free: 13.24 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.03021/0.4859, allocations: 6.844 MB / 402.6 MB, free: 6.391 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007854/0.4868, allocations: 147.7 kB / 402.7 MB, free: 6.246 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006091/0.4929, allocations: 3.155 MB / 405.8 MB, free: 3.039 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001959/0.4949, allocations: 183.8 kB / 406 MB, free: 2.859 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001613/0.4951, allocations: 47.97 kB / 406.1 MB, free: 2.812 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.00061/0.4957, allocations: 222.2 kB / 406.3 MB, free: 2.586 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000198/0.4959, allocations: 86.94 kB / 406.4 MB, free: 2.504 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02096/0.5169, allocations: 5.103 MB / 411.5 MB, free: 13.38 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.595e-05/0.517, allocations: 12 kB / 411.5 MB, free: 13.37 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.408e-06/0.517, allocations: 0 / 411.5 MB, free: 13.37 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.252e-05/0.517, allocations: 7.984 kB / 411.5 MB, free: 13.36 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001724/0.5188, allocations: 1.104 MB / 412.6 MB, free: 12.25 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.082e-06/0.5188, allocations: 0 / 412.6 MB, free: 12.25 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005138/0.5193, allocations: 95.88 kB / 412.7 MB, free: 12.15 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.03273/0.5521, allocations: 6.8 MB / 419.5 MB, free: 5.344 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002607/0.5524, allocations: 27.97 kB / 419.5 MB, free: 5.316 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005782/0.5581, allocations: 3.043 MB / 422.6 MB, free: 2.219 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.989e-06/0.5582, allocations: 3.938 kB / 422.6 MB, free: 2.215 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02402/0.5822, allocations: 5.983 MB / 428.6 MB, free: 12.2 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003935/0.5827, allocations: 152.2 kB / 428.7 MB, free: 12.04 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002009/0.5829, allocations: 24 kB / 428.7 MB, free: 12.01 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001334/0.5842, allocations: 166.2 kB / 428.9 MB, free: 11.85 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003117/0.5846, allocations: 104.8 kB / 429 MB, free: 11.75 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001011/0.5847, allocations: 27.98 kB / 429 MB, free: 11.72 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0004695/0.5852, allocations: 350.8 kB / 429.4 MB, free: 11.38 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.5852, allocations: 0 / 429.4 MB, free: 11.38 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0009105/0.5861, allocations: 267.6 kB / 429.6 MB, free: 11.12 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.0003327/0.5864, allocations: 131.8 kB / 429.8 MB, free: 10.99 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0069/0.5933, allocations: 2.185 MB / 431.9 MB, free: 8.785 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 7.695e-06/0.5934, allocations: 0.6562 kB / 431.9 MB, free: 8.785 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003544/0.5969, allocations: 1.097 MB / 433 MB, free: 7.695 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007885/0.5977, allocations: 128.1 kB / 433.2 MB, free: 7.574 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003786/0.6015, allocations: 1.77 MB / 434.9 MB, free: 5.797 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004636/0.602, allocations: 0.9507 MB / 435.9 MB, free: 4.82 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0002438/0.6023, allocations: 54.28 kB / 435.9 MB, free: 4.766 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001229/0.6024, allocations: 39.44 kB / 436 MB, free: 4.727 MB / 334.1 MB Notification: Performance of SimCode: time 1.242e-06/0.6024, allocations: 0 / 436 MB, free: 4.727 MB / 334.1 MB Notification: Performance of Templates: time 0.03105/0.6335, allocations: 22.37 MB / 458.3 MB, free: 14.46 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 -s gbode -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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/HeatingNPN_NORGate/HeatingNPN_NORGate.csv","/var/lib/jenkins1/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