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.001244/0.001244, allocations: 110.5 kB / 17.73 MB, free: 5.352 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.001262/0.001262, allocations: 187.1 kB / 18.66 MB, free: 4.426 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.489/1.489, allocations: 205.1 MB / 224.5 MB, free: 12.24 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.002663/0.002663, allocations: 59.91 kB / 328 MB, free: 3.809 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1324/0.1351, allocations: 46.61 MB / 374.6 MB, free: 5.086 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.HeatingRectifier): time 0.004763/0.1399, allocations: 2.466 MB / 377.1 MB, free: 2.602 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.00139/0.1413, allocations: 0.6786 MB / 377.8 MB, free: 1.918 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001192/0.1414, allocations: 3.938 kB / 377.8 MB, free: 1.914 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001534/0.1416, allocations: 35.64 kB / 377.8 MB, free: 1.879 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001384/0.1418, allocations: 71.34 kB / 377.9 MB, free: 1.809 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003144/0.1421, allocations: 83.83 kB / 378 MB, free: 1.727 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.000307/0.1424, allocations: 278.6 kB / 378.3 MB, free: 1.453 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001989/0.1426, allocations: 88.33 kB / 378.3 MB, free: 1.367 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001459/0.1428, allocations: 99.66 kB / 378.4 MB, free: 1.27 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001632/0.1429, allocations: 123.4 kB / 378.6 MB, free: 1.148 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.264e-05/0.143, allocations: 28 kB / 378.6 MB, free: 1.121 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.145e-05/0.1431, allocations: 35.98 kB / 378.6 MB, free: 1.086 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 5.608e-05/0.1431, allocations: 47.84 kB / 378.7 MB, free: 1.039 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001371/0.1433, allocations: 119.5 kB / 378.8 MB, free: 0.9219 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003916/0.1437, allocations: 278.9 kB / 379.1 MB, free: 0.6484 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.837e-06/0.1437, allocations: 0 / 379.1 MB, free: 0.6484 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.733e-06/0.1437, allocations: 0 / 379.1 MB, free: 0.6484 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.803e-06/0.1437, allocations: 0 / 379.1 MB, free: 0.6484 MB / 318.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.0008424/0.1446, allocations: 0.5299 MB / 379.6 MB, free: 72 kB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.45e-05/0.1446, allocations: 12.03 kB / 379.6 MB, free: 60 kB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.1684/0.3131, allocations: 51.31 kB / 379.6 MB, free: 13.07 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001385/0.3132, allocations: 25.03 kB / 379.7 MB, free: 13.07 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004549/0.3137, allocations: 243.4 kB / 379.9 MB, free: 12.86 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.346e-05/0.3137, allocations: 19.2 kB / 379.9 MB, free: 12.86 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.893e-05/0.3138, allocations: 20.22 kB / 379.9 MB, free: 12.86 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004806/0.3143, allocations: 188.6 kB / 380.1 MB, free: 12.82 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.9e-05/0.3143, allocations: 3.938 kB / 380.1 MB, free: 12.82 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.888e-05/0.3144, allocations: 10.47 kB / 380.1 MB, free: 12.82 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.048e-05/0.3144, allocations: 4.125 kB / 380.2 MB, free: 12.82 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00041/0.3148, allocations: 155.1 kB / 380.3 MB, free: 12.82 MB / 318.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.001533/0.3164, allocations: 0.9259 MB / 381.2 MB, free: 12.23 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003347/0.3167, allocations: 157.5 kB / 381.4 MB, free: 12.21 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002123/0.3169, allocations: 98.94 kB / 381.5 MB, free: 12.2 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.82e-05/0.317, allocations: 1.312 kB / 381.5 MB, free: 12.2 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.377e-05/0.317, allocations: 35.66 kB / 381.5 MB, free: 12.16 MB / 318.1 MB Notification: Performance of pre-optimization done (n=17): time 2.204e-06/0.317, allocations: 3.578 kB / 381.5 MB, free: 12.16 MB / 318.1 MB Notification: Performance of matching and sorting (n=17): time 0.001324/0.3183, allocations: 418.9 kB / 381.9 MB, free: 12.02 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.097e-05/0.3184, allocations: 53.77 kB / 382 MB, free: 11.95 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002199/0.3186, allocations: 170.6 kB / 382.1 MB, free: 11.86 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.509e-05/0.3186, allocations: 31.5 kB / 382.2 MB, free: 11.82 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.625e-05/0.3187, allocations: 151.2 kB / 382.3 MB, free: 11.72 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.237e-05/0.3188, allocations: 58.28 kB / 382.4 MB, free: 11.68 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001003/0.3189, allocations: 43.8 kB / 382.4 MB, free: 11.65 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 9.229e-05/0.319, allocations: 323.8 kB / 382.7 MB, free: 11.34 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001527/0.3192, allocations: 51.94 kB / 382.8 MB, free: 11.32 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001495/0.3193, allocations: 72.73 kB / 382.9 MB, free: 11.28 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002688/0.3196, allocations: 128 kB / 383 MB, free: 11.21 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.176e-06/0.3196, allocations: 8.594 kB / 383 MB, free: 11.21 MB / 318.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0005025/0.3201, allocations: 217.6 kB / 383.2 MB, free: 11.1 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.162e-05/0.3202, allocations: 5.719 kB / 383.2 MB, free: 11.1 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.885e-06/0.3202, allocations: 2.906 kB / 383.2 MB, free: 11.1 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001338/0.3215, allocations: 217.7 kB / 383.4 MB, free: 11.08 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001445/0.3217, allocations: 37.33 kB / 383.5 MB, free: 11.07 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004501/0.3221, allocations: 0.6078 MB / 384.1 MB, free: 10.51 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001263/0.3223, allocations: 17.11 kB / 384.1 MB, free: 10.5 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.974e-05/0.3223, allocations: 10.55 kB / 384.1 MB, free: 10.5 MB / 318.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.0001281/0.3224, allocations: 138.7 kB / 384.2 MB, free: 10.36 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.578e-05/0.3225, allocations: 17.14 kB / 384.3 MB, free: 10.36 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005156/0.323, allocations: 226.8 kB / 384.5 MB, free: 10.23 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.929e-06/0.323, allocations: 2.25 kB / 384.5 MB, free: 10.23 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.909e-06/0.3231, allocations: 4.766 kB / 384.5 MB, free: 10.23 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.815e-06/0.3231, allocations: 0.8438 kB / 384.5 MB, free: 10.23 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009437/0.324, allocations: 0.5896 MB / 385.1 MB, free: 9.801 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.861e-06/0.324, allocations: 1.938 kB / 385.1 MB, free: 9.801 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001517/0.3242, allocations: 37.16 kB / 385.1 MB, free: 9.793 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001022/0.3252, allocations: 201.3 kB / 385.3 MB, free: 9.766 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.934e-05/0.3253, allocations: 2.031 kB / 385.3 MB, free: 9.766 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000394/0.3257, allocations: 0.6262 MB / 385.9 MB, free: 9.191 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.843e-06/0.3257, allocations: 1.094 kB / 385.9 MB, free: 9.191 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007618/0.3264, allocations: 426.8 kB / 386.4 MB, free: 8.941 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.198e-05/0.3265, allocations: 99.66 kB / 386.5 MB, free: 8.832 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.193e-05/0.3265, allocations: 6.125 kB / 386.5 MB, free: 8.828 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001327/0.3267, allocations: 7.25 kB / 386.5 MB, free: 8.828 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.539e-05/0.3267, allocations: 14.59 kB / 386.5 MB, free: 8.824 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.344e-05/0.3268, allocations: 7.516 kB / 386.5 MB, free: 8.824 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001001/0.3269, allocations: 140.5 kB / 386.6 MB, free: 8.723 MB / 318.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3269, allocations: 4.062 kB / 386.6 MB, free: 8.719 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003302/0.3272, allocations: 60.25 kB / 386.7 MB, free: 8.703 MB / 318.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.001008/0.3282, allocations: 0.9571 MB / 387.6 MB, free: 7.922 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0003989/0.3286, allocations: 148 kB / 387.8 MB, free: 7.879 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.835e-06/0.3287, allocations: 0 / 387.8 MB, free: 7.879 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001963/0.3289, allocations: 87.66 kB / 387.9 MB, free: 7.855 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003743/0.3292, allocations: 39.14 kB / 387.9 MB, free: 7.832 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002548/0.3318, allocations: 2.282 MB / 390.2 MB, free: 6.148 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001758/0.332, allocations: 0.746 MB / 390.9 MB, free: 5.441 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 5.964e-05/0.3321, allocations: 15.2 kB / 391 MB, free: 5.438 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.889e-05/0.3321, allocations: 60.05 kB / 391 MB, free: 5.395 MB / 318.1 MB Notification: Performance of SimCode: time 2.11e-07/0.3321, allocations: 2.297 kB / 391 MB, free: 5.395 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02952/0.3617, allocations: 4.713 MB / 395.7 MB, free: 4.582 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.74/13.1, allocations: 21.55 kB / 395.7 MB, free: 4.562 MB / 318.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