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.00154/0.00154, allocations: 107.9 kB / 17.06 MB, free: 6.125 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.001697/0.001697, allocations: 191 kB / 18 MB, free: 5.207 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.576/1.576, allocations: 222.9 MB / 241.7 MB, free: 15.17 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001468/0.001469, allocations: 47.94 kB / 351.3 MB, free: 3.246 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3384/0.3398, allocations: 49.43 MB / 400.7 MB, free: 8.746 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate): time 0.005498/0.3454, allocations: 4.943 MB / 405.7 MB, free: 3.906 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002546/0.348, allocations: 1.264 MB / 407 MB, free: 2.633 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003093/0.3483, allocations: 15.94 kB / 407 MB, free: 2.617 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003449/0.3487, allocations: 118.7 kB / 407.1 MB, free: 2.5 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004662/0.3491, allocations: 261.7 kB / 407.3 MB, free: 2.242 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006767/0.3498, allocations: 315.4 kB / 407.6 MB, free: 1.934 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009398/0.3508, allocations: 1.103 MB / 408.8 MB, free: 0.8281 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000384/0.3512, allocations: 266.5 kB / 409 MB, free: 0.543 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004229/0.3516, allocations: 418.5 kB / 409.4 MB, free: 136 kB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005076/0.3521, allocations: 470.2 kB / 409.9 MB, free: 15.67 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001127/0.3523, allocations: 91.94 kB / 410 MB, free: 15.58 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000186/0.3524, allocations: 104 kB / 410.1 MB, free: 15.48 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001642/0.3526, allocations: 191.3 kB / 410.3 MB, free: 15.29 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003845/0.353, allocations: 449.8 kB / 410.7 MB, free: 14.85 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009042/0.3539, allocations: 1.005 MB / 411.7 MB, free: 13.85 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.949e-06/0.3539, allocations: 0 / 411.7 MB, free: 13.85 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.945e-06/0.3539, allocations: 3.984 kB / 411.7 MB, free: 13.84 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.187e-05/0.354, allocations: 4 kB / 411.7 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.002567/0.3565, allocations: 1.258 MB / 413 MB, free: 12.51 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.407e-05/0.3566, allocations: 8.031 kB / 413 MB, free: 12.5 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001683/0.3568, allocations: 91.91 kB / 413.1 MB, free: 12.41 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006805/0.3575, allocations: 487.5 kB / 413.5 MB, free: 11.9 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.415e-05/0.3575, allocations: 49.67 kB / 413.6 MB, free: 11.85 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001072/0.3576, allocations: 64.38 kB / 413.7 MB, free: 11.79 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001381/0.359, allocations: 0.6587 MB / 414.3 MB, free: 11.12 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.988e-05/0.359, allocations: 7.938 kB / 414.3 MB, free: 11.11 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.259e-05/0.3591, allocations: 20 kB / 414.3 MB, free: 11.09 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.638e-05/0.3591, allocations: 16 kB / 414.4 MB, free: 11.08 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001721/0.3609, allocations: 0.7 MB / 415.1 MB, free: 10.38 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.003968/0.3648, allocations: 2.374 MB / 417.4 MB, free: 7.852 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00155/0.3664, allocations: 0.5905 MB / 418 MB, free: 7.25 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00076/0.3672, allocations: 330 kB / 418.3 MB, free: 6.926 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.733e-05/0.3672, allocations: 8.438 kB / 418.3 MB, free: 6.918 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009698/0.3682, allocations: 425.3 kB / 418.8 MB, free: 6.477 MB / 334.1 MB Notification: Performance of pre-optimization done (n=54): time 2.525e-06/0.3682, allocations: 0 / 418.8 MB, free: 6.477 MB / 334.1 MB Notification: Performance of matching and sorting (n=94): time 0.07005/0.4383, allocations: 15.41 MB / 434.2 MB, free: 6.965 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001262/0.4385, allocations: 145.5 kB / 434.3 MB, free: 6.793 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008241/0.4393, allocations: 0.5146 MB / 434.8 MB, free: 6.266 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002375/0.4395, allocations: 49.7 kB / 434.9 MB, free: 6.211 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003193/0.4399, allocations: 387.8 kB / 435.3 MB, free: 5.824 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003169/0.4402, allocations: 315.5 kB / 435.6 MB, free: 5.512 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003875/0.4406, allocations: 186.4 kB / 435.8 MB, free: 5.324 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001856/0.4408, allocations: 394.6 kB / 436.1 MB, free: 4.93 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002114/0.4429, allocations: 0.7205 MB / 436.9 MB, free: 4.207 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00222/0.4451, allocations: 0.9551 MB / 437.8 MB, free: 3.168 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004225/0.4494, allocations: 1.697 MB / 439.5 MB, free: 1.375 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.189e-06/0.4494, allocations: 4 kB / 439.5 MB, free: 1.371 MB / 350.1 MB Notification: Performance of matching and sorting (n=128) (initialization): time 0.02373/0.4731, allocations: 5.358 MB / 444.9 MB, free: 11.98 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001126/0.4733, allocations: 70.02 kB / 444.9 MB, free: 11.9 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.404e-05/0.4733, allocations: 12 kB / 445 MB, free: 11.89 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.03465/0.508, allocations: 6.825 MB / 451.8 MB, free: 5.051 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008118/0.5089, allocations: 147.7 kB / 451.9 MB, free: 4.906 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006423/0.5153, allocations: 3.024 MB / 454.9 MB, free: 1.828 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001897/0.5172, allocations: 183.8 kB / 455.1 MB, free: 1.648 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001307/0.5174, allocations: 47.97 kB / 455.2 MB, free: 1.602 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.0005425/0.5179, allocations: 226.1 kB / 455.4 MB, free: 1.371 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001936/0.5181, allocations: 79.06 kB / 455.5 MB, free: 1.293 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02286/0.541, allocations: 5.099 MB / 460.6 MB, free: 12.18 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.628e-05/0.5412, allocations: 12 kB / 460.6 MB, free: 12.16 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.944e-05/0.5412, allocations: 0 / 460.6 MB, free: 12.16 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.1e-05/0.5412, allocations: 3.984 kB / 460.6 MB, free: 12.16 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002413/0.5436, allocations: 1.104 MB / 461.7 MB, free: 11 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.227e-06/0.5437, allocations: 0 / 461.7 MB, free: 11 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006061/0.5443, allocations: 99.81 kB / 461.8 MB, free: 10.91 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.03337/0.5777, allocations: 6.781 MB / 468.6 MB, free: 4.109 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003033/0.578, allocations: 27.97 kB / 468.6 MB, free: 4.082 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005995/0.584, allocations: 3.036 MB / 471.6 MB, free: 0.9883 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.624e-06/0.5841, allocations: 3.938 kB / 471.6 MB, free: 0.9844 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0249/0.609, allocations: 5.983 MB / 477.6 MB, free: 10.97 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003418/0.6094, allocations: 148.1 kB / 477.8 MB, free: 10.8 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001936/0.6096, allocations: 24 kB / 477.8 MB, free: 10.78 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001438/0.611, allocations: 163.8 kB / 477.9 MB, free: 10.62 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002829/0.6113, allocations: 100.9 kB / 478 MB, free: 10.52 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.792e-05/0.6114, allocations: 31.97 kB / 478.1 MB, free: 10.49 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0005015/0.6119, allocations: 350.8 kB / 478.4 MB, free: 10.15 MB / 398.1 MB Notification: Performance of sort global known variables: time 2.3e-07/0.6119, allocations: 4 kB / 478.4 MB, free: 10.14 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0008559/0.6128, allocations: 272 kB / 478.7 MB, free: 9.879 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.0003323/0.6131, allocations: 124.7 kB / 478.8 MB, free: 9.75 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.00685/0.62, allocations: 2.045 MB / 480.9 MB, free: 7.684 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.599e-05/0.6201, allocations: 8.062 kB / 480.9 MB, free: 7.676 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003831/0.6239, allocations: 1.093 MB / 482 MB, free: 6.582 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00109/0.625, allocations: 126.2 kB / 482.1 MB, free: 6.453 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004827/0.6299, allocations: 1.78 MB / 483.9 MB, free: 4.648 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006161/0.6305, allocations: 0.9507 MB / 484.8 MB, free: 3.672 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0003394/0.6309, allocations: 58.27 kB / 484.9 MB, free: 3.613 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001582/0.631, allocations: 35.44 kB / 484.9 MB, free: 3.578 MB / 398.1 MB Notification: Performance of SimCode: time 4.238e-06/0.6311, allocations: 4 kB / 484.9 MB, free: 3.574 MB / 398.1 MB Notification: Performance of Templates: time 0.04207/0.6731, allocations: 22.85 MB / 0.4959 GB, free: 12.81 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