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.001561/0.001561, allocations: 111.7 kB / 17.06 MB, free: 5.973 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.001748/0.001749, allocations: 198.8 kB / 18.01 MB, free: 5.055 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.602/1.602, allocations: 222.9 MB / 241.7 MB, free: 15.17 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001067/0.001067, allocations: 43.94 kB / 351.3 MB, free: 3.242 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4113/0.4124, allocations: 49.44 MB / 400.8 MB, free: 8.734 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate): time 0.006149/0.4186, allocations: 4.935 MB / 405.7 MB, free: 3.891 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002739/0.4214, allocations: 1.264 MB / 406.9 MB, free: 2.617 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004886/0.4219, allocations: 11.94 kB / 407 MB, free: 2.605 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000494/0.4224, allocations: 122.7 kB / 407.1 MB, free: 2.484 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009059/0.4234, allocations: 261.6 kB / 407.3 MB, free: 2.227 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001262/0.4247, allocations: 323.4 kB / 407.7 MB, free: 1.91 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001667/0.4263, allocations: 1.095 MB / 408.7 MB, free: 0.8125 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000568/0.4269, allocations: 262.5 kB / 409 MB, free: 0.5312 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006888/0.4276, allocations: 422.5 kB / 409.4 MB, free: 120 kB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008129/0.4285, allocations: 470.1 kB / 409.9 MB, free: 15.65 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001644/0.4286, allocations: 92 kB / 410 MB, free: 15.56 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002797/0.4289, allocations: 104 kB / 410.1 MB, free: 15.46 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002466/0.4292, allocations: 199.3 kB / 410.3 MB, free: 15.27 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005609/0.4298, allocations: 445.8 kB / 410.7 MB, free: 14.83 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00152/0.4313, allocations: 1.005 MB / 411.7 MB, free: 13.82 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.686e-06/0.4313, allocations: 0 / 411.7 MB, free: 13.82 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.986e-06/0.4313, allocations: 0 / 411.7 MB, free: 13.82 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.769e-05/0.4314, allocations: 0 / 411.7 MB, free: 13.82 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.003891/0.4353, allocations: 1.266 MB / 413 MB, free: 12.49 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.739e-05/0.4353, allocations: 8.031 kB / 413 MB, free: 12.48 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002569/0.4356, allocations: 91.91 kB / 413.1 MB, free: 12.39 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001042/0.4366, allocations: 487.5 kB / 413.5 MB, free: 11.88 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.673e-05/0.4367, allocations: 45.69 kB / 413.6 MB, free: 11.83 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001628/0.4369, allocations: 68.38 kB / 413.7 MB, free: 11.77 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00199/0.4389, allocations: 0.6548 MB / 414.3 MB, free: 11.11 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.045e-05/0.439, allocations: 0 / 414.3 MB, free: 11.11 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.211e-05/0.4391, allocations: 28 kB / 414.3 MB, free: 11.08 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.309e-05/0.4391, allocations: 16 kB / 414.4 MB, free: 11.06 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002473/0.4416, allocations: 0.6961 MB / 415 MB, free: 10.37 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.005706/0.4473, allocations: 2.382 MB / 417.4 MB, free: 7.832 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002061/0.4494, allocations: 0.5827 MB / 418 MB, free: 7.238 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00104/0.4504, allocations: 334 kB / 418.3 MB, free: 6.91 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.645e-05/0.4505, allocations: 4.438 kB / 418.3 MB, free: 6.906 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001331/0.4519, allocations: 433.3 kB / 418.8 MB, free: 6.457 MB / 334.1 MB Notification: Performance of pre-optimization done (n=54): time 3.056e-06/0.4519, allocations: 0 / 418.8 MB, free: 6.457 MB / 334.1 MB Notification: Performance of matching and sorting (n=94): time 0.08962/0.5415, allocations: 15.42 MB / 434.2 MB, free: 6.941 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001795/0.5418, allocations: 145.5 kB / 434.3 MB, free: 6.77 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001095/0.5429, allocations: 0.5185 MB / 434.8 MB, free: 6.238 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003416/0.5432, allocations: 45.7 kB / 434.9 MB, free: 6.188 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005199/0.5438, allocations: 379.8 kB / 435.3 MB, free: 5.809 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006157/0.5444, allocations: 315.5 kB / 435.6 MB, free: 5.496 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004674/0.5449, allocations: 186.4 kB / 435.7 MB, free: 5.309 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000203/0.5451, allocations: 394.7 kB / 436.1 MB, free: 4.914 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002009/0.5471, allocations: 0.7204 MB / 436.9 MB, free: 4.191 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002246/0.5494, allocations: 0.959 MB / 437.8 MB, free: 3.148 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003861/0.5532, allocations: 1.697 MB / 439.5 MB, free: 1.355 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.915e-06/0.5533, allocations: 0 / 439.5 MB, free: 1.355 MB / 350.1 MB Notification: Performance of matching and sorting (n=128) (initialization): time 0.02374/0.577, allocations: 5.366 MB / 444.9 MB, free: 11.96 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.739e-05/0.5771, allocations: 63.39 kB / 444.9 MB, free: 11.88 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.789e-05/0.5772, allocations: 11.98 kB / 445 MB, free: 11.87 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.03301/0.6102, allocations: 6.837 MB / 451.8 MB, free: 5.02 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007801/0.611, allocations: 151.7 kB / 451.9 MB, free: 4.871 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006285/0.6173, allocations: 3.012 MB / 454.9 MB, free: 1.805 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001755/0.6191, allocations: 179.9 kB / 455.1 MB, free: 1.629 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001785/0.6193, allocations: 47.97 kB / 455.2 MB, free: 1.582 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.0005361/0.6199, allocations: 226.1 kB / 455.4 MB, free: 1.352 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002071/0.6201, allocations: 79.06 kB / 455.5 MB, free: 1.273 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02135/0.6415, allocations: 5.103 MB / 460.6 MB, free: 12.15 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.432e-05/0.6415, allocations: 11.94 kB / 460.6 MB, free: 12.14 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.127e-05/0.6416, allocations: 0 / 460.6 MB, free: 12.14 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.948e-05/0.6416, allocations: 12.02 kB / 460.6 MB, free: 12.13 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001867/0.6435, allocations: 1.104 MB / 461.7 MB, free: 10.97 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.218e-05/0.6435, allocations: 3.984 kB / 461.7 MB, free: 10.97 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005021/0.644, allocations: 95.89 kB / 461.8 MB, free: 10.88 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.03138/0.6754, allocations: 6.781 MB / 468.6 MB, free: 4.078 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003118/0.6758, allocations: 27.97 kB / 468.6 MB, free: 4.051 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005945/0.6817, allocations: 3.036 MB / 471.6 MB, free: 0.957 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.537e-06/0.6818, allocations: 0 / 471.6 MB, free: 0.957 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02394/0.7057, allocations: 5.979 MB / 477.6 MB, free: 10.95 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004425/0.7062, allocations: 148.1 kB / 477.8 MB, free: 10.78 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004479/0.7067, allocations: 16 kB / 477.8 MB, free: 10.77 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00163/0.7084, allocations: 175.8 kB / 478 MB, free: 10.59 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003996/0.7088, allocations: 96.88 kB / 478 MB, free: 10.5 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001467/0.7089, allocations: 31.97 kB / 478.1 MB, free: 10.47 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0006329/0.7096, allocations: 354.8 kB / 478.4 MB, free: 10.12 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.7096, allocations: 0 / 478.4 MB, free: 10.12 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.00131/0.7109, allocations: 260 kB / 478.7 MB, free: 9.867 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.0003321/0.7113, allocations: 135.2 kB / 478.8 MB, free: 9.727 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.006047/0.7173, allocations: 2.047 MB / 480.9 MB, free: 7.656 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 6.742e-06/0.7174, allocations: 0 / 480.9 MB, free: 7.656 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003335/0.7207, allocations: 1.094 MB / 482 MB, free: 6.562 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008798/0.7216, allocations: 130.5 kB / 482.1 MB, free: 6.43 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004105/0.7257, allocations: 1.796 MB / 483.9 MB, free: 4.609 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005618/0.7263, allocations: 0.9429 MB / 484.8 MB, free: 3.641 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.000288/0.7266, allocations: 66.25 kB / 484.9 MB, free: 3.574 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001222/0.7267, allocations: 35.44 kB / 484.9 MB, free: 3.539 MB / 398.1 MB Notification: Performance of SimCode: time 1.132e-06/0.7267, allocations: 0 / 484.9 MB, free: 3.539 MB / 398.1 MB Notification: Performance of Templates: time 0.03784/0.7646, allocations: 22.83 MB / 0.4959 GB, free: 12.79 MB / 430.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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/HeatingPNP_NORGate/HeatingPNP_NORGate.csv","/var/lib/jenkins/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