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.001262/0.001262, allocations: 121.2 kB / 17.78 MB, free: 5.352 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001306/0.001306, allocations: 199.8 kB / 18.73 MB, free: 4.41 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.423/1.423, allocations: 227.4 MB / 246.9 MB, free: 10.49 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001771/0.001771, allocations: 59.89 kB / 358.2 MB, free: 13.4 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2693/0.2711, allocations: 50.53 MB / 408.8 MB, free: 1.523 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.Rectifier): time 0.005599/0.2768, allocations: 4.278 MB / 413.1 MB, free: 13.23 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002329/0.2791, allocations: 1.023 MB / 414.1 MB, free: 12.2 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002212/0.2794, allocations: 11.94 kB / 414.1 MB, free: 12.19 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002592/0.2797, allocations: 95.02 kB / 414.2 MB, free: 12.1 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004606/0.2801, allocations: 194.3 kB / 414.4 MB, free: 11.91 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003614/0.2805, allocations: 187.7 kB / 414.6 MB, free: 11.72 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007473/0.2813, allocations: 0.7322 MB / 415.3 MB, free: 10.98 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003523/0.2816, allocations: 231 kB / 415.5 MB, free: 10.75 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003633/0.282, allocations: 286.9 kB / 415.8 MB, free: 10.47 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003937/0.2824, allocations: 334.5 kB / 416.1 MB, free: 10.14 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 9.171e-05/0.2825, allocations: 64 kB / 416.2 MB, free: 10.08 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001332/0.2826, allocations: 60 kB / 416.2 MB, free: 10.02 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001607/0.2828, allocations: 147.5 kB / 416.4 MB, free: 9.879 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002996/0.2831, allocations: 334.3 kB / 416.7 MB, free: 9.551 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007648/0.2839, allocations: 0.7157 MB / 417.4 MB, free: 8.832 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.579e-06/0.2839, allocations: 0 / 417.4 MB, free: 8.832 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.192e-06/0.2839, allocations: 0 / 417.4 MB, free: 8.832 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.341e-05/0.2839, allocations: 0 / 417.4 MB, free: 8.832 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.001543/0.2855, allocations: 0.9346 MB / 418.4 MB, free: 7.844 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.339e-05/0.2855, allocations: 16.02 kB / 418.4 MB, free: 7.828 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001646/0.2857, allocations: 107.9 kB / 418.5 MB, free: 7.715 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003765/0.2861, allocations: 104.5 kB / 418.6 MB, free: 7.613 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000648/0.2868, allocations: 406.1 kB / 419 MB, free: 7.176 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.77e-05/0.2868, allocations: 45.62 kB / 419 MB, free: 7.133 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.234e-05/0.2869, allocations: 56.33 kB / 419.1 MB, free: 7.078 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009772/0.2879, allocations: 0.577 MB / 419.7 MB, free: 6.473 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.465e-05/0.2879, allocations: 0 / 419.7 MB, free: 6.473 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.479e-05/0.288, allocations: 20 kB / 419.7 MB, free: 6.453 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.446e-05/0.288, allocations: 12 kB / 419.7 MB, free: 6.441 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008851/0.2889, allocations: 472.9 kB / 420.1 MB, free: 5.977 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003008/0.2919, allocations: 2.083 MB / 422.2 MB, free: 3.805 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009813/0.2929, allocations: 0.6376 MB / 422.9 MB, free: 3.137 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006503/0.2936, allocations: 402.2 kB / 423.3 MB, free: 2.742 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.738e-05/0.2936, allocations: 4.562 kB / 423.3 MB, free: 2.738 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.563e-05/0.2937, allocations: 39.12 kB / 423.3 MB, free: 2.691 MB / 334.1 MB Notification: Performance of pre-optimization done (n=60): time 1.924e-06/0.2937, allocations: 0 / 423.3 MB, free: 2.691 MB / 334.1 MB Notification: Performance of matching and sorting (n=61): time 0.004604/0.2983, allocations: 2.045 MB / 425.3 MB, free: 0.5273 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.125e-05/0.2983, allocations: 55.97 kB / 425.4 MB, free: 472 kB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004279/0.2988, allocations: 369.6 kB / 425.8 MB, free: 92 kB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.852e-05/0.2988, allocations: 37.7 kB / 425.8 MB, free: 48 kB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001944/0.299, allocations: 245.3 kB / 426 MB, free: 15.8 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001674/0.2992, allocations: 214.2 kB / 426.2 MB, free: 15.59 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001508/0.2994, allocations: 94.25 kB / 426.3 MB, free: 15.49 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001806/0.2996, allocations: 362.7 kB / 426.7 MB, free: 15.12 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003397/0.2999, allocations: 165 kB / 426.9 MB, free: 14.96 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003668/0.3003, allocations: 215.7 kB / 427.1 MB, free: 14.75 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000688/0.301, allocations: 380.9 kB / 427.4 MB, free: 14.37 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.633e-06/0.301, allocations: 0 / 427.4 MB, free: 14.37 MB / 350.1 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.001263/0.3022, allocations: 0.6736 MB / 428.1 MB, free: 13.68 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.882e-05/0.3023, allocations: 4 kB / 428.1 MB, free: 13.67 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.539e-05/0.3023, allocations: 11.98 kB / 428.1 MB, free: 13.66 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007613/0.3031, allocations: 263.1 kB / 428.4 MB, free: 13.39 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002914/0.3034, allocations: 55.95 kB / 428.4 MB, free: 13.34 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007588/0.311, allocations: 7.495 MB / 435.9 MB, free: 5.289 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003119/0.3113, allocations: 20.02 kB / 436 MB, free: 5.27 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.454e-05/0.3114, allocations: 20 kB / 436 MB, free: 5.25 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.0002625/0.3116, allocations: 177.3 kB / 436.1 MB, free: 5.07 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.035e-05/0.3117, allocations: 55.61 kB / 436.2 MB, free: 5.016 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001299/0.3119, allocations: 73.09 kB / 436.3 MB, free: 4.945 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.749e-06/0.3119, allocations: 4 kB / 436.3 MB, free: 4.941 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.368e-06/0.3119, allocations: 4 kB / 436.3 MB, free: 4.938 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.943e-06/0.3119, allocations: 3.984 kB / 436.3 MB, free: 4.934 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002216/0.3141, allocations: 1.353 MB / 437.6 MB, free: 3.512 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.286e-06/0.3141, allocations: 0 / 437.6 MB, free: 3.512 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002885/0.3144, allocations: 63.89 kB / 437.7 MB, free: 3.449 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007122/0.3151, allocations: 263.5 kB / 438 MB, free: 3.18 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.393e-05/0.3152, allocations: 16 kB / 438 MB, free: 3.164 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007312/0.3225, allocations: 7.506 MB / 445.5 MB, free: 11.1 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.094e-06/0.3225, allocations: 3.938 kB / 445.5 MB, free: 11.1 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00189/0.3244, allocations: 1.03 MB / 446.5 MB, free: 10.04 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002248/0.3247, allocations: 160.8 kB / 446.7 MB, free: 9.863 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.351e-05/0.3247, allocations: 8 kB / 446.7 MB, free: 9.855 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002526/0.325, allocations: 19.98 kB / 446.7 MB, free: 9.836 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001514/0.3252, allocations: 52.48 kB / 446.7 MB, free: 9.785 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.218e-05/0.3252, allocations: 23.94 kB / 446.8 MB, free: 9.762 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002933/0.3255, allocations: 263.1 kB / 447 MB, free: 9.512 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.21e-07/0.3255, allocations: 0 / 447 MB, free: 9.512 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0008786/0.3264, allocations: 180 kB / 447.2 MB, free: 9.336 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.002157/0.3286, allocations: 1.593 MB / 448.8 MB, free: 7.707 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001705/0.3303, allocations: 1.041 MB / 449.8 MB, free: 6.613 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.344e-06/0.3303, allocations: 0 / 449.8 MB, free: 6.613 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001188/0.3315, allocations: 0.8569 MB / 450.7 MB, free: 5.707 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004955/0.332, allocations: 89.8 kB / 450.8 MB, free: 5.613 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007516/0.3395, allocations: 5.111 MB / 455.9 MB, free: 408 kB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005693/0.3401, allocations: 0.8871 MB / 456.8 MB, free: 15.48 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001711/0.3403, allocations: 52.53 kB / 456.8 MB, free: 15.43 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002251/0.3405, allocations: 179.3 kB / 457 MB, free: 15.26 MB / 382.1 MB Notification: Performance of SimCode: time 7.61e-07/0.3405, allocations: 0 / 457 MB, free: 15.26 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05137/0.3919, allocations: 13.9 MB / 470.9 MB, free: 1.543 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.67/13.06, allocations: 0 / 470.9 MB, free: 1.543 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.1.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