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.002781/0.00278, allocations: 186.7 kB / 16.4 MB, free: 5.625 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 3.79/3.79, allocations: 205.4 MB / 222.5 MB, free: 13.85 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.001844/0.001844, allocations: 94.86 kB / 270.9 MB, free: 13.38 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000626/0.0006261, allocations: 16 kB / 327 MB, free: 15.11 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1636/0.1642, allocations: 47.57 MB / 374.5 MB, free: 15.45 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate): time 0.009524/0.1738, allocations: 3.768 MB / 378.3 MB, free: 11.66 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.005079/0.179, allocations: 1.281 MB / 379.6 MB, free: 10.37 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009715/0.18, allocations: 12 kB / 379.6 MB, free: 10.36 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000418/0.1805, allocations: 87.23 kB / 379.7 MB, free: 10.27 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001677/0.1822, allocations: 263.2 kB / 379.9 MB, free: 10.01 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001463/0.1837, allocations: 215.6 kB / 380.1 MB, free: 9.801 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.002538/0.1863, allocations: 0.6604 MB / 380.8 MB, free: 9.141 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000771/0.1872, allocations: 199.5 kB / 381 MB, free: 8.93 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001063/0.1882, allocations: 350.8 kB / 381.3 MB, free: 8.586 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001096/0.1894, allocations: 398.4 kB / 381.7 MB, free: 8.195 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003113/0.1897, allocations: 48 kB / 381.8 MB, free: 8.148 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004504/0.1902, allocations: 63.98 kB / 381.8 MB, free: 8.086 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002962/0.1905, allocations: 151.4 kB / 382 MB, free: 7.938 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004052/0.1909, allocations: 161.3 kB / 382.1 MB, free: 7.773 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001828/0.1928, allocations: 0.7092 MB / 382.9 MB, free: 7.062 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.809e-06/0.1928, allocations: 0 / 382.9 MB, free: 7.062 MB / 282.7 MB Notification: Performance of FrontEnd: time 3.026e-06/0.1928, allocations: 0 / 382.9 MB, free: 7.062 MB / 282.7 MB Notification: Performance of Transformations before backend: time 3.097e-05/0.1929, allocations: 4 kB / 382.9 MB, free: 7.059 MB / 282.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.006217/0.1991, allocations: 1.118 MB / 384 MB, free: 5.875 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.545e-05/0.1992, allocations: 8.031 kB / 384 MB, free: 5.867 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005405/0.1998, allocations: 83.06 kB / 384.1 MB, free: 5.785 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001506/0.2013, allocations: 452.4 kB / 384.5 MB, free: 5.305 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001052/0.2014, allocations: 49.27 kB / 384.6 MB, free: 5.258 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003272/0.2018, allocations: 63.98 kB / 384.6 MB, free: 5.195 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003622/0.2054, allocations: 0.6623 MB / 385.3 MB, free: 4.523 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.57e-05/0.2055, allocations: 0 / 385.3 MB, free: 4.523 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001893/0.2057, allocations: 31.98 kB / 385.3 MB, free: 4.492 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.312e-05/0.2058, allocations: 12 kB / 385.3 MB, free: 4.48 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004736/0.2106, allocations: 0.7273 MB / 386.1 MB, free: 3.754 MB / 282.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.01041/0.221, allocations: 2.375 MB / 388.4 MB, free: 1.219 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004037/0.2251, allocations: 0.6295 MB / 389.1 MB, free: 0.582 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001438/0.2254, allocations: 20.42 kB / 389.1 MB, free: 0.5625 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0026/0.228, allocations: 449.4 kB / 389.5 MB, free: 100 kB / 282.7 MB Notification: Performance of pre-optimization done (n=54): time 8.907e-06/0.228, allocations: 3.984 kB / 389.5 MB, free: 96 kB / 282.7 MB Notification: Performance of matching and sorting (n=94): time 0.5839/0.812, allocations: 16.69 MB / 406.2 MB, free: 16.26 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001007/0.8122, allocations: 142.2 kB / 406.3 MB, free: 16.09 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001134/0.8133, allocations: 494.8 kB / 406.8 MB, free: 15.6 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003845/0.8138, allocations: 53.42 kB / 406.9 MB, free: 15.55 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003807/0.8142, allocations: 400 kB / 407.3 MB, free: 15.15 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005975/0.8148, allocations: 311.2 kB / 407.6 MB, free: 14.85 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001959/0.815, allocations: 16 kB / 407.6 MB, free: 14.84 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001316/0.8152, allocations: 347.6 kB / 407.9 MB, free: 14.49 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005607/0.8208, allocations: 0.7944 MB / 408.7 MB, free: 13.69 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005837/0.8267, allocations: 1.001 MB / 409.7 MB, free: 12.61 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005634/0.8324, allocations: 0.8718 MB / 410.6 MB, free: 11.73 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.548e-05/0.8325, allocations: 4 kB / 410.6 MB, free: 11.73 MB / 282.7 MB Notification: Performance of matching and sorting (n=124) (initialization): time 0.05755/0.8901, allocations: 5.593 MB / 416.2 MB, free: 6.117 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.194e-05/0.8902, allocations: 63.39 kB / 416.3 MB, free: 6.043 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.269e-05/0.8903, allocations: 4 kB / 416.3 MB, free: 6.039 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.09128/0.9816, allocations: 7.32 MB / 423.6 MB, free: 14.71 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001911/0.9836, allocations: 179.1 kB / 423.8 MB, free: 14.54 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01721/1.001, allocations: 3.203 MB / 427 MB, free: 11.29 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004375/1.005, allocations: 223.8 kB / 427.2 MB, free: 11.07 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003623/1.006, allocations: 39.98 kB / 427.2 MB, free: 11.03 MB / 298.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.0008621/1.007, allocations: 227.5 kB / 427.4 MB, free: 10.8 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004285/1.007, allocations: 79.06 kB / 427.5 MB, free: 10.72 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.06271/1.07, allocations: 5.457 MB / 433 MB, free: 5.258 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.479e-05/1.07, allocations: 12 kB / 433 MB, free: 5.246 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.26e-05/1.07, allocations: 0 / 433 MB, free: 5.246 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.74e-05/1.07, allocations: 3.984 kB / 433 MB, free: 5.242 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003471/1.073, allocations: 1.087 MB / 434.1 MB, free: 4.125 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.146e-05/1.074, allocations: 0 / 434.1 MB, free: 4.125 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001348/1.075, allocations: 127.8 kB / 434.2 MB, free: 4 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.1609/1.236, allocations: 7.292 MB / 441.5 MB, free: 12.7 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004104/1.236, allocations: 26.92 kB / 441.5 MB, free: 12.68 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02504/1.261, allocations: 3.082 MB / 444.6 MB, free: 9.543 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.366e-06/1.261, allocations: 3.953 kB / 444.6 MB, free: 9.539 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.09526/1.357, allocations: 6.422 MB / 451 MB, free: 3.102 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004303/1.357, allocations: 140.2 kB / 451.2 MB, free: 2.945 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005117/1.358, allocations: 24 kB / 451.2 MB, free: 2.922 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003598/1.361, allocations: 219.7 kB / 451.4 MB, free: 2.707 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007188/1.362, allocations: 97.92 kB / 451.5 MB, free: 2.613 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000272/1.362, allocations: 35.97 kB / 451.5 MB, free: 2.578 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0008946/1.363, allocations: 330.9 kB / 451.9 MB, free: 2.258 MB / 314.7 MB Notification: Performance of sort global known variables: time 7.61e-07/1.363, allocations: 0 / 451.9 MB, free: 2.258 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.001873/1.365, allocations: 248 kB / 452.1 MB, free: 2.016 MB / 314.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.000557/1.366, allocations: 133.5 kB / 452.2 MB, free: 1.875 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.01771/1.384, allocations: 2.331 MB / 454.6 MB, free: 15.53 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 1.349e-05/1.384, allocations: 0 / 454.6 MB, free: 15.53 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.009085/1.393, allocations: 1.145 MB / 455.7 MB, free: 14.39 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001567/1.394, allocations: 110.2 kB / 455.8 MB, free: 14.28 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008883/1.403, allocations: 2.092 MB / 457.9 MB, free: 12.16 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009725/1.404, allocations: 0.9594 MB / 458.9 MB, free: 11.17 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004416/1.405, allocations: 31.44 kB / 458.9 MB, free: 11.14 MB / 330.7 MB Notification: Performance of SimCode: time 1.473e-06/1.405, allocations: 0 / 458.9 MB, free: 11.14 MB / 330.7 MB Notification: Performance of Templates: time 0.05103/1.456, allocations: 16.06 MB / 475 MB, free: 11.06 MB / 346.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/jenkins1/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