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.001075/0.001075, allocations: 95.23 kB / 17.3 MB, free: 6.023 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.00126/0.00126, allocations: 180.2 kB / 18.21 MB, free: 5.418 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.411/1.411, allocations: 205.4 MB / 224.4 MB, free: 13.07 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.0005409/0.0005408, allocations: 8.422 kB / 281.4 MB, free: 3.438 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1191/0.1196, allocations: 47.59 MB / 329 MB, free: 3.773 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate): time 0.004861/0.1245, allocations: 4.298 MB / 333.3 MB, free: 15.45 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002686/0.1272, allocations: 1.269 MB / 334.5 MB, free: 14.17 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003074/0.1276, allocations: 8 kB / 334.5 MB, free: 14.16 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002882/0.1279, allocations: 79.31 kB / 334.6 MB, free: 14.08 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005564/0.1284, allocations: 218.2 kB / 334.8 MB, free: 13.87 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006816/0.1291, allocations: 255.7 kB / 335.1 MB, free: 13.62 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009507/0.1301, allocations: 0.9936 MB / 336.1 MB, free: 12.62 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003849/0.1305, allocations: 211.3 kB / 336.3 MB, free: 12.4 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004141/0.1309, allocations: 354.5 kB / 336.6 MB, free: 12.05 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004432/0.1314, allocations: 410.1 kB / 337 MB, free: 11.65 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 8.427e-05/0.1315, allocations: 40 kB / 337.1 MB, free: 11.61 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001674/0.1316, allocations: 67.98 kB / 337.1 MB, free: 11.54 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001236/0.1318, allocations: 143.4 kB / 337.3 MB, free: 11.4 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003709/0.1322, allocations: 415.5 kB / 337.7 MB, free: 10.99 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009143/0.1331, allocations: 0.9069 MB / 338.6 MB, free: 10.08 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.751e-06/0.1331, allocations: 0 / 338.6 MB, free: 10.08 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.274e-06/0.1331, allocations: 0 / 338.6 MB, free: 10.08 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.044e-05/0.1331, allocations: 0 / 338.6 MB, free: 10.08 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.002242/0.1354, allocations: 1.118 MB / 339.7 MB, free: 8.895 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.048e-05/0.1354, allocations: 8.031 kB / 339.7 MB, free: 8.887 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001546/0.1356, allocations: 84 kB / 339.8 MB, free: 8.805 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005795/0.1362, allocations: 469.4 kB / 340.2 MB, free: 8.305 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.046e-05/0.1362, allocations: 45.69 kB / 340.3 MB, free: 8.262 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001318/0.1364, allocations: 64.36 kB / 340.4 MB, free: 8.199 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001379/0.1378, allocations: 0.6782 MB / 341 MB, free: 7.512 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.156e-05/0.1378, allocations: 3.906 kB / 341 MB, free: 7.508 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.767e-05/0.1379, allocations: 24 kB / 341.1 MB, free: 7.484 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.606e-05/0.1379, allocations: 16 kB / 341.1 MB, free: 7.469 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001693/0.1396, allocations: 0.7351 MB / 341.8 MB, free: 6.734 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.003799/0.1434, allocations: 2.363 MB / 344.2 MB, free: 4.219 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001527/0.1449, allocations: 0.649 MB / 344.8 MB, free: 3.559 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007665/0.1457, allocations: 362 kB / 345.2 MB, free: 3.203 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.727e-05/0.1458, allocations: 12.42 kB / 345.2 MB, free: 3.191 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009932/0.1468, allocations: 457.4 kB / 345.6 MB, free: 2.719 MB / 286.1 MB Notification: Performance of pre-optimization done (n=54): time 2.114e-06/0.1468, allocations: 0 / 345.6 MB, free: 2.719 MB / 286.1 MB Notification: Performance of matching and sorting (n=94): time 0.07133/0.2181, allocations: 16.73 MB / 362.4 MB, free: 1.891 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001571/0.2183, allocations: 149.4 kB / 362.5 MB, free: 1.711 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008139/0.2192, allocations: 0.491 MB / 363 MB, free: 1.215 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002287/0.2194, allocations: 41.7 kB / 363 MB, free: 1.168 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003332/0.2197, allocations: 367.8 kB / 363.4 MB, free: 0.8008 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003476/0.2201, allocations: 311.5 kB / 363.7 MB, free: 0.4922 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001995/0.2203, allocations: 85.67 kB / 363.8 MB, free: 412 kB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.000187/0.2205, allocations: 382.8 kB / 364.2 MB, free: 20 kB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00215/0.2227, allocations: 0.7944 MB / 365 MB, free: 15.23 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002268/0.2249, allocations: 1.001 MB / 366 MB, free: 14.15 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004348/0.2293, allocations: 1.814 MB / 367.8 MB, free: 12.25 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.35e-06/0.2293, allocations: 4 kB / 367.8 MB, free: 12.25 MB / 318.1 MB Notification: Performance of matching and sorting (n=124) (initialization): time 0.02468/0.254, allocations: 5.721 MB / 373.5 MB, free: 6.496 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001052/0.2542, allocations: 63.41 kB / 373.6 MB, free: 6.422 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.198e-05/0.2542, allocations: 4 kB / 373.6 MB, free: 6.418 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.2375/0.4917, allocations: 7.32 MB / 380.9 MB, free: 51.96 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00079/0.4926, allocations: 170.2 kB / 381 MB, free: 51.96 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007738/0.5003, allocations: 3.214 MB / 384.3 MB, free: 50.91 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002002/0.5024, allocations: 222.7 kB / 384.5 MB, free: 50.91 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001253/0.5025, allocations: 45.97 kB / 384.5 MB, free: 50.91 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.000447/0.503, allocations: 221.4 kB / 384.7 MB, free: 50.8 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001647/0.5031, allocations: 74.23 kB / 384.8 MB, free: 50.8 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02507/0.5282, allocations: 5.477 MB / 390.3 MB, free: 50.15 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.764e-05/0.5283, allocations: 13.16 kB / 390.3 MB, free: 50.14 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.135e-05/0.5283, allocations: 0 / 390.3 MB, free: 50.14 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.892e-05/0.5284, allocations: 5.234 kB / 390.3 MB, free: 50.14 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001504/0.5299, allocations: 1.08 MB / 391.4 MB, free: 49.59 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.142e-06/0.5299, allocations: 0 / 391.4 MB, free: 49.59 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005613/0.5305, allocations: 127.8 kB / 391.5 MB, free: 49.58 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.03366/0.5641, allocations: 7.292 MB / 398.8 MB, free: 47.43 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003066/0.5645, allocations: 27.98 kB / 398.8 MB, free: 47.4 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005132/0.5696, allocations: 3.09 MB / 401.9 MB, free: 44.28 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.228e-06/0.5697, allocations: 4 kB / 401.9 MB, free: 44.28 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02343/0.5931, allocations: 6.433 MB / 408.4 MB, free: 37.85 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002517/0.5934, allocations: 140.2 kB / 408.5 MB, free: 37.69 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001521/0.5936, allocations: 16 kB / 408.5 MB, free: 37.68 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001319/0.5949, allocations: 211.8 kB / 408.7 MB, free: 37.47 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002347/0.5951, allocations: 92.86 kB / 408.8 MB, free: 37.38 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.377e-05/0.5952, allocations: 35.97 kB / 408.8 MB, free: 37.34 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0003254/0.5955, allocations: 338.9 kB / 409.2 MB, free: 37.02 MB / 318.1 MB Notification: Performance of sort global known variables: time 9.02e-07/0.5956, allocations: 4 kB / 409.2 MB, free: 37.01 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0007451/0.5963, allocations: 259.9 kB / 409.4 MB, free: 36.76 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.0002682/0.5966, allocations: 131.5 kB / 409.6 MB, free: 36.62 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.006543/0.6031, allocations: 2.332 MB / 411.9 MB, free: 34.27 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 5.7e-06/0.6032, allocations: 0 / 411.9 MB, free: 34.27 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003271/0.6064, allocations: 1.151 MB / 413 MB, free: 33.13 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008146/0.6073, allocations: 118.3 kB / 413.2 MB, free: 33.02 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003261/0.6105, allocations: 2.151 MB / 415.3 MB, free: 30.86 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000279/0.6108, allocations: 0.9425 MB / 416.3 MB, free: 29.88 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0002591/0.6111, allocations: 58.62 kB / 416.3 MB, free: 29.82 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001055/0.6112, allocations: 31.44 kB / 416.3 MB, free: 29.79 MB / 318.1 MB Notification: Performance of SimCode: time 1.193e-06/0.6112, allocations: 0 / 416.3 MB, free: 29.79 MB / 318.1 MB Notification: Performance of Templates: time 0.02583/0.6371, allocations: 20.35 MB / 436.7 MB, free: 9.438 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