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.001426/0.001426, allocations: 104.7 kB / 17.59 MB, free: 5.426 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.001496/0.001496, allocations: 191.3 kB / 18.51 MB, free: 4.504 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.358/1.358, allocations: 222.9 MB / 242.2 MB, free: 15.28 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00112/0.00112, allocations: 44.12 kB / 301.3 MB, free: 5.824 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09722/0.09836, allocations: 49.46 MB / 350.7 MB, free: 4.355 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate): time 0.007112/0.1055, allocations: 4.922 MB / 355.7 MB, free: 15.4 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002914/0.1085, allocations: 1.264 MB / 356.9 MB, free: 14.13 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007501/0.1093, allocations: 12 kB / 356.9 MB, free: 14.12 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005155/0.1098, allocations: 126.7 kB / 357.1 MB, free: 13.99 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009227/0.1108, allocations: 245.7 kB / 357.3 MB, free: 13.75 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001007/0.1118, allocations: 315.4 kB / 357.6 MB, free: 13.44 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001528/0.1133, allocations: 1.095 MB / 358.7 MB, free: 12.34 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004944/0.1139, allocations: 270.5 kB / 359 MB, free: 12.05 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007351/0.1146, allocations: 418.5 kB / 359.4 MB, free: 11.64 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007735/0.1154, allocations: 454.1 kB / 359.8 MB, free: 11.2 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002784/0.1157, allocations: 88 kB / 359.9 MB, free: 11.11 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003628/0.116, allocations: 112 kB / 360 MB, free: 11 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002253/0.1163, allocations: 199.3 kB / 360.2 MB, free: 10.81 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006262/0.1169, allocations: 445.8 kB / 360.6 MB, free: 10.37 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001122/0.118, allocations: 1.001 MB / 361.6 MB, free: 9.367 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.531e-06/0.1181, allocations: 0 / 361.6 MB, free: 9.367 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.843e-06/0.1181, allocations: 0 / 361.6 MB, free: 9.367 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.194e-05/0.1181, allocations: 0 / 361.6 MB, free: 9.367 MB / 302.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.002605/0.1207, allocations: 1.254 MB / 362.9 MB, free: 8.047 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.614e-05/0.1208, allocations: 8.031 kB / 362.9 MB, free: 8.039 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001776/0.1209, allocations: 103.8 kB / 363 MB, free: 7.938 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006319/0.1216, allocations: 479.5 kB / 363.5 MB, free: 7.43 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.751e-05/0.1217, allocations: 49.69 kB / 363.5 MB, free: 7.379 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000115/0.1218, allocations: 64.28 kB / 363.6 MB, free: 7.316 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001401/0.1232, allocations: 0.6587 MB / 364.2 MB, free: 6.652 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.077e-05/0.1232, allocations: 0 / 364.2 MB, free: 6.652 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.598e-05/0.1233, allocations: 27.94 kB / 364.3 MB, free: 6.625 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.71e-05/0.1233, allocations: 19.94 kB / 364.3 MB, free: 6.605 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001662/0.125, allocations: 0.6961 MB / 365 MB, free: 5.91 MB / 302.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.003947/0.1289, allocations: 2.394 MB / 367.4 MB, free: 3.359 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001483/0.1304, allocations: 0.5866 MB / 368 MB, free: 2.766 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007485/0.1312, allocations: 330 kB / 368.3 MB, free: 2.441 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.889e-05/0.1313, allocations: 4.438 kB / 368.3 MB, free: 2.434 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001022/0.1323, allocations: 421.5 kB / 368.7 MB, free: 1.996 MB / 302.1 MB Notification: Performance of pre-optimization done (n=54): time 2.935e-06/0.1323, allocations: 0 / 368.7 MB, free: 1.996 MB / 302.1 MB Notification: Performance of matching and sorting (n=94): time 0.2257/0.358, allocations: 15.42 MB / 384.1 MB, free: 22.58 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.752e-05/0.3581, allocations: 141.3 kB / 384.3 MB, free: 22.42 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005755/0.3587, allocations: 0.5196 MB / 384.8 MB, free: 22.11 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001813/0.3589, allocations: 44.08 kB / 384.8 MB, free: 22.06 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002121/0.3591, allocations: 390.2 kB / 385.2 MB, free: 21.72 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002352/0.3594, allocations: 308.3 kB / 385.5 MB, free: 21.46 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000361/0.3597, allocations: 181.8 kB / 385.7 MB, free: 21.35 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 9.094e-05/0.3598, allocations: 387.6 kB / 386.1 MB, free: 20.98 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001951/0.3618, allocations: 0.7226 MB / 386.8 MB, free: 20.62 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002047/0.3638, allocations: 0.9671 MB / 387.8 MB, free: 19.97 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003724/0.3676, allocations: 1.695 MB / 389.5 MB, free: 18.93 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.083e-06/0.3676, allocations: 3.562 kB / 389.5 MB, free: 18.93 MB / 302.1 MB Notification: Performance of matching and sorting (n=128) (initialization): time 0.02177/0.3894, allocations: 5.371 MB / 394.8 MB, free: 14.18 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.598e-05/0.3895, allocations: 59.41 kB / 394.9 MB, free: 14.11 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.557e-05/0.3895, allocations: 8 kB / 394.9 MB, free: 14.1 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.03223/0.4217, allocations: 6.833 MB / 401.7 MB, free: 7.258 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006711/0.4224, allocations: 151.7 kB / 401.9 MB, free: 7.109 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005092/0.4276, allocations: 3.017 MB / 404.9 MB, free: 4.039 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001685/0.4293, allocations: 171.9 kB / 405.1 MB, free: 3.871 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001058/0.4294, allocations: 51.97 kB / 405.1 MB, free: 3.82 MB / 302.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.0003939/0.4298, allocations: 226.2 kB / 405.3 MB, free: 3.59 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000165/0.43, allocations: 86.98 kB / 405.4 MB, free: 3.504 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02129/0.4513, allocations: 5.092 MB / 410.5 MB, free: 14.4 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.131e-05/0.4513, allocations: 12 kB / 410.5 MB, free: 14.39 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.658e-06/0.4513, allocations: 0 / 410.5 MB, free: 14.39 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.665e-05/0.4514, allocations: 7.969 kB / 410.5 MB, free: 14.38 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001674/0.453, allocations: 1.108 MB / 411.6 MB, free: 13.25 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.041e-06/0.4531, allocations: 0 / 411.6 MB, free: 13.25 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005717/0.4536, allocations: 106.5 kB / 411.7 MB, free: 13.15 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.03328/0.4869, allocations: 6.789 MB / 418.5 MB, free: 6.352 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002081/0.4872, allocations: 23.98 kB / 418.6 MB, free: 6.328 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005764/0.493, allocations: 3.033 MB / 421.6 MB, free: 3.238 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.344e-06/0.493, allocations: 0 / 421.6 MB, free: 3.238 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02528/0.5183, allocations: 5.978 MB / 427.6 MB, free: 13.23 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002362/0.5186, allocations: 148.8 kB / 427.7 MB, free: 13.07 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001909/0.5188, allocations: 20 kB / 427.7 MB, free: 13.05 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001557/0.5203, allocations: 167.8 kB / 427.9 MB, free: 12.88 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002642/0.5206, allocations: 104.8 kB / 428 MB, free: 12.78 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001085/0.5207, allocations: 35.97 kB / 428 MB, free: 12.75 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.000673/0.5214, allocations: 350.8 kB / 428.4 MB, free: 12.41 MB / 334.1 MB Notification: Performance of sort global known variables: time 2.91e-07/0.5214, allocations: 8 kB / 428.4 MB, free: 12.4 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0008837/0.5223, allocations: 257.6 kB / 428.6 MB, free: 12.15 MB / 334.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.0002869/0.5226, allocations: 135.9 kB / 428.8 MB, free: 12.02 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.006704/0.5293, allocations: 2.059 MB / 430.8 MB, free: 9.941 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 8.426e-06/0.5294, allocations: 8.188 kB / 430.8 MB, free: 9.934 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00394/0.5333, allocations: 1.077 MB / 431.9 MB, free: 8.863 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008175/0.5342, allocations: 134.9 kB / 432 MB, free: 8.73 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003974/0.5382, allocations: 1.834 MB / 433.9 MB, free: 6.879 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005993/0.5388, allocations: 0.9507 MB / 434.8 MB, free: 5.902 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001739/0.539, allocations: 39.44 kB / 434.9 MB, free: 5.863 MB / 334.1 MB Notification: Performance of SimCode: time 9.22e-07/0.539, allocations: 0 / 434.9 MB, free: 5.863 MB / 334.1 MB Notification: Performance of Templates: time 0.02296/0.562, allocations: 17.4 MB / 452.3 MB, free: 4.5 MB / 350.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