Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|HeatCapacitor1.T",fileNamePrefix="Modelica_trunk_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_trunk_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00151/0.00151, allocations: 114.4 kB / 18.45 MB, free: 4.598 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002055/0.002055, allocations: 207.9 kB / 19.4 MB, free: 3.652 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.682/1.682, allocations: 227.4 MB / 247.6 MB, free: 10.47 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001485/0.001485, allocations: 63.89 kB / 359.4 MB, free: 12.91 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3174/0.3189, allocations: 50.54 MB / 410 MB, free: 1.574 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate): time 0.00956/0.3285, allocations: 4.957 MB / 414.9 MB, free: 12.59 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003865/0.3325, allocations: 1.28 MB / 416.2 MB, free: 11.31 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000815/0.3333, allocations: 15.88 kB / 416.2 MB, free: 11.29 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005472/0.3339, allocations: 122.7 kB / 416.3 MB, free: 11.17 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001141/0.3351, allocations: 253.6 kB / 416.6 MB, free: 10.92 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001205/0.3363, allocations: 307.5 kB / 416.9 MB, free: 10.62 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.002001/0.3383, allocations: 1.099 MB / 418 MB, free: 9.516 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006487/0.339, allocations: 266.5 kB / 418.2 MB, free: 9.238 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008282/0.3399, allocations: 418.5 kB / 418.6 MB, free: 8.828 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001106/0.341, allocations: 474 kB / 419.1 MB, free: 8.363 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003102/0.3413, allocations: 84 kB / 419.2 MB, free: 8.281 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004345/0.3418, allocations: 108 kB / 419.3 MB, free: 8.176 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002817/0.3421, allocations: 199.3 kB / 419.5 MB, free: 7.98 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007225/0.3428, allocations: 445.8 kB / 419.9 MB, free: 7.543 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001623/0.3445, allocations: 1.005 MB / 420.9 MB, free: 6.539 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.238e-06/0.3445, allocations: 4 kB / 420.9 MB, free: 6.535 MB / 334.1 MB Notification: Performance of FrontEnd: time 4.729e-06/0.3445, allocations: 4 kB / 420.9 MB, free: 6.531 MB / 334.1 MB Notification: Performance of Transformations before backend: time 4.093e-05/0.3446, allocations: 3.938 kB / 420.9 MB, free: 6.527 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.004485/0.3491, allocations: 1.254 MB / 422.2 MB, free: 5.207 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.248e-05/0.3491, allocations: 8.031 kB / 422.2 MB, free: 5.199 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002603/0.3494, allocations: 95.89 kB / 422.3 MB, free: 5.105 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001069/0.3505, allocations: 487.5 kB / 422.8 MB, free: 4.586 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.256e-05/0.3505, allocations: 49.69 kB / 422.8 MB, free: 4.535 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001696/0.3507, allocations: 64.38 kB / 422.9 MB, free: 4.473 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002132/0.3529, allocations: 0.6509 MB / 423.5 MB, free: 3.82 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.956e-05/0.3529, allocations: 0 / 423.5 MB, free: 3.82 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.616e-05/0.353, allocations: 31.94 kB / 423.6 MB, free: 3.789 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.207e-05/0.3531, allocations: 20 kB / 423.6 MB, free: 3.77 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002825/0.3559, allocations: 0.7 MB / 424.3 MB, free: 3.066 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.004402/0.3604, allocations: 2.366 MB / 426.7 MB, free: 0.5469 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001546/0.3619, allocations: 0.5865 MB / 427.2 MB, free: 15.95 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007592/0.3627, allocations: 329.9 kB / 427.6 MB, free: 15.62 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.823e-05/0.3628, allocations: 16.44 kB / 427.6 MB, free: 15.61 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009684/0.3638, allocations: 425.4 kB / 428 MB, free: 15.17 MB / 350.1 MB Notification: Performance of pre-optimization done (n=54): time 2.154e-06/0.3638, allocations: 0 / 428 MB, free: 15.17 MB / 350.1 MB Notification: Performance of matching and sorting (n=94): time 0.07002/0.4338, allocations: 15.42 MB / 443.4 MB, free: 15.65 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.832e-05/0.4339, allocations: 145.5 kB / 443.6 MB, free: 15.48 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006673/0.4346, allocations: 0.5263 MB / 444.1 MB, free: 14.94 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001727/0.4348, allocations: 41.7 kB / 444.1 MB, free: 14.89 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002875/0.4351, allocations: 387.8 kB / 444.5 MB, free: 14.51 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003494/0.4355, allocations: 315.4 kB / 444.8 MB, free: 14.2 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003988/0.4359, allocations: 186.5 kB / 445 MB, free: 14.01 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001936/0.4361, allocations: 386.7 kB / 445.4 MB, free: 13.62 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002068/0.4381, allocations: 0.7244 MB / 446.1 MB, free: 12.89 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002239/0.4404, allocations: 0.9629 MB / 447.1 MB, free: 11.85 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004292/0.4447, allocations: 1.701 MB / 448.8 MB, free: 10.05 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.676e-06/0.4447, allocations: 4 kB / 448.8 MB, free: 10.05 MB / 366.1 MB Notification: Performance of matching and sorting (n=128) (initialization): time 0.02803/0.4728, allocations: 5.366 MB / 454.1 MB, free: 4.648 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.827e-05/0.4729, allocations: 71.39 kB / 454.2 MB, free: 4.566 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.388e-05/0.4729, allocations: 4 kB / 454.2 MB, free: 4.562 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.04071/0.5137, allocations: 6.825 MB / 461 MB, free: 13.72 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007061/0.5144, allocations: 147.7 kB / 461.2 MB, free: 13.58 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005958/0.5204, allocations: 3.008 MB / 464.2 MB, free: 10.52 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001663/0.5221, allocations: 183.8 kB / 464.4 MB, free: 10.34 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000145/0.5223, allocations: 51.97 kB / 464.4 MB, free: 10.29 MB / 382.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.0004333/0.5227, allocations: 225.6 kB / 464.6 MB, free: 10.05 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001896/0.5229, allocations: 82.97 kB / 464.7 MB, free: 9.973 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0216/0.5445, allocations: 5.107 MB / 469.8 MB, free: 4.848 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.046e-05/0.5446, allocations: 8 kB / 469.8 MB, free: 4.84 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.626e-06/0.5446, allocations: 0 / 469.8 MB, free: 4.84 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.157e-05/0.5446, allocations: 11.97 kB / 469.8 MB, free: 4.828 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001581/0.5462, allocations: 1.104 MB / 470.9 MB, free: 3.676 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.785e-06/0.5462, allocations: 0 / 470.9 MB, free: 3.676 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005436/0.5468, allocations: 91.88 kB / 471 MB, free: 3.586 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.03272/0.5795, allocations: 6.786 MB / 477.8 MB, free: 12.79 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002033/0.5797, allocations: 19.98 kB / 477.8 MB, free: 12.77 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005847/0.5856, allocations: 3.033 MB / 480.9 MB, free: 9.676 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.615e-06/0.5856, allocations: 0 / 480.9 MB, free: 9.676 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02454/0.6102, allocations: 5.991 MB / 486.9 MB, free: 3.652 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002375/0.6105, allocations: 144.1 kB / 487 MB, free: 3.492 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002282/0.6107, allocations: 20 kB / 487 MB, free: 3.473 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001442/0.6122, allocations: 167.8 kB / 487.2 MB, free: 3.309 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003614/0.6125, allocations: 92.88 kB / 487.3 MB, free: 3.219 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001456/0.6127, allocations: 39.97 kB / 487.3 MB, free: 3.18 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.000575/0.6133, allocations: 354.8 kB / 487.7 MB, free: 2.832 MB / 398.1 MB Notification: Performance of sort global known variables: time 3.586e-06/0.6133, allocations: 0 / 487.7 MB, free: 2.832 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001094/0.6144, allocations: 263.9 kB / 487.9 MB, free: 2.574 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.0003409/0.6147, allocations: 138.8 kB / 488 MB, free: 2.434 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.007755/0.6225, allocations: 2.052 MB / 490.1 MB, free: 368 kB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 6.443e-06/0.6226, allocations: 4 kB / 490.1 MB, free: 364 kB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004501/0.6271, allocations: 1.086 MB / 491.2 MB, free: 15.27 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00103/0.6281, allocations: 128.7 kB / 491.3 MB, free: 15.14 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005103/0.6332, allocations: 1.831 MB / 493.1 MB, free: 13.28 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007097/0.634, allocations: 0.9467 MB / 494.1 MB, free: 12.3 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002375/0.6342, allocations: 39.44 kB / 494.1 MB, free: 12.27 MB / 414.1 MB Notification: Performance of SimCode: time 1.303e-06/0.6342, allocations: 0 / 494.1 MB, free: 12.27 MB / 414.1 MB Notification: Performance of Templates: time 0.03158/0.6658, allocations: 17.56 MB / 0.4997 GB, free: 10.72 MB / 430.1 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.makefile (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.sim & ./Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches