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) 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 4.0.0+maint.om/package.mo", uses=false) 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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001579/0.001579, allocations: 107.3 kB / 16.92 MB, free: 6.145 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.001845/0.001844, allocations: 187.4 kB / 17.85 MB, free: 5.285 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.457/1.457, allocations: 222.9 MB / 241.5 MB, free: 15.2 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001018/0.001018, allocations: 48.36 kB / 300.7 MB, free: 5.758 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08495/0.08599, allocations: 49.44 MB / 350.2 MB, free: 4.301 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.HeatingRectifier): time 0.003785/0.08981, allocations: 2.508 MB / 352.7 MB, free: 1.77 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001189/0.09103, allocations: 0.6544 MB / 353.3 MB, free: 1.109 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001642/0.09121, allocations: 4 kB / 353.3 MB, free: 1.105 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001667/0.0914, allocations: 39.64 kB / 353.4 MB, free: 1.066 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001583/0.09157, allocations: 67.3 kB / 353.4 MB, free: 1 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003087/0.09189, allocations: 91.81 kB / 353.5 MB, free: 0.9102 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.000288/0.09219, allocations: 270.8 kB / 353.8 MB, free: 0.6445 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001909/0.09239, allocations: 88.83 kB / 353.9 MB, free: 0.5508 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001678/0.09256, allocations: 115.5 kB / 354 MB, free: 448 kB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001755/0.09275, allocations: 115.5 kB / 354.1 MB, free: 332 kB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 4.089e-05/0.0928, allocations: 20 kB / 354.1 MB, free: 312 kB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.901e-05/0.0929, allocations: 35.98 kB / 354.2 MB, free: 276 kB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 4.763e-05/0.09296, allocations: 51.78 kB / 354.2 MB, free: 224 kB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001157/0.09308, allocations: 127.4 kB / 354.3 MB, free: 96 kB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002921/0.09338, allocations: 283.3 kB / 354.6 MB, free: 15.82 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.27e-06/0.09339, allocations: 4 kB / 354.6 MB, free: 15.81 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.052e-06/0.0934, allocations: 0 / 354.6 MB, free: 15.81 MB / 302.1 MB Notification: Performance of Transformations before backend: time 8.326e-06/0.09342, allocations: 0 / 354.6 MB, free: 15.81 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.000804/0.09422, allocations: 0.5262 MB / 355.1 MB, free: 15.24 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.591e-05/0.09427, allocations: 15.89 kB / 355.2 MB, free: 15.22 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.733e-05/0.09434, allocations: 58.67 kB / 355.2 MB, free: 15.16 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.18e-05/0.09441, allocations: 24.66 kB / 355.2 MB, free: 15.13 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002502/0.09467, allocations: 239.9 kB / 355.5 MB, free: 14.86 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.724e-05/0.09469, allocations: 20.75 kB / 355.5 MB, free: 14.84 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.028e-05/0.09474, allocations: 24.38 kB / 355.5 MB, free: 14.82 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003525/0.0951, allocations: 191.4 kB / 355.7 MB, free: 14.62 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.447e-05/0.09512, allocations: 3.906 kB / 355.7 MB, free: 14.62 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.358e-05/0.09515, allocations: 12 kB / 355.7 MB, free: 14.61 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.632e-06/0.09516, allocations: 8 kB / 355.7 MB, free: 14.6 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003128/0.09549, allocations: 145.7 kB / 355.9 MB, free: 14.46 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.001387/0.09689, allocations: 0.9296 MB / 356.8 MB, free: 13.42 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003145/0.09721, allocations: 158.6 kB / 356.9 MB, free: 13.26 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002011/0.09743, allocations: 92.83 kB / 357 MB, free: 13.16 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.181e-05/0.09746, allocations: 0 / 357 MB, free: 13.16 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.247e-05/0.0975, allocations: 46.5 kB / 357.1 MB, free: 13.11 MB / 302.1 MB Notification: Performance of pre-optimization done (n=17): time 1.463e-06/0.09751, allocations: 0 / 357.1 MB, free: 13.11 MB / 302.1 MB Notification: Performance of matching and sorting (n=17): time 0.001264/0.09877, allocations: 415.4 kB / 357.5 MB, free: 12.68 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.391e-05/0.09882, allocations: 59.39 kB / 357.5 MB, free: 12.61 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001503/0.09898, allocations: 171.2 kB / 357.7 MB, free: 12.43 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.478e-05/0.09901, allocations: 33.7 kB / 357.7 MB, free: 12.39 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.908e-05/0.0991, allocations: 140.2 kB / 357.9 MB, free: 12.25 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.812e-05/0.09915, allocations: 67.08 kB / 357.9 MB, free: 12.18 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.52e-05/0.09923, allocations: 41.7 kB / 358 MB, free: 12.14 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001036/0.09934, allocations: 330.8 kB / 358.3 MB, free: 11.8 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001164/0.09947, allocations: 47.97 kB / 358.4 MB, free: 11.76 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001246/0.0996, allocations: 72.5 kB / 358.4 MB, free: 11.68 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002383/0.09985, allocations: 125.6 kB / 358.6 MB, free: 11.55 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.385e-06/0.09986, allocations: 0 / 358.6 MB, free: 11.55 MB / 302.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0004083/0.1003, allocations: 233.1 kB / 358.8 MB, free: 11.32 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.285e-05/0.1003, allocations: 4 kB / 358.8 MB, free: 11.32 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.714e-06/0.1003, allocations: 11.88 kB / 358.8 MB, free: 11.3 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001354/0.1017, allocations: 216.6 kB / 359 MB, free: 11.09 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001379/0.1018, allocations: 27.98 kB / 359 MB, free: 11.06 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004557/0.1023, allocations: 0.6108 MB / 359.6 MB, free: 10.43 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001168/0.1024, allocations: 15.88 kB / 359.7 MB, free: 10.41 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.347e-05/0.1024, allocations: 7.938 kB / 359.7 MB, free: 10.4 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.0001192/0.1026, allocations: 133.8 kB / 359.8 MB, free: 10.26 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.362e-05/0.1026, allocations: 15.81 kB / 359.8 MB, free: 10.25 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004414/0.1031, allocations: 228.3 kB / 360 MB, free: 10.02 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.016e-06/0.1031, allocations: 0 / 360 MB, free: 10.02 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.617e-06/0.1031, allocations: 0 / 360 MB, free: 10.02 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.487e-06/0.1031, allocations: 0 / 360 MB, free: 10.02 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008506/0.1039, allocations: 0.6 MB / 360.6 MB, free: 9.355 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.058e-06/0.104, allocations: 3.938 kB / 360.6 MB, free: 9.352 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001498/0.1041, allocations: 35.91 kB / 360.7 MB, free: 9.316 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001053/0.1052, allocations: 196.7 kB / 360.9 MB, free: 9.121 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.123e-05/0.1052, allocations: 11.97 kB / 360.9 MB, free: 9.109 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000426/0.1056, allocations: 0.6186 MB / 361.5 MB, free: 8.465 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.794e-06/0.1057, allocations: 0 / 361.5 MB, free: 8.465 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007839/0.1065, allocations: 428.8 kB / 361.9 MB, free: 8.023 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.318e-05/0.1065, allocations: 88.92 kB / 362 MB, free: 7.918 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.889e-05/0.1066, allocations: 4 kB / 362 MB, free: 7.914 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001475/0.1067, allocations: 15.98 kB / 362 MB, free: 7.898 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.715e-05/0.1067, allocations: 12.05 kB / 362 MB, free: 7.887 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.091e-05/0.1068, allocations: 7.938 kB / 362 MB, free: 7.879 MB / 302.1 MB Notification: Performance of sorting global known variables: time 9.302e-05/0.1069, allocations: 132.3 kB / 362.2 MB, free: 7.75 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.1069, allocations: 0 / 362.2 MB, free: 7.75 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003206/0.1072, allocations: 59.84 kB / 362.2 MB, free: 7.691 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.001088/0.1083, allocations: 0.9705 MB / 363.2 MB, free: 6.688 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003842/0.1087, allocations: 151.8 kB / 363.4 MB, free: 6.539 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.765e-06/0.1087, allocations: 4.125 kB / 363.4 MB, free: 6.535 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001842/0.1089, allocations: 83.89 kB / 363.4 MB, free: 6.453 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003674/0.1093, allocations: 31.98 kB / 363.5 MB, free: 6.422 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002721/0.112, allocations: 2.313 MB / 365.8 MB, free: 4.008 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002619/0.1123, allocations: 0.7397 MB / 366.5 MB, free: 3.242 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 6.236e-05/0.1124, allocations: 13.53 kB / 366.5 MB, free: 3.23 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.663e-05/0.1124, allocations: 59.42 kB / 366.6 MB, free: 3.172 MB / 302.1 MB Notification: Performance of SimCode: time 2.61e-07/0.1124, allocations: 0 / 366.6 MB, free: 3.172 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1674/0.2799, allocations: 4.646 MB / 371.2 MB, free: 25.68 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.63/11.91, allocations: 13.83 kB / 371.3 MB, free: 25.68 MB / 302.1 MB (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.002 Modelica_4_0_0_Modelica_Electrical_Analog_Examples_HeatingRectifier.fmu > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingRectifier.pipe 2>&1) 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) Reference file matches