Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingPNP_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.HeatingPNP_NORGate,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|HeatCapacitor1.T",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate") translateModel(Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|HeatCapacitor1.T",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000864/0.000864, allocations: 91.8 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.0009448/0.0009448, allocations: 175.3 kB / 18.21 MB, free: 5.68 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: 208 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002295/0.0002295, allocations: 13.06 kB / 302.1 MB, free: 6.152 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07034/0.07058, allocations: 50.41 MB / 352.5 MB, free: 3.723 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate): time 0.004164/0.07476, allocations: 4.523 MB / 357 MB, free: 15.18 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002067/0.07684, allocations: 1.264 MB / 358.3 MB, free: 13.91 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00033/0.07718, allocations: 12 kB / 358.3 MB, free: 13.89 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002328/0.07742, allocations: 87.23 kB / 358.4 MB, free: 13.81 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004929/0.07792, allocations: 226.1 kB / 358.6 MB, free: 13.59 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005757/0.07851, allocations: 263.7 kB / 358.8 MB, free: 13.33 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009452/0.07946, allocations: 1.036 MB / 359.9 MB, free: 12.29 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003268/0.0798, allocations: 223.4 kB / 360.1 MB, free: 12.05 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000417/0.08022, allocations: 366.5 kB / 360.5 MB, free: 11.69 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004723/0.0807, allocations: 418 kB / 360.9 MB, free: 11.28 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001001/0.08081, allocations: 44 kB / 360.9 MB, free: 11.24 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001708/0.08099, allocations: 71.97 kB / 361 MB, free: 11.17 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001302/0.08113, allocations: 155.3 kB / 361.1 MB, free: 11.02 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003487/0.08148, allocations: 423.5 kB / 361.5 MB, free: 10.59 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005702/0.08206, allocations: 0.7208 MB / 362.3 MB, free: 9.871 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.144e-06/0.08207, allocations: 0 / 362.3 MB, free: 9.871 MB / 302.1 MB Notification: Performance of FrontEnd: time 6.81e-07/0.08208, allocations: 0 / 362.3 MB, free: 9.871 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.504e-05/0.0821, allocations: 0 / 362.3 MB, free: 9.871 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.002201/0.08431, allocations: 1.153 MB / 363.4 MB, free: 8.648 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.922e-05/0.08434, allocations: 11.97 kB / 363.4 MB, free: 8.637 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001457/0.08449, allocations: 95.81 kB / 363.5 MB, free: 8.543 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005361/0.08504, allocations: 483.5 kB / 364 MB, free: 8.027 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.04e-05/0.08509, allocations: 45.69 kB / 364 MB, free: 7.984 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001098/0.0852, allocations: 68.38 kB / 364.1 MB, free: 7.918 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001422/0.08663, allocations: 0.6822 MB / 364.8 MB, free: 7.23 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.064e-05/0.08667, allocations: 3.906 kB / 364.8 MB, free: 7.227 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.724e-05/0.08674, allocations: 28 kB / 364.8 MB, free: 7.199 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.293e-05/0.08676, allocations: 16 kB / 364.8 MB, free: 7.184 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001785/0.08855, allocations: 0.7547 MB / 365.6 MB, free: 6.426 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.003756/0.09231, allocations: 2.425 MB / 368 MB, free: 3.848 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001508/0.09383, allocations: 0.6413 MB / 368.7 MB, free: 3.199 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000797/0.09464, allocations: 362 kB / 369 MB, free: 2.844 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.401e-05/0.0947, allocations: 12.42 kB / 369 MB, free: 2.828 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009647/0.09567, allocations: 456.8 kB / 369.5 MB, free: 2.359 MB / 302.1 MB Notification: Performance of pre-optimization done (n=54): time 1.943e-06/0.09568, allocations: 4 kB / 369.5 MB, free: 2.355 MB / 302.1 MB Notification: Performance of matching and sorting (n=94): time 0.2059/0.3016, allocations: 16.74 MB / 386.2 MB, free: 21.76 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.661e-05/0.3017, allocations: 142 kB / 386.3 MB, free: 21.61 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005081/0.3022, allocations: 0.5204 MB / 386.9 MB, free: 21.29 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 9.543e-05/0.3023, allocations: 44.58 kB / 386.9 MB, free: 21.25 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00017/0.3025, allocations: 390.9 kB / 387.3 MB, free: 20.9 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001778/0.3027, allocations: 309.3 kB / 387.6 MB, free: 20.64 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001266/0.3028, allocations: 88.2 kB / 387.7 MB, free: 20.57 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 7.043e-05/0.3029, allocations: 393.8 kB / 388.1 MB, free: 20.2 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001992/0.3049, allocations: 0.7934 MB / 388.9 MB, free: 19.84 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002021/0.3069, allocations: 1.032 MB / 389.9 MB, free: 19.19 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003839/0.3108, allocations: 1.852 MB / 391.7 MB, free: 17.54 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.388e-06/0.3108, allocations: 7.656 kB / 391.8 MB, free: 17.54 MB / 302.1 MB Notification: Performance of matching and sorting (n=128) (initialization): time 0.02343/0.3342, allocations: 5.746 MB / 397.5 MB, free: 11.77 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.477e-05/0.3343, allocations: 63.41 kB / 397.6 MB, free: 11.7 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.153e-05/0.3343, allocations: 11.98 kB / 397.6 MB, free: 11.68 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0339/0.3682, allocations: 7.32 MB / 404.9 MB, free: 4.363 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006455/0.3689, allocations: 183.7 kB / 405.1 MB, free: 4.184 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005986/0.3749, allocations: 3.208 MB / 408.3 MB, free: 0.9219 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00156/0.3764, allocations: 228.6 kB / 408.5 MB, free: 0.6992 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.311e-05/0.3765, allocations: 48.59 kB / 408.6 MB, free: 0.6523 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.0003183/0.3769, allocations: 229.7 kB / 408.8 MB, free: 432 kB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001225/0.377, allocations: 81.95 kB / 408.9 MB, free: 352 kB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0244/0.4014, allocations: 5.48 MB / 414.3 MB, free: 10.85 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.896e-06/0.4014, allocations: 8 kB / 414.3 MB, free: 10.84 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.578e-06/0.4014, allocations: 0 / 414.3 MB, free: 10.84 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.05e-05/0.4015, allocations: 3.984 kB / 414.3 MB, free: 10.84 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001241/0.4027, allocations: 1.107 MB / 415.5 MB, free: 9.711 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.887e-06/0.4027, allocations: 0 / 415.5 MB, free: 9.711 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005928/0.4033, allocations: 127.9 kB / 415.6 MB, free: 9.586 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.03682/0.4401, allocations: 7.296 MB / 422.9 MB, free: 2.285 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.87e-05/0.4402, allocations: 31.91 kB / 422.9 MB, free: 2.254 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005768/0.446, allocations: 3.072 MB / 426 MB, free: 15.12 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.462e-06/0.446, allocations: 0 / 426 MB, free: 15.12 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02618/0.4722, allocations: 6.44 MB / 432.4 MB, free: 8.664 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000128/0.4724, allocations: 148.1 kB / 432.6 MB, free: 8.5 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001412/0.4725, allocations: 16 kB / 432.6 MB, free: 8.484 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001506/0.474, allocations: 211.8 kB / 432.8 MB, free: 8.277 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002382/0.4743, allocations: 96.86 kB / 432.9 MB, free: 8.18 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.087e-05/0.4744, allocations: 35.97 kB / 432.9 MB, free: 8.145 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0003567/0.4747, allocations: 358.8 kB / 433.3 MB, free: 7.797 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.4747, allocations: 3.5 kB / 433.3 MB, free: 7.797 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0006784/0.4754, allocations: 256 kB / 433.5 MB, free: 7.547 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.0002168/0.4756, allocations: 131 kB / 433.6 MB, free: 7.414 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.007164/0.4828, allocations: 2.338 MB / 436 MB, free: 5.043 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.825e-06/0.4828, allocations: 5.312 kB / 436 MB, free: 5.039 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003675/0.4865, allocations: 1.151 MB / 437.1 MB, free: 3.895 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006577/0.4872, allocations: 122.1 kB / 437.3 MB, free: 3.773 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003611/0.4908, allocations: 2.247 MB / 439.5 MB, free: 1.504 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004237/0.4912, allocations: 0.9509 MB / 440.5 MB, free: 0.5234 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00016/0.4914, allocations: 35.42 kB / 440.5 MB, free: 500 kB / 334.1 MB Notification: Performance of SimCode: time 3.01e-07/0.4914, allocations: 0 / 440.5 MB, free: 500 kB / 334.1 MB Notification: Performance of Templates: time 0.01995/0.5114, allocations: 17.3 MB / 457.8 MB, free: 15.22 MB / 366.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.sim & ./Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/HeatingPNP_NORGate/HeatingPNP_NORGate.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches