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.001346/0.001347, allocations: 109.1 kB / 17.06 MB, free: 6.023 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.001394/0.001394, allocations: 191 kB / 18 MB, free: 5.105 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.491/1.491, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001551/0.001551, allocations: 43.94 kB / 351.3 MB, free: 3.234 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4224/0.4239, allocations: 49.44 MB / 400.7 MB, free: 8.734 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate): time 0.006785/0.4308, allocations: 4.959 MB / 405.7 MB, free: 3.895 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002937/0.4337, allocations: 1.268 MB / 407 MB, free: 2.617 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004137/0.4342, allocations: 12 kB / 407 MB, free: 2.605 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000359/0.4345, allocations: 122.7 kB / 407.1 MB, free: 2.484 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005819/0.4352, allocations: 265.7 kB / 407.4 MB, free: 2.223 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008733/0.4361, allocations: 311.5 kB / 407.7 MB, free: 1.918 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001224/0.4373, allocations: 1.103 MB / 408.8 MB, free: 0.8125 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004729/0.4378, allocations: 266.5 kB / 409 MB, free: 0.5273 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005324/0.4383, allocations: 418.5 kB / 409.4 MB, free: 120 kB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000614/0.439, allocations: 466.1 kB / 409.9 MB, free: 15.66 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000131/0.4391, allocations: 88 kB / 410 MB, free: 15.57 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002381/0.4394, allocations: 112 kB / 410.1 MB, free: 15.46 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002165/0.4396, allocations: 195.3 kB / 410.3 MB, free: 15.27 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000473/0.4401, allocations: 445.8 kB / 410.7 MB, free: 14.83 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001071/0.4411, allocations: 1.005 MB / 411.7 MB, free: 13.83 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.52e-06/0.4412, allocations: 3.938 kB / 411.7 MB, free: 13.83 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.713e-06/0.4412, allocations: 4 kB / 411.7 MB, free: 13.82 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.435e-05/0.4412, allocations: 0 / 411.7 MB, free: 13.82 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.002465/0.4437, allocations: 1.254 MB / 413 MB, free: 12.5 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.619e-05/0.4437, allocations: 8.031 kB / 413 MB, free: 12.49 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001613/0.4439, allocations: 91.91 kB / 413.1 MB, free: 12.4 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006753/0.4446, allocations: 491.5 kB / 413.6 MB, free: 11.88 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.535e-05/0.4446, allocations: 49.69 kB / 413.6 MB, free: 11.83 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001235/0.4448, allocations: 64.38 kB / 413.7 MB, free: 11.77 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001356/0.4461, allocations: 0.6509 MB / 414.3 MB, free: 11.11 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.17e-05/0.4462, allocations: 0 / 414.3 MB, free: 11.11 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.264e-05/0.4462, allocations: 28 kB / 414.3 MB, free: 11.09 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.796e-05/0.4463, allocations: 19.98 kB / 414.4 MB, free: 11.07 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001588/0.4479, allocations: 0.6961 MB / 415.1 MB, free: 10.37 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.003726/0.4516, allocations: 2.378 MB / 417.4 MB, free: 7.84 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001377/0.453, allocations: 0.5827 MB / 418 MB, free: 7.246 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006723/0.4537, allocations: 330 kB / 418.3 MB, free: 6.922 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.714e-05/0.4537, allocations: 12.44 kB / 418.4 MB, free: 6.91 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008555/0.4546, allocations: 421.3 kB / 418.8 MB, free: 6.473 MB / 334.1 MB Notification: Performance of pre-optimization done (n=54): time 1.973e-06/0.4546, allocations: 4 kB / 418.8 MB, free: 6.469 MB / 334.1 MB Notification: Performance of matching and sorting (n=94): time 0.06573/0.5203, allocations: 15.42 MB / 434.2 MB, free: 6.953 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001377/0.5205, allocations: 149.4 kB / 434.3 MB, free: 6.777 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008377/0.5214, allocations: 0.5146 MB / 434.9 MB, free: 6.25 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002627/0.5217, allocations: 49.7 kB / 434.9 MB, free: 6.195 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003404/0.522, allocations: 387.8 kB / 435.3 MB, free: 5.809 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003166/0.5223, allocations: 311.5 kB / 435.6 MB, free: 5.5 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003697/0.5227, allocations: 194.4 kB / 435.8 MB, free: 5.305 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001797/0.5229, allocations: 386.7 kB / 436.2 MB, free: 4.918 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001899/0.5248, allocations: 0.7244 MB / 436.9 MB, free: 4.191 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001993/0.5268, allocations: 0.9473 MB / 437.8 MB, free: 3.16 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003816/0.5306, allocations: 1.704 MB / 439.5 MB, free: 1.359 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.859e-06/0.5307, allocations: 0 / 439.5 MB, free: 1.359 MB / 350.1 MB Notification: Performance of matching and sorting (n=128) (initialization): time 0.02282/0.5535, allocations: 5.37 MB / 444.9 MB, free: 11.96 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.422e-05/0.5536, allocations: 59.41 kB / 445 MB, free: 11.89 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.295e-05/0.5536, allocations: 8 kB / 445 MB, free: 11.88 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.03555/0.5892, allocations: 6.849 MB / 451.8 MB, free: 5.016 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008527/0.5901, allocations: 155.7 kB / 452 MB, free: 4.863 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00737/0.5975, allocations: 3.161 MB / 455.1 MB, free: 1.648 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001686/0.5992, allocations: 183.8 kB / 455.3 MB, free: 1.469 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001231/0.5994, allocations: 43.98 kB / 455.3 MB, free: 1.426 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.000496/0.5999, allocations: 238.1 kB / 455.6 MB, free: 1.184 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001497/0.6, allocations: 75.06 kB / 455.7 MB, free: 1.109 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02129/0.6213, allocations: 5.099 MB / 460.8 MB, free: 11.99 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.235e-05/0.6214, allocations: 11.98 kB / 460.8 MB, free: 11.98 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.7e-05/0.6214, allocations: 4 kB / 460.8 MB, free: 11.98 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.466e-05/0.6214, allocations: 11.92 kB / 460.8 MB, free: 11.96 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001637/0.6231, allocations: 1.104 MB / 461.9 MB, free: 10.81 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.54e-06/0.6231, allocations: 0 / 461.9 MB, free: 10.81 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004953/0.6236, allocations: 95.88 kB / 462 MB, free: 10.71 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.03202/0.6556, allocations: 6.793 MB / 468.8 MB, free: 3.906 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000322/0.656, allocations: 27.97 kB / 468.8 MB, free: 3.879 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006188/0.6622, allocations: 3.052 MB / 471.9 MB, free: 0.7695 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.699e-06/0.6623, allocations: 0 / 471.9 MB, free: 0.7695 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0235/0.6858, allocations: 5.987 MB / 477.8 MB, free: 10.75 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002727/0.6861, allocations: 144.1 kB / 478 MB, free: 10.59 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001486/0.6862, allocations: 19.98 kB / 478 MB, free: 10.57 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001277/0.6875, allocations: 163.9 kB / 478.2 MB, free: 10.41 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002672/0.6878, allocations: 96.88 kB / 478.3 MB, free: 10.32 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001047/0.6879, allocations: 31.97 kB / 478.3 MB, free: 10.29 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0004454/0.6884, allocations: 358.8 kB / 478.6 MB, free: 9.934 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.6884, allocations: 0 / 478.6 MB, free: 9.934 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0008018/0.6892, allocations: 260 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.000285/0.6895, allocations: 131.2 kB / 479 MB, free: 9.543 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.006578/0.6961, allocations: 2.189 MB / 481.2 MB, free: 7.332 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 4.809e-06/0.6961, allocations: 384 / 481.2 MB, free: 7.332 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00335/0.6995, allocations: 1.101 MB / 482.3 MB, free: 6.23 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007867/0.7003, allocations: 126.2 kB / 482.4 MB, free: 6.102 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00385/0.7041, allocations: 1.773 MB / 484.2 MB, free: 4.309 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004917/0.7046, allocations: 0.9468 MB / 485.1 MB, free: 3.336 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0002653/0.7049, allocations: 62.25 kB / 485.2 MB, free: 3.273 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001234/0.705, allocations: 35.44 kB / 485.2 MB, free: 3.238 MB / 398.1 MB Notification: Performance of SimCode: time 8.11e-07/0.705, allocations: 3.938 kB / 485.2 MB, free: 3.234 MB / 398.1 MB Notification: Performance of Templates: time 0.04144/0.7465, 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