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.001221/0.001221, allocations: 111.2 kB / 17.74 MB, free: 5.355 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.001203/0.001203, allocations: 188.1 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.29/1.29, allocations: 222.9 MB / 242.4 MB, free: 15.14 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00104/0.00104, allocations: 52.06 kB / 352 MB, free: 3.207 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2343/0.2353, allocations: 49.44 MB / 401.4 MB, free: 8.742 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate): time 0.005304/0.2407, allocations: 4.94 MB / 406.4 MB, free: 3.898 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.00227/0.243, allocations: 1.256 MB / 407.6 MB, free: 2.633 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003541/0.2434, allocations: 11.94 kB / 407.6 MB, free: 2.621 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000277/0.2437, allocations: 130.7 kB / 407.8 MB, free: 2.492 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004466/0.2441, allocations: 249.6 kB / 408 MB, free: 2.246 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006414/0.2448, allocations: 315.4 kB / 408.3 MB, free: 1.938 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009879/0.2458, allocations: 1.099 MB / 409.4 MB, free: 0.8359 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003794/0.2462, allocations: 262.5 kB / 409.7 MB, free: 0.5547 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004982/0.2467, allocations: 426.5 kB / 410.1 MB, free: 140 kB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004967/0.2472, allocations: 474.1 kB / 410.5 MB, free: 15.67 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001298/0.2473, allocations: 88 kB / 410.6 MB, free: 15.58 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002074/0.2475, allocations: 104 kB / 410.7 MB, free: 15.48 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000158/0.2477, allocations: 199.3 kB / 410.9 MB, free: 15.29 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000371/0.2481, allocations: 445.8 kB / 411.4 MB, free: 14.85 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009009/0.249, allocations: 1.005 MB / 412.4 MB, free: 13.85 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.672e-06/0.249, allocations: 0 / 412.4 MB, free: 13.85 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.613e-06/0.249, allocations: 3.938 kB / 412.4 MB, free: 13.84 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.403e-05/0.249, allocations: 0 / 412.4 MB, free: 13.84 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.002462/0.2515, allocations: 1.262 MB / 413.6 MB, free: 12.51 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.642e-05/0.2516, allocations: 8.031 kB / 413.6 MB, free: 12.5 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001517/0.2517, allocations: 91.91 kB / 413.7 MB, free: 12.41 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000667/0.2524, allocations: 487.5 kB / 414.2 MB, free: 11.9 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.231e-05/0.2524, allocations: 49.62 kB / 414.3 MB, free: 11.85 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001045/0.2526, allocations: 64.38 kB / 414.3 MB, free: 11.79 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001306/0.2539, allocations: 0.6548 MB / 415 MB, free: 11.12 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.983e-05/0.2539, allocations: 0 / 415 MB, free: 11.12 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.826e-05/0.254, allocations: 28 kB / 415 MB, free: 11.1 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.477e-05/0.254, allocations: 16 kB / 415 MB, free: 11.08 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001592/0.2556, allocations: 0.6961 MB / 415.7 MB, free: 10.39 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.2593, allocations: 2.382 MB / 418.1 MB, free: 7.852 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001347/0.2607, allocations: 0.5857 MB / 418.7 MB, free: 7.258 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006729/0.2614, allocations: 334 kB / 419 MB, free: 6.93 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.214e-05/0.2614, allocations: 4.438 kB / 419 MB, free: 6.926 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000855/0.2623, allocations: 429.3 kB / 419.4 MB, free: 6.48 MB / 334.1 MB Notification: Performance of pre-optimization done (n=54): time 2.354e-06/0.2623, allocations: 0 / 419.4 MB, free: 6.48 MB / 334.1 MB Notification: Performance of matching and sorting (n=94): time 0.06734/0.3297, allocations: 15.41 MB / 434.8 MB, free: 6.973 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001061/0.3298, allocations: 149.5 kB / 435 MB, free: 6.797 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006921/0.3305, allocations: 0.5185 MB / 435.5 MB, free: 6.266 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000218/0.3307, allocations: 49.7 kB / 435.6 MB, free: 6.211 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002808/0.331, allocations: 375.8 kB / 435.9 MB, free: 5.836 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003935/0.3314, allocations: 319.5 kB / 436.2 MB, free: 5.52 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003847/0.3318, allocations: 186.4 kB / 436.4 MB, free: 5.332 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001625/0.332, allocations: 390.7 kB / 436.8 MB, free: 4.941 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001963/0.334, allocations: 0.7205 MB / 437.5 MB, free: 4.219 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002135/0.3361, allocations: 0.9551 MB / 438.5 MB, free: 3.18 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003999/0.3401, allocations: 1.701 MB / 440.2 MB, free: 1.383 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.733e-06/0.3401, allocations: 0 / 440.2 MB, free: 1.383 MB / 350.1 MB Notification: Performance of matching and sorting (n=128) (initialization): time 0.02349/0.3636, allocations: 5.366 MB / 445.5 MB, free: 11.98 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001327/0.3638, allocations: 67.39 kB / 445.6 MB, free: 11.91 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.874e-05/0.3639, allocations: 8 kB / 445.6 MB, free: 11.9 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.03429/0.3981, allocations: 6.837 MB / 452.5 MB, free: 5.047 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006983/0.3989, allocations: 147.7 kB / 452.6 MB, free: 4.902 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006133/0.405, allocations: 3.02 MB / 455.6 MB, free: 1.828 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001663/0.4067, allocations: 176 kB / 455.8 MB, free: 1.656 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001559/0.4069, allocations: 47.97 kB / 455.8 MB, free: 1.609 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.0004939/0.4074, allocations: 230.1 kB / 456.1 MB, free: 1.375 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001983/0.4076, allocations: 79.06 kB / 456.1 MB, free: 1.297 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02212/0.4298, allocations: 5.103 MB / 461.2 MB, free: 12.18 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.734e-05/0.4298, allocations: 8 kB / 461.2 MB, free: 12.17 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.544e-06/0.4298, allocations: 0 / 461.2 MB, free: 12.17 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.247e-05/0.4299, allocations: 7.984 kB / 461.3 MB, free: 12.16 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00158/0.4314, allocations: 1.108 MB / 462.4 MB, free: 11 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.027e-06/0.4315, allocations: 3.984 kB / 462.4 MB, free: 11 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005119/0.432, allocations: 91.89 kB / 462.5 MB, free: 10.91 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.03278/0.4648, allocations: 6.781 MB / 469.2 MB, free: 4.109 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002335/0.4651, allocations: 27.97 kB / 469.3 MB, free: 4.082 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005863/0.4709, allocations: 3.04 MB / 472.3 MB, free: 0.9844 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.727e-06/0.471, allocations: 0 / 472.3 MB, free: 0.9844 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02419/0.4952, allocations: 5.987 MB / 478.3 MB, free: 10.96 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002304/0.4954, allocations: 148.1 kB / 478.4 MB, free: 10.8 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002119/0.4957, allocations: 16.05 kB / 478.5 MB, free: 10.79 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001402/0.4971, allocations: 172.1 kB / 478.6 MB, free: 10.62 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002594/0.4973, allocations: 100.9 kB / 478.7 MB, free: 10.52 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.296e-05/0.4974, allocations: 31.97 kB / 478.7 MB, free: 10.49 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0004096/0.4979, allocations: 358.8 kB / 479.1 MB, free: 10.14 MB / 398.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.4979, allocations: 0 / 479.1 MB, free: 10.14 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0007462/0.4986, allocations: 260 kB / 479.4 MB, free: 9.883 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.0002616/0.4989, allocations: 131.3 kB / 479.5 MB, free: 9.75 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.005757/0.5047, allocations: 2.048 MB / 481.5 MB, free: 7.68 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.236e-06/0.5047, allocations: 0 / 481.5 MB, free: 7.68 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003352/0.508, allocations: 1.093 MB / 482.6 MB, free: 6.586 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000751/0.5088, allocations: 130.2 kB / 482.8 MB, free: 6.453 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003457/0.5123, allocations: 1.819 MB / 484.6 MB, free: 4.605 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004469/0.5127, allocations: 0.9468 MB / 485.5 MB, free: 3.633 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001672/0.5129, allocations: 43.36 kB / 485.6 MB, free: 3.59 MB / 398.1 MB Notification: Performance of SimCode: time 5.72e-07/0.5129, allocations: 0 / 485.6 MB, free: 3.59 MB / 398.1 MB Notification: Performance of Templates: time 0.02075/0.5337, allocations: 17.44 MB / 0.4912 GB, free: 2.164 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