Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.Rectifier.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.Rectifier,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_Rectifier",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.Rectifier,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_Rectifier",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00109/0.00109, allocations: 117.6 kB / 17.79 MB, free: 5.254 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001107/0.001107, allocations: 199.9 kB / 18.74 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.322/1.322, allocations: 227.4 MB / 246.9 MB, free: 10.54 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001102/0.001102, allocations: 59.89 kB / 358.2 MB, free: 13.4 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2796/0.2807, allocations: 50.53 MB / 408.8 MB, free: 1.488 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.Rectifier): time 0.004998/0.2857, allocations: 4.278 MB / 413.1 MB, free: 13.2 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001746/0.2875, allocations: 1.015 MB / 414.1 MB, free: 12.18 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002062/0.2877, allocations: 12 kB / 414.1 MB, free: 12.16 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002275/0.288, allocations: 99 kB / 414.2 MB, free: 12.07 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004291/0.2884, allocations: 202.2 kB / 414.4 MB, free: 11.87 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003519/0.2888, allocations: 191.7 kB / 414.6 MB, free: 11.68 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005917/0.2894, allocations: 0.7361 MB / 415.3 MB, free: 10.94 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002938/0.2897, allocations: 219 kB / 415.5 MB, free: 10.72 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003245/0.29, allocations: 294.9 kB / 415.8 MB, free: 10.43 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003311/0.2903, allocations: 330.5 kB / 416.1 MB, free: 10.11 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 7.66e-05/0.2904, allocations: 60 kB / 416.2 MB, free: 10.05 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001183/0.2906, allocations: 64 kB / 416.2 MB, free: 9.984 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001386/0.2907, allocations: 151.4 kB / 416.4 MB, free: 9.836 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002568/0.291, allocations: 322.3 kB / 416.7 MB, free: 9.52 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006354/0.2916, allocations: 0.7235 MB / 417.4 MB, free: 8.793 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.571e-06/0.2916, allocations: 0 / 417.4 MB, free: 8.793 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.503e-06/0.2916, allocations: 3.938 kB / 417.4 MB, free: 8.789 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.275e-06/0.2916, allocations: 0 / 417.4 MB, free: 8.789 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: 128 * Number of variables: 128 Notification: Performance of Generate backend data structure: time 0.001364/0.293, allocations: 0.9385 MB / 418.4 MB, free: 7.797 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.527e-05/0.2931, allocations: 8.031 kB / 418.4 MB, free: 7.789 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001321/0.2932, allocations: 111.9 kB / 418.5 MB, free: 7.672 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003396/0.2935, allocations: 96.48 kB / 418.6 MB, free: 7.578 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004944/0.294, allocations: 402.2 kB / 419 MB, free: 7.145 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.025e-05/0.2941, allocations: 45.69 kB / 419 MB, free: 7.102 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.006e-05/0.2942, allocations: 56.33 kB / 419.1 MB, free: 7.047 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008628/0.295, allocations: 0.5732 MB / 419.7 MB, free: 6.445 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.601e-05/0.2951, allocations: 0 / 419.7 MB, free: 6.445 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.516e-05/0.2951, allocations: 24 kB / 419.7 MB, free: 6.422 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.255e-05/0.2951, allocations: 19.94 kB / 419.7 MB, free: 6.402 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008136/0.296, allocations: 468.9 kB / 420.2 MB, free: 5.941 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002617/0.2986, allocations: 2.079 MB / 422.2 MB, free: 3.773 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008511/0.2994, allocations: 0.6453 MB / 422.9 MB, free: 3.098 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005431/0.3, allocations: 402.2 kB / 423.3 MB, free: 2.703 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.362e-05/0.3, allocations: 8.5 kB / 423.3 MB, free: 2.695 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.155e-05/0.3001, allocations: 43.12 kB / 423.3 MB, free: 2.645 MB / 334.1 MB Notification: Performance of pre-optimization done (n=60): time 1.843e-06/0.3001, allocations: 0 / 423.3 MB, free: 2.645 MB / 334.1 MB Notification: Performance of matching and sorting (n=61): time 0.004108/0.3042, allocations: 2.041 MB / 425.4 MB, free: 496 kB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.95e-05/0.3043, allocations: 59.97 kB / 425.4 MB, free: 424 kB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003465/0.3046, allocations: 365.7 kB / 425.8 MB, free: 48 kB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.35e-05/0.3046, allocations: 33.7 kB / 425.8 MB, free: 8 kB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001632/0.3048, allocations: 253.3 kB / 426.1 MB, free: 15.75 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001313/0.305, allocations: 210.2 kB / 426.3 MB, free: 15.55 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001314/0.3051, allocations: 90.25 kB / 426.4 MB, free: 15.45 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001228/0.3052, allocations: 358.7 kB / 426.7 MB, free: 15.09 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003173/0.3055, allocations: 169 kB / 426.9 MB, free: 14.93 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003451/0.3059, allocations: 215.8 kB / 427.1 MB, free: 14.71 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006373/0.3065, allocations: 384.8 kB / 427.5 MB, free: 14.33 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.727e-06/0.3066, allocations: 0 / 427.5 MB, free: 14.33 MB / 350.1 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.001124/0.3077, allocations: 0.6736 MB / 428.1 MB, free: 13.63 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.818e-05/0.3077, allocations: 8 kB / 428.1 MB, free: 13.62 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.513e-06/0.3077, allocations: 0 / 428.1 MB, free: 13.62 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006975/0.3084, allocations: 259.2 kB / 428.4 MB, free: 13.36 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002966/0.3087, allocations: 59.91 kB / 428.4 MB, free: 13.3 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006313/0.3151, allocations: 7.502 MB / 436 MB, free: 5.246 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002939/0.3154, allocations: 24.02 kB / 436 MB, free: 5.223 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.084e-05/0.3154, allocations: 16 kB / 436 MB, free: 5.207 MB / 350.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: 6 (IdealDiode6.off,IdealDiode5.off,IdealDiode4.off,IdealDiode3.off,IdealDiode2.off,IdealDiode1.off) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (33): * Single equations (assignments): 29 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,9,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 3 systems {(2,7), (2,7), (2,7)} Notification: Performance of prepare postOptimizeDAE: time 0.0002335/0.3157, allocations: 177.9 kB / 436.2 MB, free: 5.023 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.31e-05/0.3157, allocations: 59.61 kB / 436.2 MB, free: 4.965 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001023/0.3159, allocations: 65.03 kB / 436.3 MB, free: 4.902 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.675e-06/0.3159, allocations: 8 kB / 436.3 MB, free: 4.895 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.055e-06/0.3159, allocations: 0 / 436.3 MB, free: 4.895 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.351e-06/0.3159, allocations: 4.109 kB / 436.3 MB, free: 4.891 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001958/0.3179, allocations: 1.36 MB / 437.7 MB, free: 3.461 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.226e-06/0.3179, allocations: 0 / 437.7 MB, free: 3.461 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002671/0.3181, allocations: 55.91 kB / 437.7 MB, free: 3.406 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006191/0.3188, allocations: 263.1 kB / 438 MB, free: 3.137 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.029e-05/0.3188, allocations: 15.98 kB / 438 MB, free: 3.121 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006012/0.3248, allocations: 7.51 MB / 445.5 MB, free: 11.05 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.313e-06/0.3249, allocations: 0 / 445.5 MB, free: 11.05 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001632/0.3265, allocations: 1.034 MB / 446.5 MB, free: 9.992 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001866/0.3267, allocations: 164.8 kB / 446.7 MB, free: 9.812 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.883e-05/0.3268, allocations: 12 kB / 446.7 MB, free: 9.801 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002481/0.327, allocations: 12 kB / 446.7 MB, free: 9.789 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000116/0.3271, allocations: 56.48 kB / 446.8 MB, free: 9.734 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.877e-05/0.3272, allocations: 19.92 kB / 446.8 MB, free: 9.715 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002383/0.3274, allocations: 263.2 kB / 447 MB, free: 9.465 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3274, allocations: 0 / 447 MB, free: 9.465 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0008175/0.3282, allocations: 172 kB / 447.2 MB, free: 9.297 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (Inductor2.i,Inductor3.i,Capacitor1.v,Capacitor2.v) * Number of discrete variables: 6 (IdealDiode1.off,IdealDiode2.off,IdealDiode3.off,IdealDiode4.off,IdealDiode5.off,IdealDiode6.off) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (28): * Single equations (assignments): 24 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,9,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 3 systems {(2,7), (2,7), (2,7)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001857/0.3301, allocations: 1.597 MB / 448.8 MB, free: 7.664 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001511/0.3316, allocations: 1.049 MB / 449.9 MB, free: 6.562 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.254e-06/0.3316, allocations: 0 / 449.9 MB, free: 6.562 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001052/0.3327, allocations: 0.857 MB / 450.7 MB, free: 5.656 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005071/0.3332, allocations: 89.55 kB / 450.8 MB, free: 5.562 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006675/0.3399, allocations: 5.102 MB / 455.9 MB, free: 360 kB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004485/0.3404, allocations: 0.8871 MB / 456.8 MB, free: 15.44 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001835/0.3406, allocations: 56.47 kB / 456.8 MB, free: 15.38 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002056/0.3408, allocations: 171.4 kB / 457 MB, free: 15.21 MB / 382.1 MB Notification: Performance of SimCode: time 3.91e-07/0.3408, allocations: 0 / 457 MB, free: 15.21 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04196/0.3828, allocations: 13.9 MB / 470.9 MB, free: 1.504 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.11/12.49, allocations: 4.062 kB / 470.9 MB, free: 1.5 MB / 382.1 MB (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.Rectifier.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.Rectifier.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.Rectifier.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.Rectifier.sim & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Electrical.Analog.Examples.Rectifier_res.csv --start-time 0 --stop-time 0.1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 1e-05 Modelica_trunk_Modelica_Electrical_Analog_Examples_Rectifier.fmu > Modelica_trunk_Modelica.Electrical.Analog.Examples.Rectifier.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Analog.Examples.Rectifier_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/Rectifier/Rectifier.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Analog.Examples.Rectifier.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches