Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: translateModel(Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|HeatCapacitor1.T",fileNamePrefix="Modelica_trunk_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_trunk_cpp_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001656/0.001656, allocations: 192 kB / 17.37 MB, free: 4.434 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.317/1.317, allocations: 226.6 MB / 244.7 MB, free: 6.457 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007653/0.0007652, allocations: 96.7 kB / 296.8 MB, free: 6.715 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000221/0.000221, allocations: 8 kB / 356.7 MB, free: 10.73 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1992/0.1994, allocations: 51.3 MB / 408 MB, free: 27.73 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate): time 0.003191/0.2026, allocations: 4.284 MB / 412.3 MB, free: 23.43 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001856/0.2045, allocations: 1.243 MB / 413.6 MB, free: 22.19 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002682/0.2048, allocations: 19.88 kB / 413.6 MB, free: 22.17 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001823/0.205, allocations: 83.3 kB / 413.7 MB, free: 22.09 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003262/0.2053, allocations: 221.5 kB / 413.9 MB, free: 21.88 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004714/0.2058, allocations: 227.6 kB / 414.1 MB, free: 21.65 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.00059/0.2064, allocations: 0.9819 MB / 415.1 MB, free: 20.66 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002723/0.2067, allocations: 224.9 kB / 415.3 MB, free: 20.43 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002613/0.207, allocations: 358.6 kB / 415.7 MB, free: 20.08 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003602/0.2073, allocations: 410.3 kB / 416.1 MB, free: 19.68 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 7.87e-05/0.2074, allocations: 48 kB / 416.1 MB, free: 19.63 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000156/0.2076, allocations: 63.98 kB / 416.2 MB, free: 19.57 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 9.666e-05/0.2077, allocations: 155.3 kB / 416.3 MB, free: 19.42 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002612/0.208, allocations: 407.8 kB / 416.7 MB, free: 19.01 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004323/0.2084, allocations: 0.745 MB / 417.5 MB, free: 18.27 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.16e-06/0.2084, allocations: 0 / 417.5 MB, free: 18.27 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.813e-06/0.2084, allocations: 0 / 417.5 MB, free: 18.27 MB / 298.7 MB Notification: Performance of Transformations before backend: time 8.907e-06/0.2084, allocations: 0 / 417.5 MB, free: 18.27 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: 158 * Number of variables: 158 Notification: Performance of Generate backend data structure: time 0.001842/0.2103, allocations: 1.153 MB / 418.6 MB, free: 17.04 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.542e-05/0.2103, allocations: 8.031 kB / 418.6 MB, free: 17.04 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001254/0.2105, allocations: 95.91 kB / 418.7 MB, free: 16.94 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004576/0.2109, allocations: 475.5 kB / 419.2 MB, free: 16.44 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.367e-05/0.211, allocations: 45.69 kB / 419.2 MB, free: 16.39 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.567e-05/0.2111, allocations: 68.36 kB / 419.3 MB, free: 16.33 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001176/0.2122, allocations: 0.686 MB / 420 MB, free: 15.63 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.918e-05/0.2123, allocations: 0 / 420 MB, free: 15.63 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.822e-05/0.2123, allocations: 28 kB / 420 MB, free: 15.61 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.036e-05/0.2124, allocations: 16 kB / 420 MB, free: 15.59 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001454/0.2138, allocations: 0.7508 MB / 420.8 MB, free: 14.84 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.003238/0.2171, allocations: 2.433 MB / 423.2 MB, free: 12.25 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001244/0.2183, allocations: 0.6436 MB / 423.8 MB, free: 11.6 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006289/0.219, allocations: 361.9 kB / 424.2 MB, free: 11.24 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.034e-05/0.219, allocations: 8.438 kB / 424.2 MB, free: 11.23 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008869/0.2199, allocations: 453.2 kB / 424.7 MB, free: 10.77 MB / 298.7 MB Notification: Performance of pre-optimization done (n=54): time 2.695e-06/0.2199, allocations: 7.938 kB / 424.7 MB, free: 10.77 MB / 298.7 MB Notification: Performance of matching and sorting (n=94): time 0.06337/0.2833, allocations: 16.74 MB / 441.4 MB, free: 9.93 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.702e-05/0.2834, allocations: 153.4 kB / 441.5 MB, free: 9.75 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000645/0.2841, allocations: 0.5146 MB / 442.1 MB, free: 9.227 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001812/0.2843, allocations: 41.7 kB / 442.1 MB, free: 9.18 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002599/0.2846, allocations: 383.8 kB / 442.5 MB, free: 8.797 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003304/0.2849, allocations: 319.3 kB / 442.8 MB, free: 8.48 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.761e-05/0.285, allocations: 20 kB / 442.8 MB, free: 8.461 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001573/0.2852, allocations: 390.7 kB / 443.2 MB, free: 8.07 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002066/0.2872, allocations: 0.7986 MB / 444 MB, free: 7.273 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002166/0.2894, allocations: 1.029 MB / 445 MB, free: 6.152 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004104/0.2935, allocations: 1.841 MB / 446.9 MB, free: 4.219 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.873e-06/0.2936, allocations: 4 kB / 446.9 MB, free: 4.215 MB / 314.7 MB Notification: Performance of matching and sorting (n=128) (initialization): time 0.02273/0.3163, allocations: 5.644 MB / 452.5 MB, free: 14.54 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.813e-05/0.3164, allocations: 67.39 kB / 452.6 MB, free: 14.46 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.915e-05/0.3164, allocations: 11.94 kB / 452.6 MB, free: 14.45 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.03446/0.3509, allocations: 7.321 MB / 459.9 MB, free: 7.105 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007464/0.3517, allocations: 175.8 kB / 460.1 MB, free: 6.934 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00674/0.3585, allocations: 3.207 MB / 463.3 MB, free: 3.672 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001638/0.3601, allocations: 223.8 kB / 463.5 MB, free: 3.453 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001546/0.3603, allocations: 47.97 kB / 463.5 MB, free: 3.406 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 27 * 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 (54): * Single equations (assignments): 50 * 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.0004487/0.3608, allocations: 221.7 kB / 463.8 MB, free: 3.18 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001847/0.361, allocations: 82.97 kB / 463.8 MB, free: 3.098 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02255/0.3835, allocations: 5.462 MB / 469.3 MB, free: 13.61 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.866e-05/0.3836, allocations: 12 kB / 469.3 MB, free: 13.6 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.105e-06/0.3836, allocations: 0 / 469.3 MB, free: 13.6 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.655e-05/0.3836, allocations: 11.91 kB / 469.3 MB, free: 13.59 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001602/0.3852, allocations: 1.1 MB / 470.4 MB, free: 12.44 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.889e-06/0.3853, allocations: 0 / 470.4 MB, free: 12.44 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005611/0.3858, allocations: 135.8 kB / 470.6 MB, free: 12.3 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.03418/0.42, allocations: 7.293 MB / 477.9 MB, free: 4.996 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002143/0.4203, allocations: 23.98 kB / 477.9 MB, free: 4.973 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005721/0.426, allocations: 3.072 MB / 481 MB, free: 1.844 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.827e-06/0.426, allocations: 3.984 kB / 481 MB, free: 1.84 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02481/0.4509, allocations: 6.428 MB / 487.4 MB, free: 11.38 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002171/0.4511, allocations: 144.1 kB / 487.5 MB, free: 11.22 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002333/0.4514, allocations: 23.98 kB / 487.5 MB, free: 11.2 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001409/0.4528, allocations: 207.8 kB / 487.8 MB, free: 11 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002718/0.4531, allocations: 112.8 kB / 487.9 MB, free: 10.89 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001005/0.4532, allocations: 28.03 kB / 487.9 MB, free: 10.86 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0004251/0.4536, allocations: 354.8 kB / 488.2 MB, free: 10.52 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4536, allocations: 0 / 488.2 MB, free: 10.52 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0007774/0.4544, allocations: 260 kB / 488.5 MB, free: 10.26 MB / 362.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.0002746/0.4547, allocations: 127 kB / 488.6 MB, free: 10.12 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.006788/0.4615, allocations: 2.337 MB / 491 MB, free: 7.762 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 4.027e-06/0.4615, allocations: 0 / 491 MB, free: 7.762 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003376/0.4649, allocations: 1.14 MB / 492.1 MB, free: 6.621 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007485/0.4657, allocations: 134.2 kB / 492.2 MB, free: 6.492 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003749/0.4694, allocations: 2.146 MB / 494.4 MB, free: 4.324 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004827/0.4699, allocations: 0.9506 MB / 495.3 MB, free: 3.344 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000166/0.4701, allocations: 35.44 kB / 495.4 MB, free: 3.309 MB / 362.7 MB Notification: Performance of SimCode: time 3.9e-07/0.4701, allocations: 0 / 495.4 MB, free: 3.309 MB / 362.7 MB Notification: Performance of Templates: time 0.02044/0.4906, allocations: 17.31 MB / 0.5006 GB, free: 2.031 MB / 378.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.makefile (rm -f Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.pipe >> ../files/Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.sim & ./Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/HeatingPNP_NORGate/HeatingPNP_NORGate.csv","../files/Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches