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.001577/0.001577, allocations: 195.9 kB / 17.05 MB, free: 5.098 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.374/1.374, allocations: 226.6 MB / 244.3 MB, free: 8.223 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007795/0.0007795, allocations: 97.8 kB / 296.4 MB, free: 7.016 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002209/0.0002211, allocations: 8 kB / 356.2 MB, free: 11.22 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1949/0.1951, allocations: 51.29 MB / 407.5 MB, free: 27.86 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate): time 0.00298/0.1982, allocations: 4.271 MB / 411.8 MB, free: 23.57 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001369/0.1996, allocations: 1.26 MB / 413 MB, free: 22.32 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002041/0.1998, allocations: 15.94 kB / 413 MB, free: 22.3 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001617/0.1999, allocations: 83.3 kB / 413.1 MB, free: 22.22 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002704/0.2002, allocations: 212.8 kB / 413.3 MB, free: 22.02 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000411/0.2006, allocations: 231.6 kB / 413.6 MB, free: 21.79 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.000549/0.2012, allocations: 0.9819 MB / 414.5 MB, free: 20.8 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002421/0.2015, allocations: 191.7 kB / 414.7 MB, free: 20.6 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002543/0.2017, allocations: 358.7 kB / 415.1 MB, free: 20.25 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000322/0.202, allocations: 414.2 kB / 415.5 MB, free: 19.84 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 7.514e-05/0.2021, allocations: 48 kB / 415.5 MB, free: 19.8 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001498/0.2023, allocations: 71.98 kB / 415.6 MB, free: 19.73 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 8.046e-05/0.2024, allocations: 151.3 kB / 415.7 MB, free: 19.58 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 9.911e-05/0.2025, allocations: 169.3 kB / 415.9 MB, free: 19.41 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004151/0.2029, allocations: 0.7372 MB / 416.6 MB, free: 18.67 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.869e-06/0.2029, allocations: 0 / 416.6 MB, free: 18.67 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.893e-06/0.2029, allocations: 0 / 416.6 MB, free: 18.67 MB / 298.7 MB Notification: Performance of Transformations before backend: time 9.468e-06/0.2029, allocations: 3.938 kB / 416.7 MB, free: 18.66 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.2048, allocations: 1.161 MB / 417.8 MB, free: 17.43 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.109e-05/0.2048, allocations: 8.031 kB / 417.8 MB, free: 17.43 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001475/0.205, allocations: 94.97 kB / 417.9 MB, free: 17.33 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004306/0.2054, allocations: 458.6 kB / 418.4 MB, free: 16.84 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.065e-05/0.2055, allocations: 49.25 kB / 418.4 MB, free: 16.8 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.129e-05/0.2055, allocations: 64 kB / 418.5 MB, free: 16.73 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001195/0.2067, allocations: 0.674 MB / 419.1 MB, free: 16.05 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.538e-05/0.2068, allocations: 0 / 419.1 MB, free: 16.05 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.602e-05/0.2068, allocations: 24 kB / 419.2 MB, free: 16.03 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.016e-05/0.2069, allocations: 20 kB / 419.2 MB, free: 16.01 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001461/0.2083, allocations: 0.7507 MB / 419.9 MB, free: 15.26 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.002982/0.2113, allocations: 2.441 MB / 422.4 MB, free: 12.67 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001237/0.2126, allocations: 0.6335 MB / 423 MB, free: 12.02 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006415/0.2132, allocations: 361.9 kB / 423.4 MB, free: 11.66 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.024e-05/0.2133, allocations: 12.44 kB / 423.4 MB, free: 11.65 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007915/0.2141, allocations: 453.3 kB / 423.8 MB, free: 11.19 MB / 298.7 MB Notification: Performance of pre-optimization done (n=54): time 1.694e-06/0.2141, allocations: 0 / 423.8 MB, free: 11.19 MB / 298.7 MB Notification: Performance of matching and sorting (n=94): time 0.06556/0.2796, allocations: 16.75 MB / 440.6 MB, free: 10.33 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.119e-05/0.2798, allocations: 145.5 kB / 440.7 MB, free: 10.16 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005796/0.2804, allocations: 0.5184 MB / 441.2 MB, free: 9.633 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001267/0.2805, allocations: 45.7 kB / 441.3 MB, free: 9.582 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002423/0.2807, allocations: 379.8 kB / 441.7 MB, free: 9.203 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002414/0.281, allocations: 311.5 kB / 442 MB, free: 8.895 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.843e-05/0.2811, allocations: 28 kB / 442 MB, free: 8.867 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001399/0.2812, allocations: 382.8 kB / 442.4 MB, free: 8.484 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002014/0.2832, allocations: 0.7986 MB / 443.2 MB, free: 7.688 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002098/0.2853, allocations: 1.025 MB / 444.2 MB, free: 6.57 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002005/0.2874, allocations: 0.8769 MB / 445.1 MB, free: 5.684 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.988e-06/0.2874, allocations: 4 kB / 445.1 MB, free: 5.68 MB / 314.7 MB Notification: Performance of matching and sorting (n=128) (initialization): time 0.0226/0.31, allocations: 5.655 MB / 450.7 MB, free: 15.98 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.525e-05/0.3101, allocations: 70 kB / 450.8 MB, free: 15.91 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.402e-05/0.3101, allocations: 7.953 kB / 450.8 MB, free: 15.9 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.03465/0.3448, allocations: 7.32 MB / 458.1 MB, free: 8.562 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007235/0.3455, allocations: 179.7 kB / 458.3 MB, free: 8.387 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006692/0.3522, allocations: 3.203 MB / 461.5 MB, free: 5.129 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001676/0.3539, allocations: 223.8 kB / 461.7 MB, free: 4.91 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001067/0.3541, allocations: 51.95 kB / 461.8 MB, free: 4.859 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.0004476/0.3545, allocations: 229.7 kB / 462 MB, free: 4.625 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001583/0.3547, allocations: 79.06 kB / 462.1 MB, free: 4.547 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02334/0.378, allocations: 5.462 MB / 467.5 MB, free: 15.06 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.041e-05/0.3781, allocations: 8 kB / 467.5 MB, free: 15.05 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.177e-06/0.3781, allocations: 0 / 467.5 MB, free: 15.05 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.398e-05/0.3781, allocations: 7.969 kB / 467.5 MB, free: 15.05 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001606/0.3798, allocations: 1.112 MB / 468.7 MB, free: 13.89 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.312e-06/0.3798, allocations: 256 / 468.7 MB, free: 13.89 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00055/0.3803, allocations: 131.8 kB / 468.8 MB, free: 13.76 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0349/0.4152, allocations: 7.297 MB / 476.1 MB, free: 6.445 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002039/0.4155, allocations: 23.98 kB / 476.1 MB, free: 6.422 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005593/0.4211, allocations: 3.072 MB / 479.2 MB, free: 3.293 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.014e-06/0.4211, allocations: 0 / 479.2 MB, free: 3.293 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02472/0.4458, allocations: 6.417 MB / 485.6 MB, free: 12.85 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002526/0.4461, allocations: 144.1 kB / 485.7 MB, free: 12.69 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001581/0.4463, allocations: 27.98 kB / 485.8 MB, free: 12.66 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001333/0.4477, allocations: 207.8 kB / 486 MB, free: 12.46 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000259/0.4479, allocations: 104.8 kB / 486.1 MB, free: 12.36 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.26e-05/0.448, allocations: 31.92 kB / 486.1 MB, free: 12.32 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0004361/0.4485, allocations: 354.8 kB / 486.4 MB, free: 11.98 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.41e-07/0.4485, allocations: 0 / 486.4 MB, free: 11.98 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0007618/0.4492, allocations: 267.9 kB / 486.7 MB, free: 11.72 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.0002875/0.4495, allocations: 131.8 kB / 486.8 MB, free: 11.58 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.006805/0.4563, allocations: 2.324 MB / 489.2 MB, free: 9.227 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.216e-06/0.4564, allocations: 4 kB / 489.2 MB, free: 9.223 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003384/0.4597, allocations: 1.141 MB / 490.3 MB, free: 8.082 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006762/0.4604, allocations: 132.4 kB / 490.4 MB, free: 7.957 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003795/0.4642, allocations: 2.151 MB / 492.6 MB, free: 5.777 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004844/0.4647, allocations: 0.9506 MB / 493.5 MB, free: 4.797 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001525/0.4649, allocations: 39.42 kB / 493.6 MB, free: 4.758 MB / 362.7 MB Notification: Performance of SimCode: time 4.61e-07/0.4649, allocations: 0 / 493.6 MB, free: 4.758 MB / 362.7 MB Notification: Performance of Templates: time 0.02007/0.485, allocations: 17.33 MB / 0.4989 GB, free: 3.449 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