Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingRectifier.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.HeatingRectifier,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_HeatingRectifier",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.HeatingRectifier,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_HeatingRectifier",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001148/0.001148, allocations: 118.8 kB / 17.78 MB, free: 5.281 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001282/0.001281, allocations: 197.2 kB / 18.73 MB, free: 4.336 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.416/1.416, allocations: 227.4 MB / 246.9 MB, free: 10.46 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002191/0.002191, allocations: 59.91 kB / 358.2 MB, free: 13.38 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3483/0.3505, allocations: 50.54 MB / 408.8 MB, free: 1.496 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.HeatingRectifier): time 0.004098/0.3546, allocations: 2.547 MB / 411.3 MB, free: 14.95 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001496/0.3561, allocations: 0.6894 MB / 412 MB, free: 14.25 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002466/0.3564, allocations: 0 / 412 MB, free: 14.25 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002009/0.3567, allocations: 35.64 kB / 412 MB, free: 14.21 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002407/0.3569, allocations: 75.28 kB / 412.1 MB, free: 14.14 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004343/0.3574, allocations: 99.81 kB / 412.2 MB, free: 14.04 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004037/0.3578, allocations: 282.7 kB / 412.5 MB, free: 13.76 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000214/0.358, allocations: 80.34 kB / 412.6 MB, free: 13.68 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002924/0.3583, allocations: 115.6 kB / 412.7 MB, free: 13.57 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000229/0.3585, allocations: 123.5 kB / 412.8 MB, free: 13.45 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.629e-05/0.3586, allocations: 20 kB / 412.8 MB, free: 13.43 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001141/0.3587, allocations: 39.98 kB / 412.9 MB, free: 13.39 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 4.716e-05/0.3588, allocations: 51.84 kB / 412.9 MB, free: 13.34 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001237/0.3589, allocations: 127.3 kB / 413 MB, free: 13.21 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003684/0.3593, allocations: 289.8 kB / 413.3 MB, free: 12.93 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.666e-06/0.3593, allocations: 0 / 413.3 MB, free: 12.93 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.473e-06/0.3593, allocations: 0 / 413.3 MB, free: 12.93 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.315e-06/0.3593, allocations: 0 / 413.3 MB, free: 12.93 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: 49 * Number of variables: 49 Notification: Performance of Generate backend data structure: time 0.0008687/0.3602, allocations: 0.5416 MB / 413.9 MB, free: 12.34 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.818e-05/0.3602, allocations: 8.031 kB / 413.9 MB, free: 12.33 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.202e-05/0.3603, allocations: 54.73 kB / 413.9 MB, free: 12.27 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001816/0.3605, allocations: 40.73 kB / 414 MB, free: 12.23 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003988/0.3609, allocations: 248 kB / 414.2 MB, free: 11.95 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.911e-05/0.3609, allocations: 16.81 kB / 414.2 MB, free: 11.93 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.172e-05/0.361, allocations: 20.38 kB / 414.2 MB, free: 11.91 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003905/0.3614, allocations: 199.3 kB / 414.4 MB, free: 11.71 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.648e-05/0.3614, allocations: 3.953 kB / 414.4 MB, free: 11.71 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.339e-05/0.3614, allocations: 8 kB / 414.4 MB, free: 11.7 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.914e-06/0.3614, allocations: 4 kB / 414.4 MB, free: 11.7 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003129/0.3618, allocations: 149.7 kB / 414.6 MB, free: 11.55 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.001405/0.3632, allocations: 0.9298 MB / 415.5 MB, free: 10.51 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000306/0.3635, allocations: 158.6 kB / 415.7 MB, free: 10.35 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002004/0.3637, allocations: 100.8 kB / 415.8 MB, free: 10.25 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.09e-05/0.3637, allocations: 0 / 415.8 MB, free: 10.25 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.65e-05/0.3638, allocations: 34.56 kB / 415.8 MB, free: 10.2 MB / 334.1 MB Notification: Performance of pre-optimization done (n=17): time 1.142e-06/0.3638, allocations: 0 / 415.8 MB, free: 10.2 MB / 334.1 MB Notification: Performance of matching and sorting (n=17): time 0.001224/0.365, allocations: 419.5 kB / 416.2 MB, free: 9.766 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.131e-05/0.365, allocations: 51.41 kB / 416.3 MB, free: 9.703 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001702/0.3652, allocations: 184.9 kB / 416.4 MB, free: 9.512 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.615e-05/0.3653, allocations: 29.7 kB / 416.5 MB, free: 9.477 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.082e-05/0.3654, allocations: 152.3 kB / 416.6 MB, free: 9.324 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.486e-05/0.3654, allocations: 63.42 kB / 416.7 MB, free: 9.262 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.065e-05/0.3655, allocations: 37.7 kB / 416.7 MB, free: 9.219 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001216/0.3656, allocations: 334.8 kB / 417 MB, free: 8.883 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001156/0.3657, allocations: 51.97 kB / 417.1 MB, free: 8.832 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001311/0.3659, allocations: 73.25 kB / 417.2 MB, free: 8.758 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002333/0.3661, allocations: 131.9 kB / 417.3 MB, free: 8.625 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.795e-06/0.3661, allocations: 0 / 417.3 MB, free: 8.625 MB / 334.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0004335/0.3666, allocations: 225 kB / 417.5 MB, free: 8.398 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.861e-05/0.3666, allocations: 8 kB / 417.5 MB, free: 8.391 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.704e-06/0.3666, allocations: 3.938 kB / 417.5 MB, free: 8.387 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001323/0.3679, allocations: 212.6 kB / 417.7 MB, free: 8.176 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000147/0.3681, allocations: 35.91 kB / 417.8 MB, free: 8.141 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005006/0.3686, allocations: 0.6109 MB / 418.4 MB, free: 7.504 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001213/0.3687, allocations: 15.92 kB / 418.4 MB, free: 7.488 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.373e-05/0.3688, allocations: 4 kB / 418.4 MB, free: 7.484 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (14): * Single equations (assignments): 13 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * 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): 1 system {(1,7)} Notification: Performance of prepare postOptimizeDAE: time 0.0001364/0.3689, allocations: 137.7 kB / 418.5 MB, free: 7.34 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.479e-05/0.3689, allocations: 19.84 kB / 418.6 MB, free: 7.32 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004496/0.3694, allocations: 228.3 kB / 418.8 MB, free: 7.086 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.601e-06/0.3694, allocations: 4 kB / 418.8 MB, free: 7.082 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.4e-06/0.3694, allocations: 0 / 418.8 MB, free: 7.082 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.757e-06/0.3694, allocations: 3.938 kB / 418.8 MB, free: 7.078 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008658/0.3703, allocations: 0.6079 MB / 419.4 MB, free: 6.41 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.689e-06/0.3703, allocations: 3.938 kB / 419.4 MB, free: 6.406 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001589/0.3705, allocations: 27.97 kB / 419.4 MB, free: 6.379 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001044/0.3716, allocations: 200.7 kB / 419.6 MB, free: 6.18 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.428e-05/0.3716, allocations: 4 kB / 419.6 MB, free: 6.176 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004522/0.372, allocations: 0.6226 MB / 420.3 MB, free: 5.527 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.779e-06/0.3721, allocations: 3.938 kB / 420.3 MB, free: 5.523 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000785/0.3728, allocations: 424.9 kB / 420.7 MB, free: 5.086 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.948e-05/0.3729, allocations: 100.9 kB / 420.8 MB, free: 4.969 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.197e-05/0.373, allocations: 7.984 kB / 420.8 MB, free: 4.961 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001421/0.3731, allocations: 8 kB / 420.8 MB, free: 4.953 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.554e-05/0.3732, allocations: 7.984 kB / 420.8 MB, free: 4.945 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.465e-05/0.3732, allocations: 15.98 kB / 420.8 MB, free: 4.93 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001073/0.3733, allocations: 132.1 kB / 420.9 MB, free: 4.801 MB / 334.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.3733, allocations: 0 / 420.9 MB, free: 4.801 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003096/0.3736, allocations: 55.89 kB / 421 MB, free: 4.746 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (Capacitor1.v,HeatCapacitor1.T) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (10): * Single equations (assignments): 9 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * 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): 1 system {(1,9)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001144/0.3748, allocations: 0.9704 MB / 422 MB, free: 3.742 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0004145/0.3752, allocations: 151.7 kB / 422.1 MB, free: 3.594 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.196e-06/0.3752, allocations: 0 / 422.1 MB, free: 3.594 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001911/0.3754, allocations: 87.88 kB / 422.2 MB, free: 3.508 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000352/0.3758, allocations: 32.27 kB / 422.2 MB, free: 3.477 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002973/0.3788, allocations: 2.331 MB / 424.6 MB, free: 1.055 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003077/0.3791, allocations: 0.7436 MB / 425.3 MB, free: 292 kB / 334.1 MB Notification: Performance of simCode: alias equations: time 6.387e-05/0.3792, allocations: 13.53 kB / 425.3 MB, free: 276 kB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.006e-05/0.3792, allocations: 59.42 kB / 425.4 MB, free: 216 kB / 334.1 MB Notification: Performance of SimCode: time 3.41e-07/0.3792, allocations: 4 kB / 425.4 MB, free: 212 kB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02393/0.4032, allocations: 4.793 MB / 430.2 MB, free: 11.57 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.09/11.49, allocations: 7.922 kB / 430.2 MB, free: 11.56 MB / 350.1 MB (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingRectifier.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingRectifier.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingRectifier.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingRectifier.sim & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingRectifier_res.csv --start-time 0 --stop-time 5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.002 Modelica_trunk_Modelica_Electrical_Analog_Examples_HeatingRectifier.fmu > Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingRectifier.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingRectifier_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/HeatingRectifier/HeatingRectifier.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingRectifier.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches