Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingRectifier.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0019/0.0019, allocations: 119 kB / 17.78 MB, free: 5.23 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002125/0.002125, allocations: 197.2 kB / 20.73 MB, free: 2.289 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.408/1.408, allocations: 225.6 MB / 249.1 MB, free: 3.633 MB / 190.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.HeatingRectifier,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_HeatingRectifier",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.HeatingRectifier,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_HeatingRectifier",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001454/0.001454, allocations: 51.92 kB / 365.6 MB, free: 0.8594 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1034/0.1049, allocations: 52.14 MB / 417.8 MB, free: 12.62 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.HeatingRectifier): time 0.004493/0.1094, allocations: 2.528 MB / 420.3 MB, free: 10.08 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001184/0.1106, allocations: 0.6582 MB / 421 MB, free: 9.414 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001116/0.1107, allocations: 4 kB / 421 MB, free: 9.41 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001567/0.1108, allocations: 43.58 kB / 421 MB, free: 9.367 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001354/0.111, allocations: 71.34 kB / 421.1 MB, free: 9.297 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003125/0.1113, allocations: 79.83 kB / 421.2 MB, free: 9.219 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003222/0.1116, allocations: 278.8 kB / 421.4 MB, free: 8.945 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001719/0.1118, allocations: 60.38 kB / 421.5 MB, free: 8.887 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001792/0.1119, allocations: 119.5 kB / 421.6 MB, free: 8.77 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001861/0.1121, allocations: 115.5 kB / 421.7 MB, free: 8.656 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.688e-05/0.1122, allocations: 20 kB / 421.8 MB, free: 8.637 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.488e-05/0.1123, allocations: 35.98 kB / 421.8 MB, free: 8.602 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.594e-05/0.1123, allocations: 51.84 kB / 421.8 MB, free: 8.551 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000128/0.1124, allocations: 123.4 kB / 422 MB, free: 8.43 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003939/0.1128, allocations: 290.7 kB / 422.2 MB, free: 8.145 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.138e-06/0.1128, allocations: 0 / 422.2 MB, free: 8.145 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.355e-06/0.1128, allocations: 0 / 422.2 MB, free: 8.145 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.323e-06/0.1129, allocations: 0 / 422.2 MB, free: 8.145 MB / 350.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.0009291/0.1138, allocations: 0.5377 MB / 422.8 MB, free: 7.559 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.082e-05/0.1138, allocations: 12.03 kB / 422.8 MB, free: 7.547 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.165e-05/0.1139, allocations: 54.67 kB / 422.8 MB, free: 7.484 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.925e-05/0.114, allocations: 28.8 kB / 422.9 MB, free: 7.457 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003596/0.1143, allocations: 251.9 kB / 423.1 MB, free: 7.172 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.364e-05/0.1143, allocations: 16.81 kB / 423.1 MB, free: 7.156 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.903e-05/0.1144, allocations: 20.38 kB / 423.2 MB, free: 7.137 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003849/0.1148, allocations: 199.4 kB / 423.3 MB, free: 6.938 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.412e-05/0.1148, allocations: 0 / 423.3 MB, free: 6.938 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.273e-05/0.1148, allocations: 4 kB / 423.4 MB, free: 6.934 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.796e-05/0.1148, allocations: 11.98 kB / 423.4 MB, free: 6.922 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003338/0.1151, allocations: 153.6 kB / 423.5 MB, free: 6.766 MB / 350.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.00149/0.1166, allocations: 0.9259 MB / 424.4 MB, free: 5.73 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003212/0.117, allocations: 138.5 kB / 424.6 MB, free: 5.586 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000216/0.1172, allocations: 96.84 kB / 424.7 MB, free: 5.488 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.537e-05/0.1172, allocations: 4 kB / 424.7 MB, free: 5.484 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.308e-05/0.1172, allocations: 30.56 kB / 424.7 MB, free: 5.445 MB / 350.1 MB Notification: Performance of pre-optimization done (n=17): time 1.173e-06/0.1172, allocations: 0 / 424.7 MB, free: 5.445 MB / 350.1 MB Notification: Performance of matching and sorting (n=17): time 0.001353/0.1186, allocations: 419.4 kB / 425.1 MB, free: 5.008 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.258e-05/0.1186, allocations: 59.41 kB / 425.2 MB, free: 4.938 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001925/0.1188, allocations: 175.1 kB / 425.3 MB, free: 4.754 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.719e-05/0.1189, allocations: 33.7 kB / 425.4 MB, free: 4.715 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001082/0.119, allocations: 148.3 kB / 425.5 MB, free: 4.566 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.685e-05/0.119, allocations: 63.44 kB / 425.6 MB, free: 4.504 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.096e-05/0.1191, allocations: 37.7 kB / 425.6 MB, free: 4.461 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001525/0.1192, allocations: 330.8 kB / 425.9 MB, free: 4.129 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001236/0.1194, allocations: 55.97 kB / 426 MB, free: 4.074 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001302/0.1195, allocations: 65.69 kB / 426.1 MB, free: 4.004 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002462/0.1197, allocations: 127.9 kB / 426.2 MB, free: 3.875 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.964e-06/0.1197, allocations: 0 / 426.2 MB, free: 3.875 MB / 350.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0004232/0.1202, allocations: 218.3 kB / 426.4 MB, free: 3.652 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.585e-05/0.1202, allocations: 8.031 kB / 426.4 MB, free: 3.645 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.843e-06/0.1202, allocations: 3.938 kB / 426.4 MB, free: 3.641 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001357/0.1215, allocations: 216.6 kB / 426.6 MB, free: 3.426 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001434/0.1217, allocations: 31.97 kB / 426.7 MB, free: 3.395 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005565/0.1222, allocations: 0.6148 MB / 427.3 MB, free: 2.754 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001162/0.1224, allocations: 15.89 kB / 427.3 MB, free: 2.738 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.325e-05/0.1224, allocations: 4 kB / 427.3 MB, free: 2.734 MB / 350.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.0001347/0.1225, allocations: 134.4 kB / 427.4 MB, free: 2.594 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.417e-05/0.1226, allocations: 15.91 kB / 427.4 MB, free: 2.578 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000522/0.1231, allocations: 234.5 kB / 427.7 MB, free: 2.34 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.206e-06/0.1231, allocations: 0 / 427.7 MB, free: 2.34 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.839e-06/0.1231, allocations: 4 kB / 427.7 MB, free: 2.336 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.178e-06/0.1231, allocations: 0 / 427.7 MB, free: 2.336 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009687/0.1241, allocations: 0.5913 MB / 428.3 MB, free: 1.684 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.103e-06/0.1241, allocations: 11.86 kB / 428.3 MB, free: 1.672 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001499/0.1242, allocations: 28.02 kB / 428.3 MB, free: 1.645 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001075/0.1253, allocations: 204.6 kB / 428.5 MB, free: 1.441 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.464e-05/0.1253, allocations: 3.938 kB / 428.5 MB, free: 1.438 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005661/0.1259, allocations: 0.6187 MB / 429.1 MB, free: 0.793 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.382e-06/0.1259, allocations: 0 / 429.1 MB, free: 0.793 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008317/0.1267, allocations: 428.9 kB / 429.5 MB, free: 360 kB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.441e-05/0.1268, allocations: 96.95 kB / 429.6 MB, free: 244 kB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.817e-05/0.1268, allocations: 8.062 kB / 429.6 MB, free: 236 kB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001454/0.1269, allocations: 12 kB / 429.7 MB, free: 224 kB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.254e-05/0.127, allocations: 7.984 kB / 429.7 MB, free: 216 kB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.272e-05/0.127, allocations: 4 kB / 429.7 MB, free: 212 kB / 350.1 MB Notification: Performance of sorting global known variables: time 0.00013/0.1271, allocations: 132.3 kB / 429.8 MB, free: 80 kB / 350.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.1271, allocations: 0 / 429.8 MB, free: 80 kB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003135/0.1274, allocations: 59.89 kB / 429.9 MB, free: 20 kB / 350.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.001262/0.1287, allocations: 0.9641 MB / 430.8 MB, free: 15.02 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0004212/0.1291, allocations: 151.7 kB / 431 MB, free: 14.88 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.735e-06/0.1291, allocations: 0 / 431 MB, free: 14.88 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001917/0.1293, allocations: 82.08 kB / 431 MB, free: 14.8 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003479/0.1297, allocations: 32.09 kB / 431.1 MB, free: 14.77 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003101/0.1328, allocations: 2.319 MB / 433.4 MB, free: 12.36 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000375/0.1331, allocations: 0.7397 MB / 434.1 MB, free: 11.59 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 6.043e-05/0.1332, allocations: 13.53 kB / 434.1 MB, free: 11.57 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.973e-05/0.1333, allocations: 63.41 kB / 434.2 MB, free: 11.51 MB / 366.1 MB Notification: Performance of SimCode: time 3.8e-07/0.1333, allocations: 0 / 434.2 MB, free: 11.51 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03614/0.1694, allocations: 4.804 MB / 439 MB, free: 6.863 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.47/12.64, allocations: 4.562 kB / 439 MB, free: 6.859 MB / 366.1 MB " [Timeout remaining time 647] (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingRectifier.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingRectifier.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingRectifier.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingRectifier.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_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.0009996 Modelica_4_0_0_Modelica_Electrical_Analog_Examples_HeatingRectifier.fmu > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingRectifier.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.Electrical.Analog.Examples.HeatingRectifier.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 15.747571779880673]