Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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_cpp_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_cpp_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001322/0.001322, allocations: 175.4 kB / 16.72 MB, free: 5.078 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.546/1.546, allocations: 205.4 MB / 222.9 MB, free: 8.945 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007594/0.0007593, allocations: 96.72 kB / 271.2 MB, free: 8.238 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000335/0.0003352, allocations: 12 kB / 327.5 MB, free: 15.89 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2552/0.2555, allocations: 47.57 MB / 375.1 MB, free: 45.43 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate): time 0.004063/0.2596, allocations: 4.073 MB / 379.2 MB, free: 42.2 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.002499/0.2622, allocations: 1.23 MB / 380.4 MB, free: 41.18 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005041/0.2627, allocations: 9.719 kB / 380.4 MB, free: 41.18 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002299/0.2629, allocations: 84.61 kB / 380.5 MB, free: 41.1 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004851/0.2634, allocations: 208.3 kB / 380.7 MB, free: 40.92 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006383/0.2641, allocations: 218 kB / 380.9 MB, free: 40.74 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0009429/0.265, allocations: 0.9443 MB / 381.8 MB, free: 40.16 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003984/0.2655, allocations: 213.5 kB / 382 MB, free: 40.04 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004716/0.2659, allocations: 347.7 kB / 382.4 MB, free: 39.85 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000405/0.2664, allocations: 399.3 kB / 382.8 MB, free: 39.59 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 9.722e-05/0.2665, allocations: 44.34 kB / 382.8 MB, free: 39.59 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002007/0.2667, allocations: 72.84 kB / 382.9 MB, free: 39.57 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001117/0.2668, allocations: 145.8 kB / 383 MB, free: 39.45 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003504/0.2671, allocations: 395.8 kB / 383.4 MB, free: 39.18 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005412/0.2677, allocations: 0.7156 MB / 384.1 MB, free: 38.64 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.532e-06/0.2677, allocations: 0 / 384.1 MB, free: 38.64 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.674e-06/0.2677, allocations: 0 / 384.1 MB, free: 38.64 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.132e-05/0.2677, allocations: 1.094 kB / 384.1 MB, free: 38.64 MB / 298.7 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.00227/0.27, allocations: 1.11 MB / 385.2 MB, free: 37.78 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.9e-05/0.2701, allocations: 8.906 kB / 385.2 MB, free: 37.78 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001642/0.2702, allocations: 96 kB / 385.3 MB, free: 37.73 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005289/0.2708, allocations: 468.9 kB / 385.8 MB, free: 37.31 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.683e-05/0.2708, allocations: 42.06 kB / 385.8 MB, free: 37.29 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001038/0.2709, allocations: 61.94 kB / 385.9 MB, free: 37.27 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00135/0.2723, allocations: 0.6615 MB / 386.6 MB, free: 36.89 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.092e-05/0.2723, allocations: 5.5 kB / 386.6 MB, free: 36.89 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.218e-05/0.2724, allocations: 29.67 kB / 386.6 MB, free: 36.87 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.678e-05/0.2724, allocations: 14.72 kB / 386.6 MB, free: 36.87 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001524/0.274, allocations: 0.7299 MB / 387.3 MB, free: 36.31 MB / 298.7 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.003367/0.2773, allocations: 2.374 MB / 389.7 MB, free: 33.78 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001319/0.2787, allocations: 0.6412 MB / 390.4 MB, free: 33.13 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006607/0.2794, allocations: 358.6 kB / 390.7 MB, free: 32.78 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.936e-05/0.2794, allocations: 12.42 kB / 390.7 MB, free: 32.77 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009062/0.2803, allocations: 457.4 kB / 391.2 MB, free: 32.29 MB / 298.7 MB Notification: Performance of pre-optimization done (n=54): time 3.056e-06/0.2804, allocations: 4 kB / 391.2 MB, free: 32.29 MB / 298.7 MB Notification: Performance of matching and sorting (n=94): time 0.06451/0.3449, allocations: 16.73 MB / 407.9 MB, free: 15.46 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.72e-05/0.345, allocations: 145.5 kB / 408 MB, free: 15.29 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005694/0.3456, allocations: 490.8 kB / 408.5 MB, free: 14.8 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001662/0.3457, allocations: 45.7 kB / 408.6 MB, free: 14.75 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001703/0.3459, allocations: 360 kB / 408.9 MB, free: 14.39 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002095/0.3461, allocations: 315.5 kB / 409.2 MB, free: 14.08 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.026e-05/0.3462, allocations: 20 kB / 409.2 MB, free: 14.06 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001062/0.3463, allocations: 382.8 kB / 409.6 MB, free: 13.68 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00178/0.3481, allocations: 0.7905 MB / 410.4 MB, free: 12.89 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001872/0.35, allocations: 1.002 MB / 411.4 MB, free: 11.81 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003571/0.3536, allocations: 1.811 MB / 413.2 MB, free: 9.918 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.342e-06/0.3536, allocations: 0 / 413.2 MB, free: 9.918 MB / 298.7 MB Notification: Performance of matching and sorting (n=124) (initialization): time 0.02101/0.3746, allocations: 5.628 MB / 418.8 MB, free: 4.262 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.668e-05/0.3748, allocations: 67.39 kB / 418.9 MB, free: 4.184 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.695e-05/0.3748, allocations: 4 kB / 418.9 MB, free: 4.18 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.03416/0.4089, allocations: 7.324 MB / 426.2 MB, free: 12.84 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007584/0.4098, allocations: 171.7 kB / 426.4 MB, free: 12.67 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006932/0.4167, allocations: 3.204 MB / 429.6 MB, free: 9.414 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001871/0.4186, allocations: 223.8 kB / 429.8 MB, free: 9.195 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001816/0.4188, allocations: 47.97 kB / 429.9 MB, free: 9.148 MB / 314.7 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 ($whenCondition2,$whenCondition1,$PRE.V1.signalSource.T_start,V1.signalSource.T_start,$PRE.V1.signalSource.count,V1.signalSource.count,$PRE.V2.signalSource.T_start,V2.signalSource.T_start,$PRE.V2.signalSource.count,V2.signalSource.count) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {5 32,5 32} Notification: Performance of prepare postOptimizeDAE: time 0.0005067/0.4193, allocations: 217.7 kB / 430.1 MB, free: 8.926 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001748/0.4195, allocations: 79.06 kB / 430.2 MB, free: 8.848 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02323/0.4428, allocations: 5.466 MB / 435.6 MB, free: 3.352 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.024e-05/0.4428, allocations: 12 kB / 435.6 MB, free: 3.34 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.978e-06/0.4428, allocations: 0 / 435.6 MB, free: 3.34 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.448e-05/0.4429, allocations: 7.922 kB / 435.7 MB, free: 3.332 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001761/0.4446, allocations: 1.091 MB / 436.7 MB, free: 2.191 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.017e-06/0.4447, allocations: 4 kB / 436.7 MB, free: 2.188 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006408/0.4453, allocations: 123.9 kB / 436.9 MB, free: 2.066 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.03478/0.4801, allocations: 7.285 MB / 444.2 MB, free: 10.76 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002543/0.4804, allocations: 27.97 kB / 444.2 MB, free: 10.73 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006057/0.4865, allocations: 3.087 MB / 447.3 MB, free: 7.594 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.615e-06/0.4865, allocations: 4 kB / 447.3 MB, free: 7.59 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02639/0.5129, allocations: 6.417 MB / 453.7 MB, free: 1.137 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005054/0.5135, allocations: 144.2 kB / 453.8 MB, free: 0.9766 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004379/0.514, allocations: 20 kB / 453.8 MB, free: 0.957 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001779/0.5158, allocations: 215.8 kB / 454.1 MB, free: 0.7461 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003955/0.5162, allocations: 104.8 kB / 454.2 MB, free: 0.6445 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001663/0.5164, allocations: 35.97 kB / 454.2 MB, free: 0.6094 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.000554/0.5169, allocations: 330.9 kB / 454.5 MB, free: 296 kB / 330.7 MB Notification: Performance of sort global known variables: time 2.91e-07/0.517, allocations: 0 / 454.5 MB, free: 296 kB / 330.7 MB Notification: Performance of remove unused functions: time 0.001172/0.5181, allocations: 256 kB / 454.8 MB, free: 40 kB / 330.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {5 32,5 36} Notification: Performance of Backend phase and start with SimCode phase: time 0.0004029/0.5186, allocations: 131.3 kB / 454.9 MB, free: 15.9 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.007157/0.5257, allocations: 2.317 MB / 457.2 MB, free: 13.56 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 7.885e-06/0.5258, allocations: 0 / 457.2 MB, free: 13.56 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00371/0.5295, allocations: 1.148 MB / 458.4 MB, free: 12.42 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001106/0.5306, allocations: 118.2 kB / 458.5 MB, free: 12.3 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004625/0.5353, allocations: 2.1 MB / 460.6 MB, free: 10.17 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006798/0.536, allocations: 0.9427 MB / 461.5 MB, free: 9.203 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001969/0.5362, allocations: 35.44 kB / 461.6 MB, free: 9.172 MB / 346.7 MB Notification: Performance of SimCode: time 1.323e-06/0.5362, allocations: 0 / 461.6 MB, free: 9.172 MB / 346.7 MB Notification: Performance of Templates: time 0.0254/0.5616, allocations: 16.75 MB / 478.3 MB, free: 8.422 MB / 362.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.sim & ./Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_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_cpp_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches