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.001376/0.001375, allocations: 103.8 kB / 17.63 MB, free: 5.48 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001485/0.001485, allocations: 210.4 kB / 18.58 MB, free: 4.535 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.395/1.395, allocations: 227.4 MB / 246.8 MB, free: 10.55 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001307/0.001307, allocations: 59.78 kB / 307 MB, free: 0.5156 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09877/0.1001, allocations: 50.53 MB / 357.6 MB, free: 13.98 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.HeatingRectifier): time 0.004708/0.1049, allocations: 2.54 MB / 360.1 MB, free: 11.42 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001882/0.1068, allocations: 0.6973 MB / 360.8 MB, free: 10.72 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003956/0.1072, allocations: 0 / 360.8 MB, free: 10.72 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003139/0.1076, allocations: 39.64 kB / 360.9 MB, free: 10.68 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002928/0.1079, allocations: 71.34 kB / 360.9 MB, free: 10.61 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004195/0.1084, allocations: 103.7 kB / 361 MB, free: 10.51 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003592/0.1087, allocations: 274.8 kB / 361.3 MB, free: 10.24 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000206/0.109, allocations: 88.34 kB / 361.4 MB, free: 10.15 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002471/0.1092, allocations: 115.6 kB / 361.5 MB, free: 10.04 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001816/0.1094, allocations: 115.5 kB / 361.6 MB, free: 9.922 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.818e-05/0.1095, allocations: 24 kB / 361.6 MB, free: 9.898 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001183/0.1096, allocations: 39.98 kB / 361.7 MB, free: 9.859 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 5.367e-05/0.1097, allocations: 47.84 kB / 361.7 MB, free: 9.812 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001487/0.1098, allocations: 131.4 kB / 361.8 MB, free: 9.684 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003828/0.1102, allocations: 283.3 kB / 362.1 MB, free: 9.406 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.571e-06/0.1102, allocations: 0 / 362.1 MB, free: 9.406 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.375e-06/0.1102, allocations: 0 / 362.1 MB, free: 9.406 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.675e-05/0.1103, allocations: 4 kB / 362.1 MB, free: 9.402 MB / 302.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.0009966/0.1113, allocations: 0.5301 MB / 362.7 MB, free: 8.824 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.024e-05/0.1113, allocations: 12.02 kB / 362.7 MB, free: 8.812 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.869e-05/0.1114, allocations: 62.67 kB / 362.7 MB, free: 8.742 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000183/0.1116, allocations: 32.64 kB / 362.8 MB, free: 8.711 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002784/0.1119, allocations: 247.8 kB / 363 MB, free: 8.43 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.904e-05/0.1119, allocations: 12.81 kB / 363 MB, free: 8.414 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.35e-05/0.112, allocations: 24.36 kB / 363 MB, free: 8.391 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003596/0.1123, allocations: 195.4 kB / 363.2 MB, free: 8.195 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.275e-05/0.1124, allocations: 0 / 363.2 MB, free: 8.195 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.571e-05/0.1124, allocations: 8 kB / 363.2 MB, free: 8.188 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.284e-06/0.1124, allocations: 4 kB / 363.2 MB, free: 8.184 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003044/0.1127, allocations: 153.7 kB / 363.4 MB, free: 8.031 MB / 302.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.001395/0.1141, allocations: 0.9335 MB / 364.3 MB, free: 6.988 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003151/0.1144, allocations: 154.6 kB / 364.5 MB, free: 6.828 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001948/0.1147, allocations: 96.83 kB / 364.6 MB, free: 6.73 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.702e-05/0.1147, allocations: 4 kB / 364.6 MB, free: 6.727 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.344e-05/0.1147, allocations: 34.5 kB / 364.6 MB, free: 6.684 MB / 302.1 MB Notification: Performance of pre-optimization done (n=17): time 1.583e-06/0.1147, allocations: 4 kB / 364.6 MB, free: 6.68 MB / 302.1 MB Notification: Performance of matching and sorting (n=17): time 0.00126/0.116, allocations: 423.3 kB / 365 MB, free: 6.238 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.737e-05/0.116, allocations: 51.41 kB / 365.1 MB, free: 6.176 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001731/0.1162, allocations: 176.3 kB / 365.2 MB, free: 5.996 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.279e-05/0.1163, allocations: 29.7 kB / 365.3 MB, free: 5.961 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001022/0.1164, allocations: 156 kB / 365.4 MB, free: 5.805 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.747e-05/0.1164, allocations: 55.2 kB / 365.5 MB, free: 5.75 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.661e-05/0.1165, allocations: 37.61 kB / 365.5 MB, free: 5.707 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001275/0.1166, allocations: 330.8 kB / 365.8 MB, free: 5.375 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001215/0.1168, allocations: 59.97 kB / 365.9 MB, free: 5.316 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001238/0.1169, allocations: 68.69 kB / 366 MB, free: 5.246 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002419/0.1171, allocations: 124 kB / 366.1 MB, free: 5.121 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.605e-06/0.1172, allocations: 0 / 366.1 MB, free: 5.121 MB / 302.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0004453/0.1176, allocations: 230.2 kB / 366.3 MB, free: 4.887 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.592e-05/0.1176, allocations: 4 kB / 366.3 MB, free: 4.883 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.247e-06/0.1176, allocations: 3.938 kB / 366.3 MB, free: 4.879 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001404/0.1191, allocations: 212.6 kB / 366.5 MB, free: 4.668 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001566/0.1192, allocations: 39.97 kB / 366.6 MB, free: 4.629 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005347/0.1198, allocations: 0.6147 MB / 367.2 MB, free: 3.988 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001285/0.1199, allocations: 15.81 kB / 367.2 MB, free: 3.973 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.596e-05/0.1199, allocations: 8 kB / 367.2 MB, free: 3.965 MB / 302.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.0001362/0.1201, allocations: 134.8 kB / 367.3 MB, free: 3.824 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.176e-05/0.1201, allocations: 19.86 kB / 367.4 MB, free: 3.805 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004615/0.1206, allocations: 235.2 kB / 367.6 MB, free: 3.566 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.519e-06/0.1206, allocations: 0 / 367.6 MB, free: 3.566 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.641e-06/0.1206, allocations: 4 kB / 367.6 MB, free: 3.562 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.469e-06/0.1207, allocations: 0 / 367.6 MB, free: 3.562 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009326/0.1216, allocations: 0.5974 MB / 368.2 MB, free: 2.902 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.62e-06/0.1216, allocations: 3.938 kB / 368.2 MB, free: 2.898 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001615/0.1218, allocations: 31.92 kB / 368.2 MB, free: 2.867 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00108/0.1229, allocations: 196.7 kB / 368.4 MB, free: 2.672 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.858e-05/0.1229, allocations: 8 kB / 368.4 MB, free: 2.664 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000426/0.1233, allocations: 0.6226 MB / 369 MB, free: 2.016 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.704e-06/0.1233, allocations: 0 / 369 MB, free: 2.016 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007949/0.1242, allocations: 431.2 kB / 369.5 MB, free: 1.574 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.259e-05/0.1242, allocations: 92.94 kB / 369.6 MB, free: 1.465 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.234e-05/0.1243, allocations: 8 kB / 369.6 MB, free: 1.457 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001454/0.1244, allocations: 8 kB / 369.6 MB, free: 1.449 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.694e-05/0.1245, allocations: 7.984 kB / 369.6 MB, free: 1.441 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.191e-05/0.1245, allocations: 7.938 kB / 369.6 MB, free: 1.434 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001017/0.1246, allocations: 140.1 kB / 369.7 MB, free: 1.297 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1246, allocations: 0 / 369.7 MB, free: 1.297 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003166/0.1249, allocations: 59.84 kB / 369.8 MB, free: 1.238 MB / 302.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.001119/0.1261, allocations: 0.952 MB / 370.7 MB, free: 260 kB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0004062/0.1265, allocations: 146.2 kB / 370.9 MB, free: 116 kB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.855e-06/0.1265, allocations: 4 kB / 370.9 MB, free: 112 kB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002025/0.1267, allocations: 91.98 kB / 371 MB, free: 20 kB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.1459/0.2726, allocations: 31.84 kB / 371 MB, free: 20.45 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002827/0.2755, allocations: 2.325 MB / 373.3 MB, free: 19.1 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001559/0.2757, allocations: 0.7362 MB / 374.1 MB, free: 18.41 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 6.903e-05/0.2757, allocations: 15.69 kB / 374.1 MB, free: 18.4 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.218e-05/0.2758, allocations: 59.47 kB / 374.1 MB, free: 18.39 MB / 302.1 MB Notification: Performance of SimCode: time 6.71e-07/0.2758, allocations: 1.125 kB / 374.1 MB, free: 18.39 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02465/0.3005, allocations: 4.685 MB / 378.8 MB, free: 17.82 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.03/11.33, allocations: 8.141 kB / 378.8 MB, free: 17.82 MB / 302.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