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.001208/0.001208, allocations: 103.7 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001303/0.001303, allocations: 208.6 kB / 18.58 MB, free: 4.582 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.524/1.524, allocations: 227.4 MB / 246.8 MB, free: 10.63 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001448/0.001448, allocations: 59.97 kB / 307 MB, free: 0.5703 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09256/0.09403, allocations: 50.55 MB / 357.6 MB, free: 14.02 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.Rectifier): time 0.005943/0.1, allocations: 4.269 MB / 361.9 MB, free: 9.73 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002324/0.1024, allocations: 1.016 MB / 362.9 MB, free: 8.707 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005448/0.103, allocations: 8 kB / 362.9 MB, free: 8.699 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003784/0.1034, allocations: 99 kB / 363 MB, free: 8.602 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006403/0.104, allocations: 194.2 kB / 363.2 MB, free: 8.41 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004854/0.1045, allocations: 187.7 kB / 363.4 MB, free: 8.227 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009163/0.1055, allocations: 0.7283 MB / 364.1 MB, free: 7.496 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004147/0.1059, allocations: 227 kB / 364.3 MB, free: 7.27 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005077/0.1064, allocations: 290.9 kB / 364.6 MB, free: 6.984 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004719/0.1069, allocations: 326.5 kB / 364.9 MB, free: 6.664 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001213/0.107, allocations: 64 kB / 365 MB, free: 6.602 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001574/0.1072, allocations: 64 kB / 365 MB, free: 6.539 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001508/0.1074, allocations: 143.5 kB / 365.2 MB, free: 6.398 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003056/0.1077, allocations: 330.3 kB / 365.5 MB, free: 6.074 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006308/0.1083, allocations: 0.7122 MB / 366.2 MB, free: 5.359 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.096e-06/0.1083, allocations: 0 / 366.2 MB, free: 5.359 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.575e-06/0.1083, allocations: 8 kB / 366.2 MB, free: 5.352 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.21e-05/0.1083, allocations: 0 / 366.2 MB, free: 5.352 MB / 302.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.001411/0.1098, allocations: 0.9157 MB / 367.1 MB, free: 4.387 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.413e-05/0.1098, allocations: 12.03 kB / 367.1 MB, free: 4.375 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001449/0.11, allocations: 107.8 kB / 367.2 MB, free: 4.262 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003539/0.1103, allocations: 96.06 kB / 367.3 MB, free: 4.168 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004396/0.1108, allocations: 401.8 kB / 367.7 MB, free: 3.738 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.165e-05/0.1108, allocations: 41.69 kB / 367.8 MB, free: 3.695 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.364e-05/0.1109, allocations: 52.38 kB / 367.8 MB, free: 3.645 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008825/0.1118, allocations: 0.577 MB / 368.4 MB, free: 3.039 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.268e-05/0.1118, allocations: 0 / 368.4 MB, free: 3.039 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.608e-05/0.1119, allocations: 28 kB / 368.4 MB, free: 3.012 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.402e-05/0.1119, allocations: 16 kB / 368.4 MB, free: 2.996 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008515/0.1127, allocations: 461 kB / 368.9 MB, free: 2.543 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002648/0.1154, allocations: 2.09 MB / 371 MB, free: 372 kB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.1489/0.2643, allocations: 0.6451 MB / 371.6 MB, free: 20.61 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007011/0.265, allocations: 402 kB / 372 MB, free: 20.55 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.378e-05/0.2651, allocations: 6.812 kB / 372 MB, free: 20.55 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.259e-05/0.2651, allocations: 42.73 kB / 372.1 MB, free: 20.51 MB / 302.1 MB Notification: Performance of pre-optimization done (n=60): time 3.477e-06/0.2651, allocations: 1.094 kB / 372.1 MB, free: 20.51 MB / 302.1 MB Notification: Performance of matching and sorting (n=61): time 0.00436/0.2695, allocations: 2.044 MB / 374.1 MB, free: 19.46 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.392e-05/0.2695, allocations: 63.34 kB / 374.2 MB, free: 19.39 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004114/0.27, allocations: 369.4 kB / 374.5 MB, free: 19.21 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.794e-05/0.27, allocations: 35.92 kB / 374.6 MB, free: 19.17 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001105/0.2701, allocations: 241.8 kB / 374.8 MB, free: 18.98 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001058/0.2702, allocations: 198.5 kB / 375 MB, free: 18.82 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001268/0.2704, allocations: 94.5 kB / 375.1 MB, free: 18.77 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 6.694e-05/0.2704, allocations: 354 kB / 375.4 MB, free: 18.44 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003139/0.2708, allocations: 168.5 kB / 375.6 MB, free: 18.38 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003404/0.2711, allocations: 214.2 kB / 375.8 MB, free: 18.29 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006282/0.2717, allocations: 382.5 kB / 376.2 MB, free: 18.12 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.024e-06/0.2718, allocations: 1.406 kB / 376.2 MB, free: 18.12 MB / 302.1 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.001131/0.2729, allocations: 0.6689 MB / 376.9 MB, free: 17.82 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.839e-05/0.2729, allocations: 5.688 kB / 376.9 MB, free: 17.82 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.592e-06/0.2729, allocations: 0.5469 kB / 376.9 MB, free: 17.82 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006882/0.2736, allocations: 257.3 kB / 377.1 MB, free: 17.72 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002951/0.2739, allocations: 68.39 kB / 377.2 MB, free: 17.71 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004991/0.2789, allocations: 7.492 MB / 384.7 MB, free: 10.86 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003143/0.2793, allocations: 17.34 kB / 384.7 MB, free: 10.85 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.316e-05/0.2793, allocations: 19.17 kB / 384.7 MB, free: 10.84 MB / 302.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.0001999/0.2795, allocations: 182.1 kB / 384.9 MB, free: 10.68 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.062e-05/0.2796, allocations: 51.78 kB / 384.9 MB, free: 10.66 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001052/0.2797, allocations: 72.27 kB / 385 MB, free: 10.6 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.131e-06/0.2797, allocations: 5.969 kB / 385 MB, free: 10.6 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.261e-05/0.2798, allocations: 1.781 kB / 385 MB, free: 10.6 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.432e-06/0.2798, allocations: 3.5 kB / 385 MB, free: 10.6 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001976/0.2817, allocations: 1.36 MB / 386.4 MB, free: 9.855 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.406e-06/0.2818, allocations: 0 / 386.4 MB, free: 9.855 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000283/0.2821, allocations: 53.05 kB / 386.4 MB, free: 9.855 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006385/0.2827, allocations: 259.6 kB / 386.7 MB, free: 9.754 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.125e-05/0.2827, allocations: 16.14 kB / 386.7 MB, free: 9.742 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005156/0.2879, allocations: 7.512 MB / 394.2 MB, free: 2.867 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.103e-06/0.2879, allocations: 4.062 kB / 394.2 MB, free: 2.863 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001718/0.2897, allocations: 1.03 MB / 395.2 MB, free: 2.332 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002054/0.2899, allocations: 154.5 kB / 395.4 MB, free: 2.199 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.403e-05/0.29, allocations: 19.12 kB / 395.4 MB, free: 2.184 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002752/0.2902, allocations: 21.81 kB / 395.4 MB, free: 2.176 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001779/0.2904, allocations: 53.19 kB / 395.5 MB, free: 2.164 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.052e-05/0.2905, allocations: 15.31 kB / 395.5 MB, free: 2.16 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002889/0.2908, allocations: 263.8 kB / 395.8 MB, free: 2.027 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2908, allocations: 0 / 395.8 MB, free: 2.027 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000955/0.2917, allocations: 178 kB / 395.9 MB, free: 2.004 MB / 302.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.001775/0.2935, allocations: 1.588 MB / 397.5 MB, free: 0.9414 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001622/0.2952, allocations: 1.056 MB / 398.6 MB, free: 268 kB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.164e-06/0.2952, allocations: 1.062 kB / 398.6 MB, free: 268 kB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001058/0.2962, allocations: 0.8446 MB / 399.4 MB, free: 15.65 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005828/0.2968, allocations: 102.5 kB / 399.5 MB, free: 15.6 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007333/0.3042, allocations: 5.221 MB / 404.7 MB, free: 12.59 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000449/0.3047, allocations: 0.8936 MB / 405.6 MB, free: 11.87 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0001988/0.3049, allocations: 50.06 kB / 405.7 MB, free: 11.86 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002003/0.3051, allocations: 172 kB / 405.9 MB, free: 11.73 MB / 318.1 MB Notification: Performance of SimCode: time 7.81e-07/0.3051, allocations: 0 / 405.9 MB, free: 11.73 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04319/0.3483, allocations: 13.63 MB / 419.5 MB, free: 15.94 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.92/12.27, allocations: 15.08 kB / 419.5 MB, free: 15.93 MB / 334.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