Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) 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) 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_HeatingNPN_NORGate",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_HeatingNPN_NORGate",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001059/0.001059, allocations: 118.2 kB / 17.79 MB, free: 5.277 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001181/0.001181, allocations: 202 kB / 18.74 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.35/1.35, allocations: 227.4 MB / 246.9 MB, free: 10.44 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001152/0.001152, allocations: 63.89 kB / 358.2 MB, free: 13.41 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2572/0.2584, allocations: 50.54 MB / 408.8 MB, free: 1.516 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate): time 0.005828/0.2642, allocations: 4.965 MB / 413.8 MB, free: 12.53 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002533/0.2668, allocations: 1.28 MB / 415 MB, free: 11.24 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005751/0.2674, allocations: 19.88 kB / 415.1 MB, free: 11.22 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003988/0.2678, allocations: 118.7 kB / 415.2 MB, free: 11.11 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007916/0.2686, allocations: 269.6 kB / 415.4 MB, free: 10.84 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008649/0.2695, allocations: 303.5 kB / 415.7 MB, free: 10.54 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001368/0.2709, allocations: 1.103 MB / 416.8 MB, free: 9.434 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004237/0.2713, allocations: 266.5 kB / 417.1 MB, free: 9.156 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005715/0.2719, allocations: 418.6 kB / 417.5 MB, free: 8.746 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005049/0.2724, allocations: 466 kB / 418 MB, free: 8.289 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001079/0.2725, allocations: 88 kB / 418 MB, free: 8.203 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001933/0.2727, allocations: 112 kB / 418.2 MB, free: 8.094 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001555/0.2729, allocations: 191.3 kB / 418.3 MB, free: 7.906 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003681/0.2733, allocations: 449.8 kB / 418.8 MB, free: 7.465 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000928/0.2742, allocations: 1.018 MB / 419.8 MB, free: 6.445 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.777e-06/0.2742, allocations: 0 / 419.8 MB, free: 6.445 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.745e-06/0.2742, allocations: 4 kB / 419.8 MB, free: 6.441 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.203e-05/0.2742, allocations: 3.938 kB / 419.8 MB, free: 6.438 MB / 334.1 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.002392/0.2766, allocations: 1.277 MB / 421.1 MB, free: 5.094 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.626e-05/0.2767, allocations: 8.031 kB / 421.1 MB, free: 5.086 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001161/0.2768, allocations: 110.7 kB / 421.2 MB, free: 4.969 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001553/0.277, allocations: 100.3 kB / 421.3 MB, free: 4.871 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006542/0.2776, allocations: 491.9 kB / 421.8 MB, free: 4.348 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.59e-05/0.2777, allocations: 45.69 kB / 421.8 MB, free: 4.301 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001187/0.2778, allocations: 68.33 kB / 421.9 MB, free: 4.234 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001371/0.2792, allocations: 0.6546 MB / 422.5 MB, free: 3.578 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.001e-05/0.2792, allocations: 0 / 422.5 MB, free: 3.578 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.362e-05/0.2793, allocations: 27.94 kB / 422.6 MB, free: 3.551 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.252e-05/0.2793, allocations: 20 kB / 422.6 MB, free: 3.531 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00163/0.2809, allocations: 0.6961 MB / 423.3 MB, free: 2.832 MB / 334.1 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.003665/0.2846, allocations: 2.371 MB / 425.7 MB, free: 316 kB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001413/0.286, allocations: 0.5904 MB / 426.2 MB, free: 15.71 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007273/0.2868, allocations: 337.9 kB / 426.6 MB, free: 15.38 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.266e-05/0.2868, allocations: 4.438 kB / 426.6 MB, free: 15.37 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009177/0.2878, allocations: 429.4 kB / 427 MB, free: 14.93 MB / 350.1 MB Notification: Performance of pre-optimization done (n=54): time 1.863e-06/0.2878, allocations: 0 / 427 MB, free: 14.93 MB / 350.1 MB Notification: Performance of matching and sorting (n=94): time 0.06808/0.3559, allocations: 15.44 MB / 442.4 MB, free: 15.39 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.764e-05/0.356, allocations: 149.5 kB / 442.6 MB, free: 15.21 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000642/0.3566, allocations: 0.5186 MB / 443.1 MB, free: 14.68 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001771/0.3568, allocations: 45.7 kB / 443.1 MB, free: 14.63 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003006/0.3571, allocations: 388.8 kB / 443.5 MB, free: 14.25 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003337/0.3575, allocations: 333.2 kB / 443.9 MB, free: 13.92 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003674/0.3579, allocations: 186.6 kB / 444 MB, free: 13.73 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001687/0.358, allocations: 390.7 kB / 444.4 MB, free: 13.34 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002065/0.3601, allocations: 0.7205 MB / 445.1 MB, free: 12.62 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002169/0.3623, allocations: 0.9551 MB / 446.1 MB, free: 11.58 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00409/0.3664, allocations: 1.697 MB / 447.8 MB, free: 9.785 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.925e-06/0.3665, allocations: 0 / 447.8 MB, free: 9.785 MB / 366.1 MB Notification: Performance of matching and sorting (n=128) (initialization): time 0.02254/0.389, allocations: 5.386 MB / 453.2 MB, free: 4.367 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.662e-05/0.3891, allocations: 63.41 kB / 453.2 MB, free: 4.293 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.869e-05/0.3891, allocations: 8.125 kB / 453.2 MB, free: 4.285 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.03315/0.4223, allocations: 6.84 MB / 460.1 MB, free: 13.43 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007656/0.4231, allocations: 155.7 kB / 460.2 MB, free: 13.28 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007121/0.4303, allocations: 3.157 MB / 463.4 MB, free: 10.07 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001627/0.4319, allocations: 183.7 kB / 463.6 MB, free: 9.887 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001782/0.4321, allocations: 55.89 kB / 463.6 MB, free: 9.832 MB / 382.1 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 (V2.signalSource.count,$PRE.V2.signalSource.count,V2.signalSource.T_start,$PRE.V2.signalSource.T_start,V1.signalSource.count,$PRE.V1.signalSource.count,V1.signalSource.T_start,$PRE.V1.signalSource.T_start,$whenCondition1,$whenCondition2) * 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 (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(5,32), (5,32)} Notification: Performance of prepare postOptimizeDAE: time 0.0004537/0.4326, allocations: 225.7 kB / 463.8 MB, free: 9.602 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001924/0.4328, allocations: 87.42 kB / 463.9 MB, free: 9.516 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02175/0.4545, allocations: 5.107 MB / 469 MB, free: 4.391 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.665e-05/0.4546, allocations: 12.25 kB / 469.1 MB, free: 4.379 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.675e-06/0.4546, allocations: 4 kB / 469.1 MB, free: 4.375 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.075e-05/0.4546, allocations: 7.984 kB / 469.1 MB, free: 4.367 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001819/0.4565, allocations: 1.108 MB / 470.2 MB, free: 3.211 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.938e-06/0.4565, allocations: 0 / 470.2 MB, free: 3.211 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005381/0.457, allocations: 91.81 kB / 470.3 MB, free: 3.121 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.03207/0.4891, allocations: 6.801 MB / 477.1 MB, free: 12.3 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002059/0.4894, allocations: 19.98 kB / 477.1 MB, free: 12.29 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005863/0.4952, allocations: 3.045 MB / 480.1 MB, free: 9.184 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.495e-06/0.4953, allocations: 0 / 480.1 MB, free: 9.184 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02395/0.5192, allocations: 5.991 MB / 486.1 MB, free: 3.16 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002766/0.5195, allocations: 152.5 kB / 486.3 MB, free: 2.992 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002773/0.5198, allocations: 16 kB / 486.3 MB, free: 2.977 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001454/0.5213, allocations: 171.8 kB / 486.4 MB, free: 2.809 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002774/0.5216, allocations: 92.88 kB / 486.5 MB, free: 2.719 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001031/0.5217, allocations: 39.91 kB / 486.6 MB, free: 2.68 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0004837/0.5222, allocations: 354.8 kB / 486.9 MB, free: 2.332 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.5222, allocations: 4 kB / 486.9 MB, free: 2.328 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0008551/0.5231, allocations: 256 kB / 487.2 MB, free: 2.078 MB / 398.1 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 (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(5,32), (5,36)} Notification: Performance of Backend phase and start with SimCode phase: time 0.02431/0.5474, allocations: 6.571 MB / 493.7 MB, free: 11.46 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.006883/0.5543, allocations: 2.181 MB / 495.9 MB, free: 9.258 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 5.651e-06/0.5544, allocations: 320 / 495.9 MB, free: 9.258 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003574/0.5579, allocations: 1.101 MB / 497 MB, free: 8.156 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008553/0.5588, allocations: 134.4 kB / 497.2 MB, free: 8.023 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0813/0.6401, allocations: 15.97 MB / 0.5011 GB, free: 7.73 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009038/0.6411, allocations: 0.9507 MB / 0.502 GB, free: 6.754 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0006218/0.6418, allocations: 54.28 kB / 0.5021 GB, free: 6.699 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000647/0.6424, allocations: 275.3 kB / 0.5023 GB, free: 6.43 MB / 430.1 MB Notification: Performance of SimCode: time 1.112e-06/0.6425, allocations: 0 / 0.5023 GB, free: 6.43 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06879/0.7113, allocations: 29.58 MB / 0.5312 GB, free: 9.078 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.82/13.54, allocations: 12.23 kB / 0.5312 GB, free: 9.066 MB / 462.1 MB (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate.sim & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate_res.csv --start-time 0 --stop-time 200 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.08 Modelica_trunk_Modelica_Electrical_Analog_Examples_HeatingNPN_NORGate.fmu > Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/HeatingNPN_NORGate/HeatingNPN_NORGate.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches