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.001281/0.001281, allocations: 108.5 kB / 17.16 MB, free: 6.324 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.001234/0.001235, allocations: 198.9 kB / 18.08 MB, free: 5.422 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.887/1.887, allocations: 222.9 MB / 241.8 MB, free: 15.5 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002091/0.002092, allocations: 52.23 kB / 300.6 MB, free: 6.328 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1532/0.1553, allocations: 49.45 MB / 350.1 MB, free: 4.871 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate): time 0.009474/0.1649, allocations: 4.96 MB / 355 MB, free: 15.88 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.004136/0.1691, allocations: 1.268 MB / 356.3 MB, free: 14.61 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008982/0.17, allocations: 15.94 kB / 356.3 MB, free: 14.59 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004997/0.1706, allocations: 87.23 kB / 356.4 MB, free: 14.5 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001102/0.1718, allocations: 218.2 kB / 356.6 MB, free: 14.29 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001153/0.1729, allocations: 271.6 kB / 356.9 MB, free: 14.02 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001935/0.1749, allocations: 1.032 MB / 357.9 MB, free: 12.98 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005745/0.1755, allocations: 235.4 kB / 358.1 MB, free: 12.74 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008457/0.1763, allocations: 374.5 kB / 358.5 MB, free: 12.37 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007216/0.1771, allocations: 446 kB / 358.9 MB, free: 11.93 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001525/0.1772, allocations: 52 kB / 359 MB, free: 11.88 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003009/0.1776, allocations: 75.98 kB / 359.1 MB, free: 11.81 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002277/0.1778, allocations: 167.3 kB / 359.2 MB, free: 11.64 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007854/0.1786, allocations: 413.8 kB / 359.6 MB, free: 11.24 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001172/0.1798, allocations: 0.7367 MB / 360.4 MB, free: 10.5 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.74e-06/0.1798, allocations: 0 / 360.4 MB, free: 10.5 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.292e-06/0.1798, allocations: 0 / 360.4 MB, free: 10.5 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.6e-05/0.1798, allocations: 0 / 360.4 MB, free: 10.5 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.003917/0.1838, allocations: 1.258 MB / 361.6 MB, free: 9.172 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.535e-05/0.1839, allocations: 8.031 kB / 361.6 MB, free: 9.164 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002747/0.1841, allocations: 95.81 kB / 361.7 MB, free: 9.07 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000973/0.1851, allocations: 483.5 kB / 362.2 MB, free: 8.555 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.932e-05/0.1852, allocations: 49.69 kB / 362.2 MB, free: 8.508 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001665/0.1854, allocations: 68.27 kB / 362.3 MB, free: 8.441 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002263/0.1876, allocations: 0.6587 MB / 363 MB, free: 7.777 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.146e-05/0.1877, allocations: 0 / 363 MB, free: 7.777 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001079/0.1878, allocations: 24 kB / 363 MB, free: 7.754 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.485e-05/0.1879, allocations: 16 kB / 363 MB, free: 7.738 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002475/0.1903, allocations: 0.696 MB / 363.7 MB, free: 7.039 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.006117/0.1965, allocations: 2.382 MB / 366.1 MB, free: 4.504 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002338/0.1988, allocations: 0.5788 MB / 366.7 MB, free: 3.918 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001124/0.2, allocations: 337.9 kB / 367 MB, free: 3.586 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.096e-05/0.2001, allocations: 8.438 kB / 367 MB, free: 3.574 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001414/0.2015, allocations: 422.7 kB / 367.4 MB, free: 3.137 MB / 302.1 MB Notification: Performance of pre-optimization done (n=54): time 3.697e-06/0.2015, allocations: 4 kB / 367.4 MB, free: 3.133 MB / 302.1 MB Notification: Performance of matching and sorting (n=94): time 0.3566/0.5582, allocations: 15.42 MB / 382.8 MB, free: 23.06 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001036/0.5583, allocations: 141.5 kB / 383 MB, free: 22.9 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001261/0.5596, allocations: 0.5198 MB / 383.5 MB, free: 22.59 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002317/0.5599, allocations: 48.11 kB / 383.5 MB, free: 22.54 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002956/0.5602, allocations: 386.1 kB / 383.9 MB, free: 22.2 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004351/0.5606, allocations: 306.8 kB / 384.2 MB, free: 21.94 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007303/0.5614, allocations: 185.5 kB / 384.4 MB, free: 21.82 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.000149/0.5615, allocations: 390.3 kB / 384.8 MB, free: 21.45 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002981/0.5645, allocations: 0.7189 MB / 385.5 MB, free: 21.1 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003434/0.568, allocations: 0.9527 MB / 386.4 MB, free: 20.46 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006357/0.5744, allocations: 1.697 MB / 388.1 MB, free: 19.41 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.046e-05/0.5744, allocations: 2.719 kB / 388.1 MB, free: 19.41 MB / 302.1 MB Notification: Performance of matching and sorting (n=128) (initialization): time 0.03536/0.6098, allocations: 5.378 MB / 393.5 MB, free: 15.44 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001016/0.6099, allocations: 67.22 kB / 393.6 MB, free: 15.36 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.741e-05/0.61, allocations: 4 kB / 393.6 MB, free: 15.36 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.05037/0.6604, allocations: 6.846 MB / 400.4 MB, free: 8.508 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001119/0.6616, allocations: 147.7 kB / 400.6 MB, free: 8.363 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01024/0.6718, allocations: 3.165 MB / 403.7 MB, free: 5.145 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002596/0.6745, allocations: 179.8 kB / 403.9 MB, free: 4.969 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003342/0.6749, allocations: 51.97 kB / 404 MB, free: 4.918 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.0008038/0.6757, allocations: 228.8 kB / 404.2 MB, free: 4.688 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004121/0.6761, allocations: 79.05 kB / 404.3 MB, free: 4.609 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03548/0.7116, allocations: 5.108 MB / 409.4 MB, free: 15.49 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.489e-05/0.7117, allocations: 8 kB / 409.4 MB, free: 15.48 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.244e-05/0.7118, allocations: 7.938 kB / 409.4 MB, free: 15.48 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.064e-05/0.7118, allocations: 7.969 kB / 409.4 MB, free: 15.47 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003245/0.7151, allocations: 1.102 MB / 410.5 MB, free: 14.35 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.863e-05/0.7151, allocations: 0 / 410.5 MB, free: 14.35 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009354/0.7161, allocations: 101.2 kB / 410.6 MB, free: 14.25 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.05409/0.7702, allocations: 6.805 MB / 417.4 MB, free: 7.438 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003866/0.7706, allocations: 27.97 kB / 417.4 MB, free: 7.41 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01066/0.7813, allocations: 3.04 MB / 420.5 MB, free: 4.312 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.759e-06/0.7814, allocations: 0 / 420.5 MB, free: 4.312 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0421/0.8235, allocations: 5.99 MB / 426.5 MB, free: 14.3 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004911/0.824, allocations: 140.2 kB / 426.6 MB, free: 14.14 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000505/0.8246, allocations: 23.94 kB / 426.6 MB, free: 14.12 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002558/0.8272, allocations: 175.8 kB / 426.8 MB, free: 13.95 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004883/0.8277, allocations: 96.8 kB / 426.9 MB, free: 13.85 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000212/0.8279, allocations: 35.97 kB / 426.9 MB, free: 13.82 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0008185/0.8288, allocations: 354.8 kB / 427.3 MB, free: 13.47 MB / 334.1 MB Notification: Performance of sort global known variables: time 3.61e-07/0.8288, allocations: 0 / 427.3 MB, free: 13.47 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.00161/0.8304, allocations: 256 kB / 427.5 MB, free: 13.22 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.0004573/0.8309, allocations: 131.2 kB / 427.7 MB, free: 13.09 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.01235/0.8432, allocations: 2.179 MB / 429.8 MB, free: 10.89 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 9.628e-06/0.8433, allocations: 1.375 kB / 429.8 MB, free: 10.89 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.006536/0.8498, allocations: 1.085 MB / 430.9 MB, free: 9.812 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001605/0.8515, allocations: 125.1 kB / 431 MB, free: 9.691 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00755/0.8591, allocations: 2.148 MB / 433.2 MB, free: 7.527 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008223/0.8599, allocations: 0.9431 MB / 434.1 MB, free: 6.559 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003144/0.8603, allocations: 39.44 kB / 434.2 MB, free: 6.52 MB / 334.1 MB Notification: Performance of SimCode: time 1.142e-06/0.8603, allocations: 0 / 434.2 MB, free: 6.52 MB / 334.1 MB Notification: Performance of Templates: time 0.039/0.8993, allocations: 17.4 MB / 451.6 MB, free: 5.152 MB / 350.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/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