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.00113/0.00113, allocations: 111.9 kB / 17.74 MB, free: 5.359 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.001277/0.001277, allocations: 193.5 kB / 18.67 MB, free: 4.434 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.342/1.342, allocations: 222.9 MB / 242.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001018/0.001018, allocations: 55.92 kB / 352 MB, free: 3.242 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2499/0.2509, allocations: 49.44 MB / 401.4 MB, free: 8.762 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate): time 0.005555/0.2565, allocations: 4.944 MB / 406.4 MB, free: 3.926 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002617/0.2592, allocations: 1.256 MB / 407.6 MB, free: 2.66 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006347/0.2598, allocations: 11.94 kB / 407.6 MB, free: 2.648 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004027/0.2603, allocations: 130.7 kB / 407.8 MB, free: 2.52 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000712/0.261, allocations: 249.7 kB / 408 MB, free: 2.273 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008416/0.2619, allocations: 311.4 kB / 408.3 MB, free: 1.969 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001259/0.2631, allocations: 1.107 MB / 409.4 MB, free: 0.8594 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004208/0.2636, allocations: 262.5 kB / 409.7 MB, free: 0.5781 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006354/0.2642, allocations: 414.5 kB / 410.1 MB, free: 176 kB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007243/0.265, allocations: 470 kB / 410.5 MB, free: 15.71 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002153/0.2652, allocations: 88 kB / 410.6 MB, free: 15.62 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003201/0.2655, allocations: 115.9 kB / 410.7 MB, free: 15.51 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002008/0.2657, allocations: 191.3 kB / 410.9 MB, free: 15.32 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005568/0.2663, allocations: 445.8 kB / 411.4 MB, free: 14.89 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001006/0.2673, allocations: 1.002 MB / 412.4 MB, free: 13.89 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.749e-06/0.2673, allocations: 4 kB / 412.4 MB, free: 13.88 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.944e-06/0.2673, allocations: 0 / 412.4 MB, free: 13.88 MB / 334.1 MB Notification: Performance of Transformations before backend: time 4.006e-05/0.2674, allocations: 3.984 kB / 412.4 MB, free: 13.88 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.002752/0.2701, allocations: 1.254 MB / 413.6 MB, free: 12.55 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.79e-05/0.2702, allocations: 16.03 kB / 413.6 MB, free: 12.54 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001908/0.2704, allocations: 87.91 kB / 413.7 MB, free: 12.45 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007192/0.2711, allocations: 487.5 kB / 414.2 MB, free: 11.94 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.723e-05/0.2712, allocations: 53.67 kB / 414.3 MB, free: 11.88 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001174/0.2713, allocations: 60.38 kB / 414.3 MB, free: 11.82 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001403/0.2727, allocations: 0.6626 MB / 415 MB, free: 11.16 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.762e-05/0.2727, allocations: 0 / 415 MB, free: 11.16 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.027e-05/0.2728, allocations: 24 kB / 415 MB, free: 11.13 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.223e-05/0.2728, allocations: 16 kB / 415 MB, free: 11.12 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001622/0.2745, allocations: 0.6961 MB / 415.7 MB, free: 10.42 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.003877/0.2783, allocations: 2.374 MB / 418.1 MB, free: 7.895 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001421/0.2798, allocations: 0.5944 MB / 418.7 MB, free: 7.289 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007056/0.2805, allocations: 330 kB / 419 MB, free: 6.965 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.997e-05/0.2806, allocations: 8.438 kB / 419 MB, free: 6.957 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008952/0.2815, allocations: 429.3 kB / 419.4 MB, free: 6.512 MB / 334.1 MB Notification: Performance of pre-optimization done (n=54): time 2.554e-06/0.2815, allocations: 0 / 419.4 MB, free: 6.512 MB / 334.1 MB Notification: Performance of matching and sorting (n=94): time 0.06748/0.349, allocations: 15.41 MB / 434.8 MB, free: 7.008 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.802e-05/0.3491, allocations: 145.5 kB / 435 MB, free: 6.836 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006983/0.3498, allocations: 0.5185 MB / 435.5 MB, free: 6.305 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002316/0.3501, allocations: 45.7 kB / 435.5 MB, free: 6.254 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003052/0.3504, allocations: 387.8 kB / 435.9 MB, free: 5.867 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003441/0.3507, allocations: 315.5 kB / 436.2 MB, free: 5.555 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004022/0.3512, allocations: 190.4 kB / 436.4 MB, free: 5.363 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001543/0.3513, allocations: 394.6 kB / 436.8 MB, free: 4.969 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002023/0.3533, allocations: 0.7244 MB / 437.5 MB, free: 4.242 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002122/0.3555, allocations: 0.9551 MB / 438.5 MB, free: 3.203 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003997/0.3595, allocations: 1.693 MB / 440.2 MB, free: 1.414 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.736e-06/0.3595, allocations: 4 kB / 440.2 MB, free: 1.41 MB / 350.1 MB Notification: Performance of matching and sorting (n=128) (initialization): time 0.02269/0.3822, allocations: 5.362 MB / 445.5 MB, free: 12.02 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.506e-05/0.3823, allocations: 63.41 kB / 445.6 MB, free: 11.94 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.708e-05/0.3824, allocations: 7.984 kB / 445.6 MB, free: 11.93 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.03296/0.4153, allocations: 6.833 MB / 452.4 MB, free: 5.086 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000732/0.4161, allocations: 143.7 kB / 452.6 MB, free: 4.945 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006001/0.4221, allocations: 3.024 MB / 455.6 MB, free: 1.867 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00169/0.4239, allocations: 175.8 kB / 455.8 MB, free: 1.695 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001738/0.4241, allocations: 47.97 kB / 455.8 MB, free: 1.648 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.0004691/0.4245, allocations: 230.1 kB / 456 MB, free: 1.414 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001999/0.4247, allocations: 79.06 kB / 456.1 MB, free: 1.336 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02168/0.4464, allocations: 5.107 MB / 461.2 MB, free: 12.21 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.877e-05/0.4465, allocations: 8 kB / 461.2 MB, free: 12.2 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.598e-06/0.4465, allocations: 0 / 461.2 MB, free: 12.2 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.733e-05/0.4466, allocations: 3.984 kB / 461.2 MB, free: 12.2 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001788/0.4483, allocations: 1.112 MB / 462.4 MB, free: 11.04 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.247e-05/0.4484, allocations: 0 / 462.4 MB, free: 11.04 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000564/0.449, allocations: 99.86 kB / 462.5 MB, free: 10.94 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.03268/0.4816, allocations: 6.785 MB / 469.2 MB, free: 4.137 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002609/0.482, allocations: 23.97 kB / 469.3 MB, free: 4.113 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006122/0.4881, allocations: 3.04 MB / 472.3 MB, free: 1.016 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.277e-06/0.4881, allocations: 0 / 472.3 MB, free: 1.016 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02421/0.5124, allocations: 5.979 MB / 478.3 MB, free: 11 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002743/0.5127, allocations: 152.2 kB / 478.4 MB, free: 10.84 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002868/0.513, allocations: 16 kB / 478.4 MB, free: 10.82 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001439/0.5144, allocations: 171.8 kB / 478.6 MB, free: 10.65 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003032/0.5148, allocations: 92.88 kB / 478.7 MB, free: 10.56 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000114/0.5149, allocations: 31.98 kB / 478.7 MB, free: 10.53 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0004731/0.5154, allocations: 358.8 kB / 479.1 MB, free: 10.18 MB / 398.1 MB Notification: Performance of sort global known variables: time 2.71e-07/0.5154, allocations: 0 / 479.1 MB, free: 10.18 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0008719/0.5163, allocations: 264 kB / 479.3 MB, free: 9.922 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.0002995/0.5166, allocations: 128.7 kB / 479.5 MB, free: 9.789 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.006166/0.5227, allocations: 2.049 MB / 481.5 MB, free: 7.719 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 6.301e-06/0.5228, allocations: 0 / 481.5 MB, free: 7.719 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003632/0.5264, allocations: 1.089 MB / 482.6 MB, free: 6.629 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008917/0.5273, allocations: 130.2 kB / 482.7 MB, free: 6.496 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003962/0.5313, allocations: 1.825 MB / 484.6 MB, free: 4.641 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005479/0.5319, allocations: 0.9507 MB / 485.5 MB, free: 3.664 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001908/0.5321, allocations: 39.44 kB / 485.5 MB, free: 3.625 MB / 398.1 MB Notification: Performance of SimCode: time 8.72e-07/0.5321, allocations: 0 / 485.5 MB, free: 3.625 MB / 398.1 MB Notification: Performance of Templates: time 0.0254/0.5575, allocations: 17.4 MB / 0.4912 GB, free: 2.25 MB / 414.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