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.001718/0.001718, allocations: 179.2 kB / 16.41 MB, free: 5.707 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.535/1.535, allocations: 205.4 MB / 222.5 MB, free: 9.105 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.000876/0.0008761, allocations: 95.89 kB / 270.9 MB, free: 8.355 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003283/0.0003286, allocations: 11.98 kB / 327 MB, free: 192 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2387/0.239, allocations: 47.57 MB / 374.5 MB, free: 45.37 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate): time 0.004645/0.2438, allocations: 4.07 MB / 378.6 MB, free: 42.18 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.00255/0.2464, allocations: 1.223 MB / 379.8 MB, free: 41.16 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004621/0.2469, allocations: 8.688 kB / 379.8 MB, free: 41.16 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002095/0.2471, allocations: 84.39 kB / 379.9 MB, free: 41.09 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004289/0.2475, allocations: 209 kB / 380.1 MB, free: 40.91 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006647/0.2482, allocations: 217.3 kB / 380.3 MB, free: 40.73 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0009365/0.2491, allocations: 0.9397 MB / 381.3 MB, free: 40.16 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003452/0.2495, allocations: 196.1 kB / 381.5 MB, free: 40.03 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005698/0.2501, allocations: 342.7 kB / 381.8 MB, free: 39.85 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004154/0.2505, allocations: 408 kB / 382.2 MB, free: 39.58 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001039/0.2506, allocations: 44.62 kB / 382.3 MB, free: 39.58 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002584/0.2509, allocations: 71.88 kB / 382.3 MB, free: 39.57 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001105/0.251, allocations: 141.5 kB / 382.5 MB, free: 39.45 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001694/0.2512, allocations: 166.9 kB / 382.6 MB, free: 39.35 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005631/0.2518, allocations: 0.7193 MB / 383.3 MB, free: 38.8 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.27e-06/0.2518, allocations: 0 / 383.3 MB, free: 38.8 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.743e-06/0.2518, allocations: 1.844 kB / 383.3 MB, free: 38.8 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.169e-05/0.2518, allocations: 0 / 383.3 MB, free: 38.8 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.002382/0.2542, allocations: 1.114 MB / 384.5 MB, free: 37.95 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.901e-05/0.2542, allocations: 8.969 kB / 384.5 MB, free: 37.95 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000211/0.2545, allocations: 91.41 kB / 384.6 MB, free: 37.9 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006355/0.2551, allocations: 446.7 kB / 385 MB, free: 37.5 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.149e-05/0.2552, allocations: 49.98 kB / 385 MB, free: 37.48 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001222/0.2553, allocations: 64.91 kB / 385.1 MB, free: 37.46 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001471/0.2568, allocations: 0.6623 MB / 385.8 MB, free: 37.08 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.413e-05/0.2568, allocations: 0 / 385.8 MB, free: 37.08 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.055e-05/0.2569, allocations: 25.81 kB / 385.8 MB, free: 37.06 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.688e-05/0.2569, allocations: 18.59 kB / 385.8 MB, free: 37.05 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001768/0.2587, allocations: 0.7293 MB / 386.5 MB, free: 36.7 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.003474/0.2622, allocations: 2.372 MB / 388.9 MB, free: 34.16 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001317/0.2635, allocations: 0.6305 MB / 389.5 MB, free: 33.53 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006576/0.2642, allocations: 366.9 kB / 389.9 MB, free: 33.17 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.999e-05/0.2642, allocations: 12.41 kB / 389.9 MB, free: 33.16 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008868/0.2651, allocations: 453.4 kB / 390.4 MB, free: 32.69 MB / 298.7 MB Notification: Performance of pre-optimization done (n=54): time 2.465e-06/0.2652, allocations: 3.938 kB / 390.4 MB, free: 32.68 MB / 298.7 MB Notification: Performance of matching and sorting (n=94): time 0.06624/0.3314, allocations: 16.74 MB / 407.1 MB, free: 15.85 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.872e-05/0.3315, allocations: 141.5 kB / 407.2 MB, free: 15.68 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000484/0.332, allocations: 486.9 kB / 407.7 MB, free: 15.2 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001528/0.3322, allocations: 45.7 kB / 407.8 MB, free: 15.15 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000172/0.3323, allocations: 367.9 kB / 408.1 MB, free: 14.78 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001873/0.3325, allocations: 311.5 kB / 408.4 MB, free: 14.47 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.15e-05/0.3326, allocations: 20 kB / 408.4 MB, free: 14.45 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 7.943e-05/0.3327, allocations: 386.8 kB / 408.8 MB, free: 14.07 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001823/0.3345, allocations: 0.7905 MB / 409.6 MB, free: 13.28 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001841/0.3364, allocations: 1.001 MB / 410.6 MB, free: 12.2 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001886/0.3383, allocations: 0.8847 MB / 411.5 MB, free: 11.3 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.179e-06/0.3383, allocations: 0 / 411.5 MB, free: 11.3 MB / 298.7 MB Notification: Performance of matching and sorting (n=124) (initialization): time 0.0222/0.3605, allocations: 5.62 MB / 417.1 MB, free: 5.652 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001006/0.3607, allocations: 67.39 kB / 417.2 MB, free: 5.574 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.238e-05/0.3607, allocations: 4 kB / 417.2 MB, free: 5.57 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.03409/0.3948, allocations: 7.321 MB / 424.5 MB, free: 14.23 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007763/0.3956, allocations: 175.7 kB / 424.7 MB, free: 14.06 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00706/0.4027, allocations: 3.2 MB / 427.9 MB, free: 10.81 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00177/0.4045, allocations: 219.8 kB / 428.1 MB, free: 10.59 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001209/0.4047, allocations: 47.98 kB / 428.1 MB, free: 10.55 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.0005048/0.4052, allocations: 230.3 kB / 428.4 MB, free: 10.31 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001511/0.4053, allocations: 75.06 kB / 428.4 MB, free: 10.24 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02352/0.4289, allocations: 5.458 MB / 433.9 MB, free: 4.75 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.827e-05/0.429, allocations: 12 kB / 433.9 MB, free: 4.738 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.469e-05/0.429, allocations: 4.203 kB / 433.9 MB, free: 4.734 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.876e-05/0.429, allocations: 3.984 kB / 433.9 MB, free: 4.73 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001924/0.4309, allocations: 1.093 MB / 435 MB, free: 3.59 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.951e-06/0.431, allocations: 0 / 435 MB, free: 3.59 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005854/0.4316, allocations: 131.8 kB / 435.1 MB, free: 3.461 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.03524/0.4668, allocations: 7.289 MB / 442.4 MB, free: 12.16 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002247/0.4671, allocations: 27.97 kB / 442.5 MB, free: 12.13 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0059/0.473, allocations: 3.09 MB / 445.5 MB, free: 8.984 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.765e-06/0.473, allocations: 0 / 445.5 MB, free: 8.984 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02748/0.5005, allocations: 6.413 MB / 452 MB, free: 2.535 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003434/0.5009, allocations: 144.2 kB / 452.1 MB, free: 2.375 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001837/0.5011, allocations: 23.94 kB / 452.1 MB, free: 2.352 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001521/0.5026, allocations: 207.8 kB / 452.3 MB, free: 2.148 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002428/0.5029, allocations: 100.8 kB / 452.4 MB, free: 2.051 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.515e-05/0.503, allocations: 43.91 kB / 452.5 MB, free: 2.008 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0003971/0.5034, allocations: 330.9 kB / 452.8 MB, free: 1.688 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.5034, allocations: 0 / 452.8 MB, free: 1.688 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0007507/0.5042, allocations: 252 kB / 453 MB, free: 1.441 MB / 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.0002777/0.5045, allocations: 127.2 kB / 453.2 MB, free: 1.309 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.007289/0.5117, allocations: 2.317 MB / 455.5 MB, free: 14.97 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 8.757e-06/0.5118, allocations: 0 / 455.5 MB, free: 14.97 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003756/0.5156, allocations: 1.153 MB / 456.6 MB, free: 13.82 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000869/0.5165, allocations: 122.2 kB / 456.7 MB, free: 13.7 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004208/0.5207, allocations: 2.099 MB / 458.8 MB, free: 11.57 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004911/0.5212, allocations: 0.9388 MB / 459.8 MB, free: 10.6 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001605/0.5214, allocations: 31.44 kB / 459.8 MB, free: 10.57 MB / 346.7 MB Notification: Performance of SimCode: time 7.72e-07/0.5214, allocations: 0 / 459.8 MB, free: 10.57 MB / 346.7 MB Notification: Performance of Templates: time 0.02404/0.5454, allocations: 16.8 MB / 476.6 MB, free: 9.781 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