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.001359/0.001359, allocations: 109.7 kB / 17.06 MB, free: 5.824 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.001491/0.001491, allocations: 191 kB / 18 MB, free: 4.977 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.608/1.608, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001129/0.001129, allocations: 51.92 kB / 351.3 MB, free: 3.254 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3417/0.3429, allocations: 49.44 MB / 400.7 MB, free: 8.738 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate): time 0.006926/0.3498, allocations: 4.951 MB / 405.7 MB, free: 3.902 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.003239/0.3532, allocations: 1.264 MB / 407 MB, free: 2.629 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005238/0.3537, allocations: 15.94 kB / 407 MB, free: 2.613 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003499/0.3541, allocations: 126.7 kB / 407.1 MB, free: 2.488 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006065/0.3547, allocations: 257.7 kB / 407.4 MB, free: 2.234 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009039/0.3556, allocations: 311.5 kB / 407.7 MB, free: 1.93 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001275/0.3569, allocations: 1.107 MB / 408.8 MB, free: 0.8203 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004096/0.3574, allocations: 262.5 kB / 409 MB, free: 0.5391 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004961/0.3579, allocations: 426.5 kB / 409.4 MB, free: 124 kB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005017/0.3584, allocations: 462.1 kB / 409.9 MB, free: 15.66 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001139/0.3585, allocations: 88 kB / 410 MB, free: 15.58 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002042/0.3587, allocations: 112 kB / 410.1 MB, free: 15.47 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001682/0.3589, allocations: 191.3 kB / 410.3 MB, free: 15.28 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003959/0.3593, allocations: 445.8 kB / 410.7 MB, free: 14.84 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001012/0.3603, allocations: 1.005 MB / 411.7 MB, free: 13.84 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.781e-06/0.3603, allocations: 0 / 411.7 MB, free: 13.84 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.684e-06/0.3603, allocations: 4 kB / 411.7 MB, free: 13.84 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.299e-05/0.3604, allocations: 0 / 411.7 MB, free: 13.84 MB / 334.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.00262/0.363, allocations: 1.258 MB / 413 MB, free: 12.51 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.529e-05/0.363, allocations: 8.031 kB / 413 MB, free: 12.5 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001947/0.3632, allocations: 95.89 kB / 413.1 MB, free: 12.41 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007598/0.364, allocations: 487.5 kB / 413.6 MB, free: 11.89 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.14e-05/0.3641, allocations: 45.69 kB / 413.6 MB, free: 11.85 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001188/0.3642, allocations: 72.36 kB / 413.7 MB, free: 11.78 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001408/0.3656, allocations: 0.6548 MB / 414.3 MB, free: 11.12 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.304e-05/0.3656, allocations: 4 kB / 414.3 MB, free: 11.11 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.533e-05/0.3657, allocations: 24 kB / 414.3 MB, free: 11.09 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.775e-05/0.3657, allocations: 16 kB / 414.4 MB, free: 11.07 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001667/0.3674, allocations: 0.6922 MB / 415.1 MB, free: 10.38 MB / 334.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.003826/0.3713, allocations: 2.386 MB / 417.4 MB, free: 7.844 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001494/0.3728, allocations: 0.5788 MB / 418 MB, free: 7.254 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007496/0.3735, allocations: 330 kB / 418.3 MB, free: 6.93 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.71e-05/0.3736, allocations: 8.422 kB / 418.4 MB, free: 6.922 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009333/0.3745, allocations: 433.3 kB / 418.8 MB, free: 6.473 MB / 334.1 MB Notification: Performance of pre-optimization done (n=54): time 3.026e-06/0.3745, allocations: 4 kB / 418.8 MB, free: 6.469 MB / 334.1 MB Notification: Performance of matching and sorting (n=94): time 0.07012/0.4447, allocations: 15.41 MB / 434.2 MB, free: 6.961 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000151/0.4449, allocations: 145.5 kB / 434.3 MB, free: 6.789 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001079/0.446, allocations: 0.5262 MB / 434.9 MB, free: 6.25 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003132/0.4463, allocations: 45.7 kB / 434.9 MB, free: 6.199 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003856/0.4467, allocations: 383.8 kB / 435.3 MB, free: 5.816 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004484/0.4472, allocations: 311.5 kB / 435.6 MB, free: 5.508 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004699/0.4477, allocations: 194.4 kB / 435.8 MB, free: 5.312 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001708/0.4479, allocations: 386.7 kB / 436.1 MB, free: 4.926 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002225/0.4501, allocations: 0.7282 MB / 436.9 MB, free: 4.195 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00236/0.4525, allocations: 0.9551 MB / 437.8 MB, free: 3.156 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004396/0.4569, allocations: 1.693 MB / 439.5 MB, free: 1.367 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.909e-06/0.4569, allocations: 0 / 439.5 MB, free: 1.367 MB / 350.1 MB Notification: Performance of matching and sorting (n=128) (initialization): time 0.02366/0.4806, allocations: 5.366 MB / 444.9 MB, free: 11.97 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001085/0.4807, allocations: 67.39 kB / 445 MB, free: 11.89 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.39e-05/0.4808, allocations: 8.047 kB / 445 MB, free: 11.88 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.03476/0.5156, allocations: 6.849 MB / 451.8 MB, free: 5.02 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008771/0.5165, allocations: 151.7 kB / 452 MB, free: 4.871 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007935/0.5245, allocations: 3.161 MB / 455.1 MB, free: 1.656 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002122/0.5266, allocations: 183.8 kB / 455.3 MB, free: 1.477 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002515/0.5269, allocations: 47.97 kB / 455.3 MB, free: 1.43 MB / 366.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.0007021/0.5276, allocations: 226.1 kB / 455.6 MB, free: 1.199 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002699/0.5279, allocations: 75.06 kB / 455.6 MB, free: 1.125 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02252/0.5505, allocations: 5.115 MB / 460.8 MB, free: 11.99 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.734e-05/0.5505, allocations: 8 kB / 460.8 MB, free: 11.98 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.163e-05/0.5506, allocations: 4 kB / 460.8 MB, free: 11.98 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.717e-05/0.5506, allocations: 7.984 kB / 460.8 MB, free: 11.97 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001942/0.5525, allocations: 1.104 MB / 461.9 MB, free: 10.82 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.107e-05/0.5526, allocations: 0 / 461.9 MB, free: 10.82 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005897/0.5532, allocations: 99.81 kB / 462 MB, free: 10.72 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.03484/0.588, allocations: 6.793 MB / 468.8 MB, free: 3.91 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003083/0.5884, allocations: 27.97 kB / 468.8 MB, free: 3.883 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007634/0.5961, allocations: 3.048 MB / 471.8 MB, free: 0.7773 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.953e-06/0.5961, allocations: 0 / 471.8 MB, free: 0.7773 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02618/0.6223, allocations: 5.979 MB / 477.8 MB, free: 10.77 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003759/0.6228, allocations: 152.2 kB / 478 MB, free: 10.6 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003763/0.6231, allocations: 20 kB / 478 MB, free: 10.58 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001549/0.6247, allocations: 167.8 kB / 478.2 MB, free: 10.41 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003566/0.6251, allocations: 100.8 kB / 478.3 MB, free: 10.32 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001275/0.6252, allocations: 31.97 kB / 478.3 MB, free: 10.29 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0005617/0.6258, allocations: 350.9 kB / 478.6 MB, free: 9.941 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.6258, allocations: 0 / 478.6 MB, free: 9.941 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001063/0.6269, allocations: 268 kB / 478.9 MB, free: 9.68 MB / 398.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.0003793/0.6273, allocations: 131.5 kB / 479 MB, free: 9.543 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.007325/0.6346, allocations: 2.185 MB / 481.2 MB, free: 7.336 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 5.821e-06/0.6346, allocations: 3.938 kB / 481.2 MB, free: 7.332 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003737/0.6384, allocations: 1.093 MB / 482.3 MB, free: 6.238 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001013/0.6394, allocations: 126.2 kB / 482.4 MB, free: 6.109 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004519/0.644, allocations: 1.77 MB / 484.2 MB, free: 4.316 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005663/0.6446, allocations: 0.9507 MB / 485.1 MB, free: 3.34 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0003283/0.6449, allocations: 62.2 kB / 485.2 MB, free: 3.277 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001408/0.6451, allocations: 43.38 kB / 485.2 MB, free: 3.234 MB / 398.1 MB Notification: Performance of SimCode: time 5.81e-07/0.6451, allocations: 0 / 485.2 MB, free: 3.234 MB / 398.1 MB Notification: Performance of Templates: time 0.04468/0.6897, allocations: 22.59 MB / 0.4959 GB, free: 12.73 MB / 430.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