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.001398/0.001398, allocations: 115.5 kB / 17.69 MB, free: 5.305 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.001542/0.001542, allocations: 192 kB / 18.63 MB, free: 4.375 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.488/1.488, allocations: 222.9 MB / 242.3 MB, free: 15.18 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001816/0.001816, allocations: 51.22 kB / 302.1 MB, free: 5.188 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1386/0.1404, allocations: 49.44 MB / 351.5 MB, free: 3.727 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate): time 0.007421/0.1479, allocations: 4.941 MB / 356.4 MB, free: 14.76 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.003714/0.1517, allocations: 1.268 MB / 357.7 MB, free: 13.48 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004425/0.1522, allocations: 15.94 kB / 357.7 MB, free: 13.47 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003675/0.1525, allocations: 122.7 kB / 357.8 MB, free: 13.35 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005312/0.1531, allocations: 257.6 kB / 358.1 MB, free: 13.09 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008742/0.154, allocations: 311.4 kB / 358.4 MB, free: 12.79 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001439/0.1555, allocations: 1.099 MB / 359.5 MB, free: 11.68 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005124/0.156, allocations: 266.5 kB / 359.8 MB, free: 11.4 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006374/0.1566, allocations: 418.5 kB / 360.2 MB, free: 10.99 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006173/0.1573, allocations: 470 kB / 360.6 MB, free: 10.53 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001281/0.1574, allocations: 84 kB / 360.7 MB, free: 10.45 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000223/0.1576, allocations: 116 kB / 360.8 MB, free: 10.34 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000198/0.1578, allocations: 187.3 kB / 361 MB, free: 10.15 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004414/0.1583, allocations: 449.8 kB / 361.4 MB, free: 9.711 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0012/0.1595, allocations: 1.012 MB / 362.5 MB, free: 8.695 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.224e-05/0.1595, allocations: 3.984 kB / 362.5 MB, free: 8.691 MB / 302.1 MB Notification: Performance of FrontEnd: time 3.747e-06/0.1595, allocations: 0 / 362.5 MB, free: 8.691 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.607e-05/0.1596, allocations: 0 / 362.5 MB, free: 8.691 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.002609/0.1622, allocations: 1.258 MB / 363.7 MB, free: 7.367 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.796e-05/0.1622, allocations: 8.031 kB / 363.7 MB, free: 7.359 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001765/0.1624, allocations: 95.81 kB / 363.8 MB, free: 7.266 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008102/0.1632, allocations: 487.5 kB / 364.3 MB, free: 6.75 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.781e-05/0.1633, allocations: 45.69 kB / 364.3 MB, free: 6.703 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001174/0.1634, allocations: 68.28 kB / 364.4 MB, free: 6.637 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001357/0.1648, allocations: 0.6548 MB / 365.1 MB, free: 5.977 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.395e-05/0.1648, allocations: 0 / 365.1 MB, free: 5.977 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.89e-05/0.1649, allocations: 28 kB / 365.1 MB, free: 5.949 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.744e-05/0.1649, allocations: 16 kB / 365.1 MB, free: 5.934 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001613/0.1665, allocations: 0.6961 MB / 365.8 MB, free: 5.238 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.003823/0.1704, allocations: 2.374 MB / 368.2 MB, free: 2.707 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001358/0.1717, allocations: 0.5866 MB / 368.8 MB, free: 2.113 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006853/0.1724, allocations: 330 kB / 369.1 MB, free: 1.789 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.326e-05/0.1725, allocations: 4.438 kB / 369.1 MB, free: 1.781 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008997/0.1734, allocations: 429.4 kB / 369.5 MB, free: 1.336 MB / 302.1 MB Notification: Performance of pre-optimization done (n=54): time 2.195e-06/0.1734, allocations: 4 kB / 369.5 MB, free: 1.332 MB / 302.1 MB Notification: Performance of matching and sorting (n=94): time 0.3415/0.5149, allocations: 15.42 MB / 384.9 MB, free: 22.38 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000121/0.5151, allocations: 140.9 kB / 385.1 MB, free: 22.22 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001048/0.5162, allocations: 0.52 MB / 385.6 MB, free: 21.91 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002774/0.5165, allocations: 44.58 kB / 385.6 MB, free: 21.86 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003407/0.5168, allocations: 387.2 kB / 386 MB, free: 21.52 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003356/0.5171, allocations: 315.6 kB / 386.3 MB, free: 21.25 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004385/0.5176, allocations: 184.8 kB / 386.5 MB, free: 21.14 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001711/0.5178, allocations: 392.5 kB / 386.9 MB, free: 20.77 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002146/0.5199, allocations: 0.7228 MB / 387.6 MB, free: 20.41 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002003/0.5219, allocations: 0.9567 MB / 388.6 MB, free: 19.77 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003493/0.5254, allocations: 1.691 MB / 390.3 MB, free: 18.73 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.989e-06/0.5255, allocations: 0 / 390.3 MB, free: 18.73 MB / 302.1 MB Notification: Performance of matching and sorting (n=128) (initialization): time 0.0209/0.5464, allocations: 5.381 MB / 395.6 MB, free: 13.33 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.492e-05/0.5465, allocations: 67.39 kB / 395.7 MB, free: 13.25 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.775e-05/0.5465, allocations: 8 kB / 395.7 MB, free: 13.25 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.03096/0.5775, allocations: 6.848 MB / 402.6 MB, free: 6.391 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007114/0.5782, allocations: 143.8 kB / 402.7 MB, free: 6.25 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00614/0.5844, allocations: 3.149 MB / 405.8 MB, free: 3.047 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001704/0.5861, allocations: 187.8 kB / 406 MB, free: 2.863 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001067/0.5863, allocations: 51.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.00045/0.5867, allocations: 218.2 kB / 406.3 MB, free: 2.59 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001332/0.5869, allocations: 86.47 kB / 406.4 MB, free: 2.508 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02092/0.6078, allocations: 5.104 MB / 411.5 MB, free: 13.39 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.44e-05/0.6079, allocations: 8 kB / 411.5 MB, free: 13.38 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.184e-05/0.6079, allocations: 0 / 411.5 MB, free: 13.38 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.051e-05/0.6079, allocations: 7.922 kB / 411.5 MB, free: 13.38 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001772/0.6097, allocations: 1.108 MB / 412.6 MB, free: 12.24 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.345e-06/0.6097, allocations: 0 / 412.6 MB, free: 12.24 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005237/0.6102, allocations: 91.81 kB / 412.7 MB, free: 12.15 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.03371/0.644, allocations: 6.796 MB / 419.5 MB, free: 5.348 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000284/0.6443, allocations: 27.97 kB / 419.5 MB, free: 5.32 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006091/0.6504, allocations: 3.048 MB / 422.6 MB, free: 2.219 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.829e-06/0.6505, allocations: 7.938 kB / 422.6 MB, free: 2.211 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02453/0.675, allocations: 5.981 MB / 428.6 MB, free: 12.2 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004947/0.6756, allocations: 152 kB / 428.7 MB, free: 12.04 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002069/0.6758, allocations: 24.06 kB / 428.7 MB, free: 12.01 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001387/0.6772, allocations: 169.7 kB / 428.9 MB, free: 11.85 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000294/0.6775, allocations: 100.8 kB / 429 MB, free: 11.75 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.47e-05/0.6776, allocations: 30.83 kB / 429 MB, free: 11.72 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0005625/0.6782, allocations: 354.8 kB / 429.4 MB, free: 11.38 MB / 334.1 MB Notification: Performance of sort global known variables: time 3.11e-07/0.6782, allocations: 0 / 429.4 MB, free: 11.38 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0009771/0.6792, allocations: 263.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.0003223/0.6795, allocations: 127.2 kB / 429.8 MB, free: 10.99 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.006975/0.6865, allocations: 2.185 MB / 431.9 MB, free: 8.789 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 5.42e-06/0.6865, allocations: 0 / 431.9 MB, free: 8.789 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003453/0.69, allocations: 1.092 MB / 433 MB, free: 7.703 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000886/0.6909, allocations: 138.1 kB / 433.2 MB, free: 7.57 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00394/0.6948, allocations: 1.767 MB / 434.9 MB, free: 5.793 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004649/0.6953, allocations: 0.9507 MB / 435.9 MB, free: 4.816 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0002423/0.6956, allocations: 55.36 kB / 435.9 MB, free: 4.762 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001209/0.6957, allocations: 35.44 kB / 436 MB, free: 4.727 MB / 334.1 MB Notification: Performance of SimCode: time 5.1e-07/0.6957, allocations: 0 / 436 MB, free: 4.727 MB / 334.1 MB Notification: Performance of Templates: time 0.03264/0.7283, allocations: 22.38 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 cvode -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