Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3.2.3_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_3.2.3_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.001187/0.001188, allocations: 118.5 kB / 17.28 MB, free: 6.219 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.001149/0.001149, allocations: 193.3 kB / 18.2 MB, free: 5.301 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.532/1.532, allocations: 205.1 MB / 224.1 MB, free: 12.36 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001175/0.001175, allocations: 51.92 kB / 280.1 MB, free: 3.5 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1278/0.1289, allocations: 46.62 MB / 326.8 MB, free: 4.805 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate): time 0.006714/0.1357, allocations: 4.715 MB / 331.5 MB, free: 56 kB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.002906/0.1387, allocations: 1.265 MB / 332.8 MB, free: 14.78 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003257/0.139, allocations: 19.94 kB / 332.8 MB, free: 14.76 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003281/0.1394, allocations: 75.31 kB / 332.8 MB, free: 14.69 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004734/0.1399, allocations: 214.2 kB / 333.1 MB, free: 14.48 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006679/0.1405, allocations: 259.7 kB / 333.3 MB, free: 14.22 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009974/0.1416, allocations: 1.048 MB / 334.4 MB, free: 13.17 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004004/0.142, allocations: 254.4 kB / 334.6 MB, free: 12.91 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000507/0.1425, allocations: 410.5 kB / 335 MB, free: 12.51 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004959/0.143, allocations: 454.1 kB / 335.4 MB, free: 12.06 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001449/0.1431, allocations: 87.94 kB / 335.5 MB, free: 11.98 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002097/0.1434, allocations: 116 kB / 335.6 MB, free: 11.86 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001762/0.1435, allocations: 183.3 kB / 335.8 MB, free: 11.68 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00043/0.144, allocations: 437.8 kB / 336.3 MB, free: 11.25 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001042/0.145, allocations: 0.9541 MB / 337.2 MB, free: 10.3 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.288e-06/0.145, allocations: 0 / 337.2 MB, free: 10.3 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.615e-06/0.1451, allocations: 3.938 kB / 337.2 MB, free: 10.29 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.233e-05/0.1451, allocations: 0 / 337.2 MB, free: 10.29 MB / 286.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 152 * Number of variables: 152 Notification: Performance of Generate backend data structure: time 0.002856/0.1479, allocations: 1.215 MB / 338.4 MB, free: 9.008 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.18e-05/0.148, allocations: 12.03 kB / 338.4 MB, free: 8.996 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001575/0.1482, allocations: 87.91 kB / 338.5 MB, free: 8.91 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005772/0.1487, allocations: 461.4 kB / 339 MB, free: 8.418 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.464e-05/0.1488, allocations: 49.69 kB / 339 MB, free: 8.371 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001161/0.1489, allocations: 60.38 kB / 339.1 MB, free: 8.312 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001341/0.1503, allocations: 0.6314 MB / 339.7 MB, free: 7.672 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.136e-05/0.1503, allocations: 0 / 339.7 MB, free: 7.672 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.433e-05/0.1504, allocations: 24 kB / 339.7 MB, free: 7.648 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.64e-05/0.1504, allocations: 16 kB / 339.8 MB, free: 7.633 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001658/0.1521, allocations: 0.6804 MB / 340.4 MB, free: 6.953 MB / 286.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.003699/0.1558, allocations: 2.335 MB / 342.8 MB, free: 4.469 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001413/0.1572, allocations: 0.5866 MB / 343.4 MB, free: 3.871 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000686/0.1579, allocations: 326 kB / 343.7 MB, free: 3.551 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.491e-05/0.158, allocations: 16.42 kB / 343.7 MB, free: 3.535 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001091/0.1591, allocations: 429.4 kB / 344.1 MB, free: 3.09 MB / 286.1 MB Notification: Performance of pre-optimization done (n=54): time 2.174e-06/0.1591, allocations: 0 / 344.1 MB, free: 3.09 MB / 286.1 MB Notification: Performance of matching and sorting (n=94): time 0.0676/0.2267, allocations: 15.4 MB / 359.5 MB, free: 3.598 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001551/0.2269, allocations: 141.5 kB / 359.6 MB, free: 3.426 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000895/0.2278, allocations: 494.8 kB / 360.1 MB, free: 2.934 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002857/0.2281, allocations: 53.7 kB / 360.2 MB, free: 2.875 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003478/0.2285, allocations: 367.9 kB / 360.5 MB, free: 2.508 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003559/0.2288, allocations: 311.5 kB / 360.8 MB, free: 2.199 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004149/0.2293, allocations: 178.5 kB / 361 MB, free: 2.02 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0002426/0.2295, allocations: 378.8 kB / 361.4 MB, free: 1.641 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001905/0.2314, allocations: 0.7163 MB / 362.1 MB, free: 0.9258 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00206/0.2335, allocations: 0.9382 MB / 363 MB, free: 15.91 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003755/0.2373, allocations: 1.658 MB / 364.7 MB, free: 14.17 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.919e-06/0.2373, allocations: 0 / 364.7 MB, free: 14.17 MB / 318.1 MB Notification: Performance of matching and sorting (n=124) (initialization): time 0.02242/0.2597, allocations: 5.343 MB / 370 MB, free: 8.789 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001074/0.2599, allocations: 63.39 kB / 370.1 MB, free: 8.715 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.233e-05/0.2599, allocations: 8 kB / 370.1 MB, free: 8.707 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.03286/0.2928, allocations: 6.836 MB / 376.9 MB, free: 1.855 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006858/0.2935, allocations: 139.8 kB / 377.1 MB, free: 1.719 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2323/0.5259, allocations: 3.018 MB / 380.1 MB, free: 52.92 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001879/0.5278, allocations: 178.2 kB / 380.3 MB, free: 52.92 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001574/0.528, allocations: 44.94 kB / 380.3 MB, free: 52.92 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 23 * 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 (50): * Single equations (assignments): 46 * 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.0004998/0.5285, allocations: 224.2 kB / 380.5 MB, free: 52.8 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001676/0.5287, allocations: 79.31 kB / 380.6 MB, free: 52.8 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02226/0.5509, allocations: 5.095 MB / 385.7 MB, free: 52.27 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.917e-05/0.551, allocations: 10.84 kB / 385.7 MB, free: 52.27 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.117e-05/0.551, allocations: 0 / 385.7 MB, free: 52.27 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.626e-05/0.551, allocations: 3.75 kB / 385.7 MB, free: 52.27 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001541/0.5526, allocations: 1.092 MB / 386.8 MB, free: 51.7 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.18e-06/0.5526, allocations: 0 / 386.8 MB, free: 51.7 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004977/0.5531, allocations: 97.34 kB / 386.9 MB, free: 51.7 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.03194/0.5851, allocations: 6.781 MB / 393.7 MB, free: 50.26 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002485/0.5854, allocations: 27.75 kB / 393.7 MB, free: 50.24 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004878/0.5902, allocations: 3.04 MB / 396.8 MB, free: 48.21 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.504e-06/0.5903, allocations: 0 / 396.8 MB, free: 48.21 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02164/0.6119, allocations: 5.978 MB / 402.7 MB, free: 42.76 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002184/0.6122, allocations: 147.3 kB / 402.9 MB, free: 42.61 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001553/0.6123, allocations: 20 kB / 402.9 MB, free: 42.59 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001272/0.6136, allocations: 173.6 kB / 403.1 MB, free: 42.42 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002769/0.6139, allocations: 97.95 kB / 403.2 MB, free: 42.32 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.537e-05/0.614, allocations: 39.69 kB / 403.2 MB, free: 42.29 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0004056/0.6144, allocations: 334.9 kB / 403.5 MB, free: 41.96 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.6144, allocations: 0 / 403.5 MB, free: 41.96 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0008401/0.6153, allocations: 254.1 kB / 403.8 MB, free: 41.72 MB / 318.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.0003159/0.6156, allocations: 125.2 kB / 403.9 MB, free: 41.59 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.005222/0.6208, allocations: 2.059 MB / 406 MB, free: 39.51 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.925e-06/0.6208, allocations: 0 / 406 MB, free: 39.51 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002964/0.6238, allocations: 1.086 MB / 407.1 MB, free: 38.42 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007257/0.6245, allocations: 132.1 kB / 407.2 MB, free: 38.31 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003241/0.6278, allocations: 2.089 MB / 409.3 MB, free: 36.23 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000284/0.6281, allocations: 0.9375 MB / 410.2 MB, free: 35.27 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0002712/0.6284, allocations: 56.38 kB / 410.3 MB, free: 35.21 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001032/0.6285, allocations: 35.44 kB / 410.3 MB, free: 35.18 MB / 318.1 MB Notification: Performance of SimCode: time 1.032e-06/0.6285, allocations: 0 / 410.3 MB, free: 35.18 MB / 318.1 MB Notification: Performance of Templates: time 0.02541/0.6539, allocations: 22.18 MB / 432.5 MB, free: 12.99 MB / 318.1 MB make -j1 -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.makefile (rm -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.sim & ./Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Analog/Examples/HeatingPNP_NORGate/HeatingPNP_NORGate.csv","../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches