Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3_2_3_Modelica_Electrical_Analog_Examples_HeatingRectifier",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.HeatingRectifier,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Analog_Examples_HeatingRectifier",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001441/0.001441, allocations: 99.67 kB / 17.58 MB, free: 5.418 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001608/0.001608, allocations: 192 kB / 18.51 MB, free: 4.508 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.549/1.549, allocations: 205.1 MB / 224.4 MB, free: 12.3 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001269/0.001269, allocations: 55.92 kB / 280.7 MB, free: 3.07 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08556/0.08685, allocations: 46.63 MB / 327.4 MB, free: 4.367 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.HeatingRectifier): time 0.0042/0.0911, allocations: 2.462 MB / 329.8 MB, free: 1.875 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001445/0.09258, allocations: 0.6749 MB / 330.5 MB, free: 1.195 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001998/0.09281, allocations: 4 kB / 330.5 MB, free: 1.191 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000183/0.09303, allocations: 35.64 kB / 330.6 MB, free: 1.156 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001695/0.09321, allocations: 67.34 kB / 330.6 MB, free: 1.09 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003491/0.09357, allocations: 91.77 kB / 330.7 MB, free: 1 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003503/0.09393, allocations: 270.8 kB / 331 MB, free: 0.7344 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002031/0.09414, allocations: 80.34 kB / 331.1 MB, free: 0.6562 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002288/0.09438, allocations: 107.5 kB / 331.2 MB, free: 0.5508 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001842/0.09457, allocations: 115.5 kB / 331.3 MB, free: 448 kB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 4.481e-05/0.09463, allocations: 24 kB / 331.3 MB, free: 424 kB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00011/0.09474, allocations: 35.98 kB / 331.3 MB, free: 388 kB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 4.941e-05/0.0948, allocations: 51.78 kB / 331.4 MB, free: 336 kB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001101/0.09491, allocations: 127.4 kB / 331.5 MB, free: 208 kB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003036/0.09522, allocations: 275.3 kB / 331.8 MB, free: 15.93 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.56e-06/0.09524, allocations: 0 / 331.8 MB, free: 15.93 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.342e-06/0.09525, allocations: 0 / 331.8 MB, free: 15.93 MB / 286.1 MB Notification: Performance of Transformations before backend: time 8.846e-06/0.09526, allocations: 0 / 331.8 MB, free: 15.93 MB / 286.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.0008183/0.09609, allocations: 0.5302 MB / 332.3 MB, free: 15.36 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.029e-05/0.09614, allocations: 8.031 kB / 332.3 MB, free: 15.35 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.598e-05/0.0962, allocations: 54.73 kB / 332.4 MB, free: 15.29 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.474e-05/0.09627, allocations: 28.56 kB / 332.4 MB, free: 15.26 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002443/0.09652, allocations: 228.7 kB / 332.6 MB, free: 15 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.767e-05/0.09655, allocations: 16.81 kB / 332.6 MB, free: 14.98 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.191e-05/0.0966, allocations: 24.12 kB / 332.7 MB, free: 14.95 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003492/0.09695, allocations: 195.2 kB / 332.9 MB, free: 14.76 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.505e-05/0.09698, allocations: 0 / 332.9 MB, free: 14.76 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.271e-05/0.09701, allocations: 8 kB / 332.9 MB, free: 14.75 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.999e-06/0.09702, allocations: 7.984 kB / 332.9 MB, free: 14.74 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002964/0.09732, allocations: 153.6 kB / 333 MB, free: 14.59 MB / 286.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.001351/0.09868, allocations: 0.9373 MB / 334 MB, free: 13.55 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003095/0.09901, allocations: 150.6 kB / 334.1 MB, free: 13.39 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001958/0.09921, allocations: 96.83 kB / 334.2 MB, free: 13.29 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.745e-05/0.09925, allocations: 7.984 kB / 334.2 MB, free: 13.29 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.225e-05/0.09928, allocations: 34.56 kB / 334.2 MB, free: 13.24 MB / 286.1 MB Notification: Performance of pre-optimization done (n=17): time 1.393e-06/0.09929, allocations: 0 / 334.2 MB, free: 13.24 MB / 286.1 MB Notification: Performance of matching and sorting (n=17): time 0.001238/0.1005, allocations: 422.6 kB / 334.6 MB, free: 12.8 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.503e-05/0.1006, allocations: 55.41 kB / 334.7 MB, free: 12.74 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000148/0.1007, allocations: 166.4 kB / 334.9 MB, free: 12.57 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.015e-05/0.1008, allocations: 33.64 kB / 334.9 MB, free: 12.53 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.688e-05/0.1009, allocations: 152 kB / 335 MB, free: 12.38 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.554e-05/0.1009, allocations: 59.19 kB / 335.1 MB, free: 12.32 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.252e-05/0.101, allocations: 37.7 kB / 335.1 MB, free: 12.27 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001168/0.1011, allocations: 326.8 kB / 335.5 MB, free: 11.95 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001134/0.1012, allocations: 47.92 kB / 335.5 MB, free: 11.9 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001225/0.1014, allocations: 77.67 kB / 335.6 MB, free: 11.82 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002299/0.1016, allocations: 125.6 kB / 335.7 MB, free: 11.69 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.933e-06/0.1016, allocations: 0 / 335.7 MB, free: 11.69 MB / 286.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0004056/0.102, allocations: 218.2 kB / 335.9 MB, free: 11.46 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.582e-05/0.102, allocations: 11.94 kB / 335.9 MB, free: 11.45 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.111e-06/0.1021, allocations: 8.016 kB / 335.9 MB, free: 11.45 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001362/0.1034, allocations: 208.6 kB / 336.1 MB, free: 11.24 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001429/0.1036, allocations: 39.92 kB / 336.2 MB, free: 11.2 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004515/0.104, allocations: 0.607 MB / 336.8 MB, free: 10.57 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001151/0.1042, allocations: 7.938 kB / 336.8 MB, free: 10.56 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.56e-05/0.1042, allocations: 12 kB / 336.8 MB, free: 10.55 MB / 286.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.0001168/0.1043, allocations: 137.7 kB / 336.9 MB, free: 10.4 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.623e-05/0.1044, allocations: 19.8 kB / 337 MB, free: 10.38 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004499/0.1048, allocations: 224.3 kB / 337.2 MB, free: 10.15 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.45e-06/0.1048, allocations: 4 kB / 337.2 MB, free: 10.15 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.264e-06/0.1049, allocations: 0 / 337.2 MB, free: 10.15 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.781e-06/0.1049, allocations: 11.88 kB / 337.2 MB, free: 10.14 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008639/0.1057, allocations: 0.5896 MB / 337.8 MB, free: 9.484 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.534e-06/0.1058, allocations: 4.031 kB / 337.8 MB, free: 9.48 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001484/0.1059, allocations: 27.98 kB / 337.8 MB, free: 9.453 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001091/0.107, allocations: 204.6 kB / 338 MB, free: 9.25 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.794e-05/0.107, allocations: 4 kB / 338 MB, free: 9.246 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004317/0.1075, allocations: 0.6265 MB / 338.6 MB, free: 8.594 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.576e-06/0.1075, allocations: 4.078 kB / 338.7 MB, free: 8.59 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007915/0.1083, allocations: 428.7 kB / 339.1 MB, free: 8.148 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.007e-05/0.1084, allocations: 92.89 kB / 339.2 MB, free: 8.039 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.974e-05/0.1084, allocations: 0 / 339.2 MB, free: 8.039 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000148/0.1086, allocations: 15.98 kB / 339.2 MB, free: 8.023 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.336e-05/0.1086, allocations: 11.98 kB / 339.2 MB, free: 8.012 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.888e-05/0.1086, allocations: 4 kB / 339.2 MB, free: 8.008 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0001087/0.1088, allocations: 132.2 kB / 339.3 MB, free: 7.879 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1088, allocations: 0 / 339.3 MB, free: 7.879 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0003216/0.1091, allocations: 59.91 kB / 339.4 MB, free: 7.82 MB / 286.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.00114/0.1102, allocations: 0.9597 MB / 340.3 MB, free: 6.828 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0004499/0.1107, allocations: 160.4 kB / 340.5 MB, free: 6.672 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 3.126e-06/0.1107, allocations: 0 / 340.5 MB, free: 6.672 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002027/0.1109, allocations: 99.83 kB / 340.6 MB, free: 6.574 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004604/0.1114, allocations: 27.31 kB / 340.6 MB, free: 6.551 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002921/0.1143, allocations: 2.291 MB / 342.9 MB, free: 4.168 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003193/0.1147, allocations: 0.7397 MB / 343.7 MB, free: 3.402 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 7.029e-05/0.1147, allocations: 17.55 kB / 343.7 MB, free: 3.387 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.958e-05/0.1148, allocations: 59.36 kB / 343.7 MB, free: 3.328 MB / 286.1 MB Notification: Performance of SimCode: time 3.11e-07/0.1148, allocations: 0 / 343.7 MB, free: 3.328 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02698/0.1418, allocations: 4.6 MB / 348.3 MB, free: 14.66 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.79/11.93, allocations: 7.812 kB / 348.3 MB, free: 14.65 MB / 302.1 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingRectifier.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingRectifier.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingRectifier.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingRectifier.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_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_3_2_3_Modelica_Electrical_Analog_Examples_HeatingRectifier.fmu > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingRectifier.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingRectifier_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Analog/Examples/HeatingRectifier/HeatingRectifier.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingRectifier.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches