Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_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 4.1.0-beta.om/package.mo", uses=false) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/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_4.1.0-beta.om_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.1.0-beta.om_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00177/0.00177, allocations: 113.6 kB / 17.83 MB, free: 5.258 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001982/0.001982, allocations: 207.9 kB / 18.79 MB, free: 4.309 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.536/1.536, allocations: 230.4 MB / 250 MB, free: 8.996 MB / 206.1 MB Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.002017/0.002017, allocations: 63.84 kB / 367.4 MB, free: 6.984 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3034/0.3055, allocations: 53.31 MB / 420.7 MB, free: 8.312 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate): time 0.006535/0.312, allocations: 4.973 MB / 425.6 MB, free: 3.32 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002727/0.3147, allocations: 1.287 MB / 426.9 MB, free: 2.027 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004155/0.3151, allocations: 15.88 kB / 427 MB, free: 2.012 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003376/0.3155, allocations: 130.7 kB / 427.1 MB, free: 1.883 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005401/0.316, allocations: 261.6 kB / 427.3 MB, free: 1.625 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007373/0.3168, allocations: 307.5 kB / 427.6 MB, free: 1.324 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001175/0.3179, allocations: 1.091 MB / 428.7 MB, free: 232 kB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003345/0.3183, allocations: 190.5 kB / 428.9 MB, free: 24 kB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005319/0.3188, allocations: 426.6 kB / 429.3 MB, free: 15.6 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000576/0.3194, allocations: 478 kB / 429.8 MB, free: 15.13 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001303/0.3195, allocations: 92 kB / 429.9 MB, free: 15.04 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002152/0.3197, allocations: 116 kB / 430 MB, free: 14.93 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001819/0.3199, allocations: 203.2 kB / 430.2 MB, free: 14.73 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004276/0.3203, allocations: 453.8 kB / 430.6 MB, free: 14.29 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001159/0.3215, allocations: 1.031 MB / 431.7 MB, free: 13.25 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.92e-06/0.3215, allocations: 0 / 431.7 MB, free: 13.25 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.994e-06/0.3215, allocations: 0 / 431.7 MB, free: 13.25 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.81e-05/0.3215, allocations: 4 kB / 431.7 MB, free: 13.25 MB / 350.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.002645/0.3242, allocations: 1.291 MB / 433 MB, free: 11.89 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.87e-05/0.3242, allocations: 8.031 kB / 433 MB, free: 11.89 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001726/0.3244, allocations: 100.3 kB / 433.1 MB, free: 11.79 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007696/0.3251, allocations: 495.9 kB / 433.6 MB, free: 11.26 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.85e-05/0.3252, allocations: 45.69 kB / 433.6 MB, free: 11.21 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001218/0.3253, allocations: 68.33 kB / 433.7 MB, free: 11.15 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001419/0.3267, allocations: 0.6587 MB / 434.3 MB, free: 10.49 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.027e-05/0.3268, allocations: 0 / 434.3 MB, free: 10.49 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.707e-05/0.3268, allocations: 28 kB / 434.4 MB, free: 10.46 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.712e-05/0.3268, allocations: 16 kB / 434.4 MB, free: 10.45 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001788/0.3286, allocations: 0.6922 MB / 435.1 MB, free: 9.75 MB / 350.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.004164/0.3328, allocations: 2.375 MB / 437.4 MB, free: 7.227 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001477/0.3343, allocations: 0.5515 MB / 438 MB, free: 6.664 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007313/0.335, allocations: 306 kB / 438.3 MB, free: 6.363 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.657e-05/0.3351, allocations: 12.42 kB / 438.3 MB, free: 6.352 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009565/0.336, allocations: 425.4 kB / 438.7 MB, free: 5.914 MB / 350.1 MB Notification: Performance of pre-optimization done (n=54): time 1.894e-06/0.336, allocations: 0 / 438.7 MB, free: 5.914 MB / 350.1 MB Notification: Performance of matching and sorting (n=94): time 0.07179/0.4078, allocations: 15.4 MB / 454.1 MB, free: 6.418 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000129/0.4079, allocations: 137.5 kB / 454.2 MB, free: 6.254 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007924/0.4087, allocations: 0.5225 MB / 454.8 MB, free: 5.719 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002092/0.4089, allocations: 45.7 kB / 454.8 MB, free: 5.668 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000375/0.4093, allocations: 396.7 kB / 455.2 MB, free: 5.273 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003409/0.4097, allocations: 329.2 kB / 455.5 MB, free: 4.949 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004039/0.4101, allocations: 182.6 kB / 455.7 MB, free: 4.766 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0002324/0.4103, allocations: 390.7 kB / 456.1 MB, free: 4.375 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00212/0.4124, allocations: 0.7244 MB / 456.8 MB, free: 3.648 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00228/0.4147, allocations: 0.9551 MB / 457.8 MB, free: 2.609 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004205/0.4189, allocations: 1.697 MB / 459.5 MB, free: 0.8164 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.683e-06/0.4189, allocations: 4 kB / 459.5 MB, free: 0.8125 MB / 366.1 MB Notification: Performance of matching and sorting (n=128) (initialization): time 0.02434/0.4432, allocations: 5.331 MB / 464.8 MB, free: 11.45 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001265/0.4434, allocations: 67.39 kB / 464.9 MB, free: 11.37 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.053e-05/0.4434, allocations: 4 kB / 464.9 MB, free: 11.37 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0346/0.478, allocations: 6.833 MB / 471.7 MB, free: 4.52 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007085/0.4787, allocations: 143.7 kB / 471.8 MB, free: 4.379 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006308/0.485, allocations: 3.017 MB / 474.9 MB, free: 1.309 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001804/0.4868, allocations: 175.8 kB / 475 MB, free: 1.137 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000152/0.487, allocations: 59.89 kB / 475.1 MB, free: 1.078 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.0004943/0.4875, allocations: 229.6 kB / 475.3 MB, free: 0.8438 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001817/0.4876, allocations: 83.48 kB / 475.4 MB, free: 0.7617 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02345/0.5111, allocations: 5.072 MB / 480.5 MB, free: 11.67 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.381e-05/0.5111, allocations: 8 kB / 480.5 MB, free: 11.66 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.237e-06/0.5111, allocations: 4 kB / 480.5 MB, free: 11.66 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.798e-05/0.5112, allocations: 7.969 kB / 480.5 MB, free: 11.65 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001779/0.5129, allocations: 1.1 MB / 481.6 MB, free: 10.5 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.41e-06/0.5129, allocations: 0 / 481.6 MB, free: 10.5 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005412/0.5135, allocations: 91.89 kB / 481.7 MB, free: 10.41 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.03579/0.5493, allocations: 6.789 MB / 488.5 MB, free: 3.609 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002163/0.5495, allocations: 23.98 kB / 488.5 MB, free: 3.586 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006623/0.5561, allocations: 3.029 MB / 491.5 MB, free: 0.5 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.645e-06/0.5561, allocations: 0 / 491.5 MB, free: 0.5 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02618/0.5823, allocations: 5.948 MB / 497.5 MB, free: 10.52 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002602/0.5825, allocations: 152.5 kB / 497.6 MB, free: 10.35 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001882/0.5827, allocations: 16.05 kB / 497.6 MB, free: 10.34 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001413/0.5841, allocations: 175.8 kB / 497.8 MB, free: 10.16 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002858/0.5844, allocations: 92.88 kB / 497.9 MB, free: 10.07 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001005/0.5845, allocations: 35.97 kB / 497.9 MB, free: 10.04 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0004742/0.585, allocations: 350.9 kB / 498.3 MB, free: 9.695 MB / 414.1 MB Notification: Performance of sort global known variables: time 1e-07/0.585, allocations: 4 kB / 498.3 MB, free: 9.691 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0007855/0.5858, allocations: 263.9 kB / 498.5 MB, free: 9.434 MB / 414.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.0002528/0.586, allocations: 131 kB / 498.7 MB, free: 9.301 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.006209/0.5923, allocations: 1.978 MB / 0.4889 GB, free: 7.301 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.777e-06/0.5923, allocations: 448 / 0.4889 GB, free: 7.301 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00352/0.5958, allocations: 1.011 MB / 0.4899 GB, free: 6.289 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007821/0.5966, allocations: 133.2 kB / 0.49 GB, free: 6.156 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004137/0.6007, allocations: 1.813 MB / 0.4918 GB, free: 4.312 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006648/0.6014, allocations: 0.9545 MB / 0.4927 GB, free: 3.332 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0002895/0.6017, allocations: 58.27 kB / 0.4928 GB, free: 3.273 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001285/0.6018, allocations: 35.44 kB / 0.4928 GB, free: 3.238 MB / 414.1 MB Notification: Performance of SimCode: time 1.984e-06/0.6018, allocations: 0 / 0.4928 GB, free: 3.238 MB / 414.1 MB Notification: Performance of Templates: time 0.0384/0.6402, allocations: 23 MB / 0.5153 GB, free: 12.33 MB / 446.1 MB make -j1 -f Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.makefile (rm -f Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.sim & ./Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.pipe 2>&1) diffSimulationResults("Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Analog/Examples/HeatingPNP_NORGate/HeatingPNP_NORGate.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches