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.001351/0.001351, allocations: 105.2 kB / 17.06 MB, free: 6.02 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.001295/0.001295, allocations: 192 kB / 18 MB, free: 5.098 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.443/1.443, allocations: 222.9 MB / 241.7 MB, free: 15.14 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001506/0.001506, allocations: 47.92 kB / 350.8 MB, free: 3.746 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.26/0.2615, allocations: 49.44 MB / 400.2 MB, free: 8.41 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.HeatingRectifier): time 0.004042/0.2656, allocations: 2.516 MB / 402.8 MB, free: 6.281 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001224/0.2669, allocations: 0.6543 MB / 403.4 MB, free: 5.621 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000123/0.267, allocations: 4 kB / 403.4 MB, free: 5.617 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001491/0.2672, allocations: 31.66 kB / 403.4 MB, free: 5.586 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001317/0.2673, allocations: 71.33 kB / 403.5 MB, free: 5.516 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003027/0.2676, allocations: 91.7 kB / 403.6 MB, free: 5.426 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004197/0.2681, allocations: 274.8 kB / 403.9 MB, free: 5.156 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001842/0.2683, allocations: 92.34 kB / 404 MB, free: 5.066 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001712/0.2684, allocations: 103.6 kB / 404.1 MB, free: 4.965 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001829/0.2686, allocations: 115.5 kB / 404.2 MB, free: 4.852 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.297e-05/0.2687, allocations: 27.94 kB / 404.2 MB, free: 4.824 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.733e-05/0.2688, allocations: 39.98 kB / 404.2 MB, free: 4.785 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 5.282e-05/0.2688, allocations: 47.84 kB / 404.3 MB, free: 4.738 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001355/0.269, allocations: 123.4 kB / 404.4 MB, free: 4.617 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003661/0.2694, allocations: 285.8 kB / 404.7 MB, free: 4.34 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.228e-06/0.2694, allocations: 0 / 404.7 MB, free: 4.34 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.292e-06/0.2694, allocations: 0 / 404.7 MB, free: 4.34 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.921e-06/0.2694, allocations: 0 / 404.7 MB, free: 4.34 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.0009809/0.2704, allocations: 0.5416 MB / 405.2 MB, free: 3.75 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.005e-05/0.2704, allocations: 8.031 kB / 405.2 MB, free: 3.742 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.218e-05/0.2705, allocations: 58.72 kB / 405.3 MB, free: 3.676 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.336e-05/0.2706, allocations: 28.8 kB / 405.3 MB, free: 3.648 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003723/0.2709, allocations: 240 kB / 405.6 MB, free: 3.375 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.849e-05/0.271, allocations: 12.81 kB / 405.6 MB, free: 3.363 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.632e-05/0.271, allocations: 20.38 kB / 405.6 MB, free: 3.344 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003831/0.2714, allocations: 199.4 kB / 405.8 MB, free: 3.145 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.379e-05/0.2714, allocations: 0 / 405.8 MB, free: 3.145 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.374e-05/0.2715, allocations: 8 kB / 405.8 MB, free: 3.137 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.797e-06/0.2715, allocations: 4 kB / 405.8 MB, free: 3.133 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003414/0.2718, allocations: 149.7 kB / 405.9 MB, free: 2.98 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.001539/0.2734, allocations: 0.9298 MB / 406.9 MB, free: 1.941 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003329/0.2737, allocations: 158.5 kB / 407 MB, free: 1.777 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002186/0.2739, allocations: 100.8 kB / 407.1 MB, free: 1.676 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.86e-05/0.274, allocations: 7.938 kB / 407.1 MB, free: 1.668 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.609e-05/0.274, allocations: 30.56 kB / 407.2 MB, free: 1.629 MB / 318.1 MB Notification: Performance of pre-optimization done (n=17): time 1.373e-06/0.274, allocations: 0 / 407.2 MB, free: 1.629 MB / 318.1 MB Notification: Performance of matching and sorting (n=17): time 0.001362/0.2754, allocations: 421.9 kB / 407.6 MB, free: 1.191 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.986e-05/0.2754, allocations: 55.41 kB / 407.6 MB, free: 1.125 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001816/0.2756, allocations: 187.2 kB / 407.8 MB, free: 0.9297 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.391e-05/0.2757, allocations: 25.7 kB / 407.8 MB, free: 0.8984 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001052/0.2758, allocations: 148.2 kB / 408 MB, free: 0.75 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.076e-05/0.2758, allocations: 67.44 kB / 408.1 MB, free: 0.6836 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.466e-05/0.2759, allocations: 33.7 kB / 408.1 MB, free: 0.6445 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001487/0.2761, allocations: 334.7 kB / 408.4 MB, free: 316 kB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001255/0.2762, allocations: 51.97 kB / 408.5 MB, free: 264 kB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001329/0.2763, allocations: 75 kB / 408.5 MB, free: 184 kB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002609/0.2766, allocations: 121.7 kB / 408.7 MB, free: 56 kB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.023e-06/0.2766, allocations: 4 kB / 408.7 MB, free: 52 kB / 318.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0004427/0.2771, allocations: 217.3 kB / 408.9 MB, free: 15.83 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.591e-05/0.2771, allocations: 4 kB / 408.9 MB, free: 15.82 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.351e-05/0.2771, allocations: 11.97 kB / 408.9 MB, free: 15.81 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001408/0.2785, allocations: 212.5 kB / 409.1 MB, free: 15.61 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001442/0.2787, allocations: 35.91 kB / 409.1 MB, free: 15.57 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000535/0.2792, allocations: 0.6109 MB / 409.7 MB, free: 14.93 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001315/0.2794, allocations: 15.92 kB / 409.8 MB, free: 14.92 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.621e-05/0.2794, allocations: 4 kB / 409.8 MB, free: 14.91 MB / 334.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.0001691/0.2796, allocations: 141.7 kB / 409.9 MB, free: 14.77 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.251e-05/0.2797, allocations: 19.91 kB / 409.9 MB, free: 14.75 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004758/0.2802, allocations: 220.2 kB / 410.1 MB, free: 14.52 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.661e-06/0.2802, allocations: 8.062 kB / 410.1 MB, free: 14.51 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.268e-06/0.2802, allocations: 0 / 410.1 MB, free: 14.51 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.412e-06/0.2802, allocations: 3.984 kB / 410.1 MB, free: 14.51 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009282/0.2811, allocations: 0.5897 MB / 410.7 MB, free: 13.85 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.489e-06/0.2812, allocations: 3.938 kB / 410.7 MB, free: 13.85 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001473/0.2813, allocations: 31.98 kB / 410.8 MB, free: 13.82 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001093/0.2824, allocations: 204.6 kB / 411 MB, free: 13.61 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.078e-05/0.2824, allocations: 12 kB / 411 MB, free: 13.6 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005177/0.283, allocations: 0.6226 MB / 411.6 MB, free: 12.95 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.503e-06/0.283, allocations: 0 / 411.6 MB, free: 12.95 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000835/0.2838, allocations: 424.9 kB / 412 MB, free: 12.52 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.015e-05/0.2839, allocations: 100.9 kB / 412.1 MB, free: 12.4 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.033e-05/0.2839, allocations: 8 kB / 412.1 MB, free: 12.39 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000207/0.2842, allocations: 8.156 kB / 412.1 MB, free: 12.38 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.375e-05/0.2842, allocations: 15.92 kB / 412.1 MB, free: 12.37 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.746e-05/0.2842, allocations: 7.984 kB / 412.2 MB, free: 12.36 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001276/0.2844, allocations: 128.3 kB / 412.3 MB, free: 12.23 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2844, allocations: 0 / 412.3 MB, free: 12.23 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003026/0.2847, allocations: 55.89 kB / 412.3 MB, free: 12.18 MB / 334.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.001209/0.2859, allocations: 0.9762 MB / 413.3 MB, free: 11.17 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0004694/0.2864, allocations: 154.3 kB / 413.5 MB, free: 11.02 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.024e-05/0.2864, allocations: 0 / 413.5 MB, free: 11.02 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002267/0.2867, allocations: 95.84 kB / 413.6 MB, free: 10.93 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003463/0.287, allocations: 23.98 kB / 413.6 MB, free: 10.91 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00311/0.2901, allocations: 2.328 MB / 415.9 MB, free: 8.492 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003653/0.2905, allocations: 0.7397 MB / 416.6 MB, free: 7.727 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 6.289e-05/0.2906, allocations: 5.562 kB / 416.7 MB, free: 7.719 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.017e-05/0.2907, allocations: 63.41 kB / 416.7 MB, free: 7.656 MB / 334.1 MB Notification: Performance of SimCode: time 2.214e-06/0.2907, allocations: 0 / 416.7 MB, free: 7.656 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03159/0.3223, allocations: 4.756 MB / 421.5 MB, free: 3.055 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.26/12.58, allocations: 12 kB / 421.5 MB, free: 3.043 MB / 334.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