Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingRectifier.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.HeatingRectifier,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_HeatingRectifier",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.HeatingRectifier,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_HeatingRectifier",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001513/0.001513, allocations: 117.2 kB / 17.78 MB, free: 5.379 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001402/0.001402, allocations: 200.6 kB / 18.72 MB, free: 4.438 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.426/1.426, allocations: 227.4 MB / 246.9 MB, free: 10.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00175/0.00175, allocations: 63.88 kB / 358.2 MB, free: 13.42 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2713/0.273, allocations: 50.54 MB / 408.8 MB, free: 1.539 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.HeatingRectifier): time 0.004461/0.2775, allocations: 2.542 MB / 411.3 MB, free: 14.99 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00158/0.2791, allocations: 0.6972 MB / 412 MB, free: 14.29 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002223/0.2794, allocations: 4 kB / 412 MB, free: 14.29 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001877/0.2796, allocations: 31.64 kB / 412 MB, free: 14.25 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002112/0.2799, allocations: 71.34 kB / 412.1 MB, free: 14.18 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004553/0.2803, allocations: 95.77 kB / 412.2 MB, free: 14.09 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004265/0.2808, allocations: 282.8 kB / 412.5 MB, free: 13.81 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002259/0.281, allocations: 84.34 kB / 412.6 MB, free: 13.73 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002965/0.2813, allocations: 119.5 kB / 412.7 MB, free: 13.61 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002238/0.2815, allocations: 111.5 kB / 412.8 MB, free: 13.5 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.472e-05/0.2816, allocations: 20 kB / 412.8 MB, free: 13.48 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000141/0.2817, allocations: 43.97 kB / 412.8 MB, free: 13.44 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.642e-05/0.2818, allocations: 59.77 kB / 412.9 MB, free: 13.38 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000135/0.282, allocations: 115.5 kB / 413 MB, free: 13.27 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000446/0.2824, allocations: 289.8 kB / 413.3 MB, free: 12.98 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.971e-06/0.2824, allocations: 3.984 kB / 413.3 MB, free: 12.98 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.522e-06/0.2824, allocations: 0 / 413.3 MB, free: 12.98 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.075e-05/0.2824, allocations: 0 / 413.3 MB, free: 12.98 MB / 334.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.00101/0.2835, allocations: 0.5416 MB / 413.8 MB, free: 12.39 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.82e-05/0.2835, allocations: 8.031 kB / 413.8 MB, free: 12.38 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.274e-05/0.2836, allocations: 58.72 kB / 413.9 MB, free: 12.32 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001846/0.2838, allocations: 36.73 kB / 413.9 MB, free: 12.28 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004259/0.2842, allocations: 244 kB / 414.2 MB, free: 12 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.783e-05/0.2843, allocations: 16.81 kB / 414.2 MB, free: 11.99 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.763e-05/0.2843, allocations: 28.31 kB / 414.2 MB, free: 11.96 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003925/0.2847, allocations: 195.3 kB / 414.4 MB, free: 11.77 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.781e-05/0.2847, allocations: 7.938 kB / 414.4 MB, free: 11.76 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.785e-05/0.2848, allocations: 12 kB / 414.4 MB, free: 11.75 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.813e-06/0.2848, allocations: 4 kB / 414.4 MB, free: 11.74 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003232/0.2851, allocations: 149.6 kB / 414.6 MB, free: 11.59 MB / 334.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.001646/0.2868, allocations: 0.9182 MB / 415.5 MB, free: 10.57 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003628/0.2871, allocations: 162.6 kB / 415.7 MB, free: 10.4 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002153/0.2874, allocations: 96.77 kB / 415.8 MB, free: 10.3 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.246e-05/0.2874, allocations: 4 kB / 415.8 MB, free: 10.3 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.605e-05/0.2875, allocations: 38.56 kB / 415.8 MB, free: 10.25 MB / 334.1 MB Notification: Performance of pre-optimization done (n=17): time 1.834e-06/0.2875, allocations: 0 / 415.8 MB, free: 10.25 MB / 334.1 MB Notification: Performance of matching and sorting (n=17): time 0.001358/0.2888, allocations: 422.2 kB / 416.2 MB, free: 9.812 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.39e-05/0.2889, allocations: 51.41 kB / 416.3 MB, free: 9.75 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002111/0.2891, allocations: 184.9 kB / 416.4 MB, free: 9.559 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.831e-05/0.2891, allocations: 29.7 kB / 416.5 MB, free: 9.523 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001219/0.2893, allocations: 144.3 kB / 416.6 MB, free: 9.379 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.858e-05/0.2893, allocations: 67.44 kB / 416.7 MB, free: 9.312 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.856e-05/0.2894, allocations: 33.7 kB / 416.7 MB, free: 9.273 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001801/0.2896, allocations: 330.8 kB / 417 MB, free: 8.941 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001408/0.2897, allocations: 51.97 kB / 417.1 MB, free: 8.891 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001299/0.2899, allocations: 73.25 kB / 417.2 MB, free: 8.816 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002625/0.2902, allocations: 136 kB / 417.3 MB, free: 8.68 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.755e-06/0.2902, allocations: 0 / 417.3 MB, free: 8.68 MB / 334.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0004442/0.2906, allocations: 218.3 kB / 417.5 MB, free: 8.457 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.838e-05/0.2906, allocations: 4 kB / 417.5 MB, free: 8.453 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.078e-05/0.2907, allocations: 7.969 kB / 417.5 MB, free: 8.445 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001415/0.2921, allocations: 224.6 kB / 417.7 MB, free: 8.223 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001467/0.2922, allocations: 27.98 kB / 417.8 MB, free: 8.195 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000676/0.2929, allocations: 0.6148 MB / 418.4 MB, free: 7.555 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001436/0.2931, allocations: 15.92 kB / 418.4 MB, free: 7.539 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.879e-05/0.2931, allocations: 4 kB / 418.4 MB, free: 7.535 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.0001917/0.2933, allocations: 141.7 kB / 418.5 MB, free: 7.387 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.914e-05/0.2934, allocations: 19.91 kB / 418.5 MB, free: 7.367 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005308/0.2939, allocations: 226.5 kB / 418.8 MB, free: 7.137 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.785e-06/0.2939, allocations: 4.062 kB / 418.8 MB, free: 7.133 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.983e-06/0.2939, allocations: 4 kB / 418.8 MB, free: 7.129 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.835e-06/0.294, allocations: 7.922 kB / 418.8 MB, free: 7.121 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001058/0.295, allocations: 0.5896 MB / 419.4 MB, free: 6.469 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.414e-05/0.2951, allocations: 11.88 kB / 419.4 MB, free: 6.457 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001544/0.2952, allocations: 27.98 kB / 419.4 MB, free: 6.43 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001124/0.2963, allocations: 200.7 kB / 419.6 MB, free: 6.23 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.346e-05/0.2964, allocations: 8 kB / 419.6 MB, free: 6.223 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005666/0.297, allocations: 0.6187 MB / 420.2 MB, free: 5.578 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.785e-06/0.297, allocations: 0 / 420.2 MB, free: 5.578 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009128/0.2979, allocations: 432.8 kB / 420.7 MB, free: 5.133 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.979e-05/0.298, allocations: 96.94 kB / 420.8 MB, free: 5.02 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.55e-05/0.298, allocations: 8 kB / 420.8 MB, free: 5.012 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001462/0.2982, allocations: 8.062 kB / 420.8 MB, free: 5.004 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.03e-05/0.2983, allocations: 15.97 kB / 420.8 MB, free: 4.988 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.353e-05/0.2983, allocations: 4 kB / 420.8 MB, free: 4.984 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001306/0.2984, allocations: 132.1 kB / 420.9 MB, free: 4.855 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.2984, allocations: 0 / 420.9 MB, free: 4.855 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003429/0.2988, allocations: 55.89 kB / 421 MB, free: 4.801 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.001306/0.3001, allocations: 0.9585 MB / 421.9 MB, free: 3.809 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0004422/0.3005, allocations: 163.7 kB / 422.1 MB, free: 3.648 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 5.27e-06/0.3006, allocations: 4 kB / 422.1 MB, free: 3.645 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002008/0.3008, allocations: 87.02 kB / 422.2 MB, free: 3.562 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003749/0.3011, allocations: 28.08 kB / 422.2 MB, free: 3.535 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003462/0.3046, allocations: 2.347 MB / 424.6 MB, free: 1.098 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003739/0.305, allocations: 0.7358 MB / 425.3 MB, free: 344 kB / 334.1 MB Notification: Performance of simCode: alias equations: time 7.145e-05/0.3051, allocations: 13.55 kB / 425.3 MB, free: 328 kB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.133e-05/0.3052, allocations: 63.41 kB / 425.4 MB, free: 264 kB / 334.1 MB Notification: Performance of SimCode: time 7.21e-07/0.3052, allocations: 0 / 425.4 MB, free: 264 kB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03301/0.3382, allocations: 4.787 MB / 430.2 MB, free: 11.62 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.72/12.06, allocations: 4 kB / 430.2 MB, free: 11.62 MB / 350.1 MB (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingRectifier.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingRectifier.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingRectifier.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingRectifier.sim & python3 -m fmpy simulate --output-file Modelica_trunk_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_trunk_Modelica_Electrical_Analog_Examples_HeatingRectifier.fmu > Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingRectifier.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingRectifier_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Analog/Examples/HeatingRectifier/HeatingRectifier.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingRectifier.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches