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.0007519/0.000752, allocations: 93.47 kB / 17.31 MB, free: 6.535 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.0007917/0.0007917, allocations: 175.4 kB / 18.21 MB, free: 5.684 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.26/1.26, allocations: 223.3 MB / 242.3 MB, free: 196 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002372/0.0002372, allocations: 8 kB / 302.1 MB, free: 6.133 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0752/0.07545, allocations: 50.41 MB / 352.5 MB, free: 3.711 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate): time 0.004227/0.07971, allocations: 4.535 MB / 357 MB, free: 15.15 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001706/0.08144, allocations: 1.26 MB / 358.3 MB, free: 13.88 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002057/0.08166, allocations: 12 kB / 358.3 MB, free: 13.87 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001899/0.08186, allocations: 99.16 kB / 358.4 MB, free: 13.77 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003873/0.08225, allocations: 226.1 kB / 358.6 MB, free: 13.55 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004924/0.08275, allocations: 263.7 kB / 358.9 MB, free: 13.29 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008083/0.08357, allocations: 1.036 MB / 359.9 MB, free: 12.25 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000306/0.08389, allocations: 223.4 kB / 360.1 MB, free: 12.02 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003283/0.08422, allocations: 358.5 kB / 360.5 MB, free: 11.66 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004165/0.08465, allocations: 418 kB / 360.9 MB, free: 11.25 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 7.911e-05/0.08474, allocations: 44 kB / 360.9 MB, free: 11.21 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001544/0.0849, allocations: 79.97 kB / 361 MB, free: 11.13 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00012/0.08503, allocations: 151.3 kB / 361.1 MB, free: 10.98 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003252/0.08536, allocations: 427.5 kB / 361.6 MB, free: 10.56 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005584/0.08592, allocations: 0.7208 MB / 362.3 MB, free: 9.836 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.949e-06/0.08594, allocations: 4 kB / 362.3 MB, free: 9.832 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.232e-06/0.08594, allocations: 0 / 362.3 MB, free: 9.832 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.684e-06/0.08596, allocations: 0 / 362.3 MB, free: 9.832 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.002145/0.08811, allocations: 1.145 MB / 363.4 MB, free: 8.617 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.383e-05/0.08815, allocations: 12.03 kB / 363.4 MB, free: 8.605 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001364/0.08829, allocations: 95.81 kB / 363.5 MB, free: 8.512 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005268/0.08883, allocations: 483.5 kB / 364 MB, free: 7.996 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.169e-05/0.08888, allocations: 49.69 kB / 364.1 MB, free: 7.949 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001076/0.08899, allocations: 60.38 kB / 364.1 MB, free: 7.891 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001425/0.09043, allocations: 0.6861 MB / 364.8 MB, free: 7.199 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.842e-05/0.09046, allocations: 3.906 kB / 364.8 MB, free: 7.195 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.491e-05/0.09053, allocations: 24 kB / 364.8 MB, free: 7.172 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.507e-05/0.09055, allocations: 23.94 kB / 364.9 MB, free: 7.148 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001804/0.09236, allocations: 0.7547 MB / 365.6 MB, free: 6.391 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.003677/0.09605, allocations: 2.421 MB / 368 MB, free: 3.816 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001537/0.09759, allocations: 0.6452 MB / 368.7 MB, free: 3.164 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008084/0.09841, allocations: 361.9 kB / 369 MB, free: 2.809 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.643e-05/0.09847, allocations: 16.42 kB / 369 MB, free: 2.789 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009791/0.09946, allocations: 449.5 kB / 369.5 MB, free: 2.324 MB / 302.1 MB Notification: Performance of pre-optimization done (n=54): time 1.794e-06/0.09947, allocations: 0 / 369.5 MB, free: 2.324 MB / 302.1 MB Notification: Performance of matching and sorting (n=94): time 0.2059/0.3054, allocations: 16.74 MB / 386.2 MB, free: 21.78 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.264e-05/0.3055, allocations: 149.5 kB / 386.4 MB, free: 21.61 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005119/0.306, allocations: 0.5167 MB / 386.9 MB, free: 21.3 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 9.558e-05/0.3061, allocations: 43.2 kB / 386.9 MB, free: 21.26 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001719/0.3063, allocations: 391.5 kB / 387.3 MB, free: 20.91 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001882/0.3065, allocations: 311.2 kB / 387.6 MB, free: 20.65 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000126/0.3066, allocations: 84.58 kB / 387.7 MB, free: 20.59 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 6.925e-05/0.3067, allocations: 385.6 kB / 388.1 MB, free: 20.22 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00202/0.3087, allocations: 0.8024 MB / 388.9 MB, free: 19.85 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002045/0.3108, allocations: 1.032 MB / 389.9 MB, free: 19.2 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00389/0.3147, allocations: 1.848 MB / 391.8 MB, free: 17.52 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.797e-06/0.3147, allocations: 4 kB / 391.8 MB, free: 17.51 MB / 302.1 MB Notification: Performance of matching and sorting (n=128) (initialization): time 0.02348/0.3382, allocations: 5.751 MB / 397.5 MB, free: 11.74 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.583e-05/0.3382, allocations: 59.41 kB / 397.6 MB, free: 11.67 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.748e-06/0.3382, allocations: 7.828 kB / 397.6 MB, free: 11.66 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.03584/0.3741, allocations: 7.321 MB / 404.9 MB, free: 4.34 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006981/0.3748, allocations: 179.7 kB / 405.1 MB, free: 4.164 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006155/0.381, allocations: 3.228 MB / 408.3 MB, free: 0.8828 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001614/0.3826, allocations: 231.7 kB / 408.5 MB, free: 0.6562 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.149e-05/0.3827, allocations: 43.98 kB / 408.6 MB, free: 0.6133 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.000334/0.383, allocations: 223.5 kB / 408.8 MB, free: 396 kB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000124/0.3832, allocations: 90.94 kB / 408.9 MB, free: 304 kB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02526/0.4084, allocations: 5.469 MB / 414.4 MB, free: 10.82 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.077e-06/0.4085, allocations: 11.09 kB / 414.4 MB, free: 10.81 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.598e-06/0.4085, allocations: 0 / 414.4 MB, free: 10.81 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.4e-05/0.4085, allocations: 11.97 kB / 414.4 MB, free: 10.8 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001235/0.4097, allocations: 1.103 MB / 415.5 MB, free: 9.676 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.557e-06/0.4097, allocations: 0 / 415.5 MB, free: 9.676 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005969/0.4103, allocations: 127.8 kB / 415.6 MB, free: 9.551 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.03825/0.4486, allocations: 7.289 MB / 422.9 MB, free: 2.258 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.325e-05/0.4487, allocations: 27.97 kB / 422.9 MB, free: 2.23 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005917/0.4546, allocations: 3.096 MB / 426 MB, free: 15.08 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.687e-06/0.4547, allocations: 7.938 kB / 426 MB, free: 15.07 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02724/0.4819, allocations: 6.419 MB / 432.4 MB, free: 8.629 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001432/0.4821, allocations: 148.1 kB / 432.6 MB, free: 8.465 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001467/0.4822, allocations: 20.06 kB / 432.6 MB, free: 8.445 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001588/0.4838, allocations: 215.7 kB / 432.8 MB, free: 8.234 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002502/0.4841, allocations: 100.8 kB / 432.9 MB, free: 8.133 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.72e-05/0.4842, allocations: 39.47 kB / 433 MB, free: 8.098 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0003701/0.4846, allocations: 354.8 kB / 433.3 MB, free: 7.754 MB / 334.1 MB Notification: Performance of sort global known variables: time 2.11e-07/0.4846, allocations: 0 / 433.3 MB, free: 7.754 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0007215/0.4853, allocations: 256 kB / 433.5 MB, free: 7.504 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.0002392/0.4855, allocations: 138.5 kB / 433.7 MB, free: 7.367 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.007355/0.4929, allocations: 2.34 MB / 436 MB, free: 5.004 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.675e-06/0.4929, allocations: 0 / 436 MB, free: 5.004 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003775/0.4967, allocations: 1.157 MB / 437.2 MB, free: 3.852 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000674/0.4974, allocations: 120.5 kB / 437.3 MB, free: 3.734 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003891/0.5013, allocations: 2.221 MB / 439.5 MB, free: 1.492 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004241/0.5017, allocations: 0.951 MB / 440.5 MB, free: 0.5117 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001602/0.5019, allocations: 35.44 kB / 440.5 MB, free: 488 kB / 334.1 MB Notification: Performance of SimCode: time 3.3e-07/0.5019, allocations: 0 / 440.5 MB, free: 488 kB / 334.1 MB Notification: Performance of Templates: time 0.01978/0.5217, allocations: 17.31 MB / 457.8 MB, free: 15.2 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 -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