Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Analog.Examples.Rectifier.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001814/0.001814, allocations: 103.6 kB / 21.18 MB, free: 332 kB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002242/0.002242, allocations: 209.4 kB / 24.47 MB, free: 3.547 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.42/1.42, allocations: 207.7 MB / 235.3 MB, free: 9.801 MB / 190.1 MB " [Timeout remaining time 178] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.Rectifier,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Analog_Examples_Rectifier",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.Rectifier,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Analog_Examples_Rectifier",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001983/0.001983, allocations: 59.92 kB / 347.2 MB, free: 9.867 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2334/0.2353, allocations: 49.15 MB / 396.4 MB, free: 8.855 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.Rectifier): time 0.004257/0.2396, allocations: 3.757 MB / 400.1 MB, free: 6.363 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001519/0.2411, allocations: 0.9344 MB / 401.1 MB, free: 5.691 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001948/0.2413, allocations: 11.72 kB / 401.1 MB, free: 5.688 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002269/0.2415, allocations: 98.2 kB / 401.2 MB, free: 5.629 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004169/0.242, allocations: 196.8 kB / 401.4 MB, free: 5.488 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002957/0.2423, allocations: 168.7 kB / 401.5 MB, free: 5.395 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006374/0.2429, allocations: 0.7293 MB / 402.3 MB, free: 5.027 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002555/0.2431, allocations: 154.6 kB / 402.4 MB, free: 4.945 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002882/0.2434, allocations: 294.8 kB / 402.7 MB, free: 4.809 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003365/0.2438, allocations: 284 kB / 403 MB, free: 4.688 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 8.685e-05/0.2439, allocations: 64 kB / 403 MB, free: 4.684 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001045/0.244, allocations: 60.94 kB / 403.1 MB, free: 4.684 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001209/0.2441, allocations: 149.7 kB / 403.2 MB, free: 4.582 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002104/0.2443, allocations: 279.1 kB / 403.5 MB, free: 4.434 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006113/0.2449, allocations: 0.7155 MB / 404.2 MB, free: 4.137 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.879e-06/0.2449, allocations: 1.891 kB / 404.2 MB, free: 4.137 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.523e-06/0.2449, allocations: 0 / 404.2 MB, free: 4.137 MB / 318.1 MB Notification: Performance of Transformations before backend: time 9.207e-06/0.2449, allocations: 0 / 404.2 MB, free: 4.137 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: 128 * Number of variables: 128 Notification: Performance of Generate backend data structure: time 0.001305/0.2462, allocations: 0.8576 MB / 405.1 MB, free: 3.547 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.567e-05/0.2463, allocations: 13.02 kB / 405.1 MB, free: 3.543 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001292/0.2464, allocations: 122.5 kB / 405.2 MB, free: 3.449 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.668e-05/0.2465, allocations: 76.56 kB / 405.3 MB, free: 3.41 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004937/0.247, allocations: 326 kB / 405.6 MB, free: 3.16 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.141e-05/0.247, allocations: 42.94 kB / 405.7 MB, free: 3.141 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.531e-05/0.2471, allocations: 56.61 kB / 405.7 MB, free: 3.121 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008856/0.248, allocations: 0.5715 MB / 406.3 MB, free: 2.84 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.06e-05/0.248, allocations: 0.8906 kB / 406.3 MB, free: 2.84 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.178e-05/0.248, allocations: 29.5 kB / 406.3 MB, free: 2.816 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.412e-05/0.248, allocations: 13.75 kB / 406.3 MB, free: 2.816 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008487/0.2489, allocations: 462.6 kB / 406.8 MB, free: 2.656 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002477/0.2514, allocations: 1.901 MB / 408.7 MB, free: 1.332 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007603/0.2521, allocations: 0.5155 MB / 409.2 MB, free: 1.066 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005466/0.2527, allocations: 356.4 kB / 409.5 MB, free: 0.9414 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.585e-05/0.2527, allocations: 7.25 kB / 409.5 MB, free: 0.9414 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.108e-05/0.2527, allocations: 42.8 kB / 409.6 MB, free: 0.8945 MB / 318.1 MB Notification: Performance of pre-optimization done (n=60): time 2.234e-06/0.2527, allocations: 0 / 409.6 MB, free: 0.8945 MB / 318.1 MB Notification: Performance of matching and sorting (n=61): time 0.004012/0.2568, allocations: 1.729 MB / 411.3 MB, free: 92 kB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.312e-05/0.2568, allocations: 57.19 kB / 411.4 MB, free: 28 kB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003981/0.2572, allocations: 364.4 kB / 411.7 MB, free: 15.8 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.163e-05/0.2572, allocations: 39.03 kB / 411.8 MB, free: 15.75 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001717/0.2574, allocations: 250.6 kB / 412 MB, free: 15.52 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001559/0.2575, allocations: 205.8 kB / 412.2 MB, free: 15.35 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001367/0.2577, allocations: 91.14 kB / 412.3 MB, free: 15.29 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001683/0.2578, allocations: 360.6 kB / 412.7 MB, free: 14.94 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003352/0.2582, allocations: 168.7 kB / 412.8 MB, free: 14.86 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003422/0.2585, allocations: 208.8 kB / 413 MB, free: 14.75 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006849/0.2592, allocations: 389.4 kB / 413.4 MB, free: 14.55 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.583e-06/0.2592, allocations: 0 / 413.4 MB, free: 14.55 MB / 334.1 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.001202/0.2604, allocations: 0.66 MB / 414.1 MB, free: 14.19 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.759e-05/0.2604, allocations: 8.281 kB / 414.1 MB, free: 14.18 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.604e-06/0.2604, allocations: 1 kB / 414.1 MB, free: 14.18 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007349/0.2612, allocations: 251.7 kB / 414.3 MB, free: 14.05 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002906/0.2615, allocations: 61.5 kB / 414.4 MB, free: 14.03 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006844/0.2683, allocations: 7.043 MB / 421.4 MB, free: 7.441 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003638/0.2687, allocations: 22.98 kB / 421.4 MB, free: 7.426 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.198e-05/0.2687, allocations: 18.69 kB / 421.5 MB, free: 7.418 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: 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.0002676/0.269, allocations: 175.4 kB / 421.6 MB, free: 7.262 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.323e-05/0.2691, allocations: 56.89 kB / 421.7 MB, free: 7.23 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001148/0.2692, allocations: 62.45 kB / 421.8 MB, free: 7.18 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.68e-06/0.2692, allocations: 7.125 kB / 421.8 MB, free: 7.18 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.438e-06/0.2692, allocations: 1.094 kB / 421.8 MB, free: 7.18 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.562e-06/0.2692, allocations: 7.984 kB / 421.8 MB, free: 7.172 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002127/0.2713, allocations: 1.243 MB / 423 MB, free: 6.332 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.276e-06/0.2713, allocations: 0 / 423 MB, free: 6.332 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000272/0.2716, allocations: 54.5 kB / 423.1 MB, free: 6.32 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006592/0.2723, allocations: 254.2 kB / 423.3 MB, free: 6.18 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.472e-05/0.2723, allocations: 15.11 kB / 423.3 MB, free: 6.168 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006998/0.2793, allocations: 7.045 MB / 430.4 MB, free: 15.57 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.235e-06/0.2793, allocations: 1.188 kB / 430.4 MB, free: 15.57 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001827/0.2811, allocations: 1.012 MB / 431.4 MB, free: 14.74 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002466/0.2814, allocations: 91.48 kB / 431.5 MB, free: 14.65 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.058e-05/0.2814, allocations: 12 kB / 431.5 MB, free: 14.64 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002567/0.2817, allocations: 15.94 kB / 431.5 MB, free: 14.62 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001503/0.2818, allocations: 64.33 kB / 431.6 MB, free: 14.56 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.392e-05/0.2819, allocations: 19.92 kB / 431.6 MB, free: 14.54 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0003118/0.2822, allocations: 259.2 kB / 431.8 MB, free: 14.29 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.2822, allocations: 0 / 431.8 MB, free: 14.29 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0009254/0.2831, allocations: 176 kB / 432 MB, free: 14.12 MB / 350.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.002086/0.2852, allocations: 1.58 MB / 433.6 MB, free: 12.5 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001883/0.2871, allocations: 1.013 MB / 434.6 MB, free: 11.43 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 6.422e-06/0.2871, allocations: 4 kB / 434.6 MB, free: 11.43 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001451/0.2885, allocations: 0.8138 MB / 435.4 MB, free: 10.57 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006015/0.2891, allocations: 97.48 kB / 435.5 MB, free: 10.47 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008365/0.2975, allocations: 5.051 MB / 440.6 MB, free: 5.301 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003294/0.2978, allocations: 283.9 kB / 440.8 MB, free: 4.996 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001882/0.298, allocations: 52.53 kB / 440.9 MB, free: 4.945 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002354/0.2983, allocations: 171.4 kB / 441.1 MB, free: 4.777 MB / 350.1 MB Notification: Performance of SimCode: time 9.02e-07/0.2983, allocations: 0 / 441.1 MB, free: 4.777 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05606/0.3543, allocations: 14.37 MB / 455.4 MB, free: 6.336 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.2/13.56, allocations: 3.953 kB / 455.4 MB, free: 6.332 MB / 366.1 MB " [Timeout remaining time 646] (rm -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.Rectifier.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Analog.Examples.Rectifier.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Analog.Examples.Rectifier.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.Rectifier.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_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_3_2_3_Modelica_Electrical_Analog_Examples_Rectifier.fmu > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.Rectifier.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Analog.Examples.Rectifier_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Analog/Examples/Rectifier/Rectifier.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.Rectifier.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Could not read variable Capacitor1.v in file Modelica_3.2.3_Modelica.Electrical.Analog.Examples.Rectifier_res.csv. Warning: Get data of variable Capacitor1.v from file Modelica_3.2.3_Modelica.Electrical.Analog.Examples.Rectifier_res.csv failed! Error: Could not read variable Capacitor2.v in file Modelica_3.2.3_Modelica.Electrical.Analog.Examples.Rectifier_res.csv. Warning: Get data of variable Capacitor2.v from file Modelica_3.2.3_Modelica.Electrical.Analog.Examples.Rectifier_res.csv failed! Error: Could not read variable Inductor2.i in file Modelica_3.2.3_Modelica.Electrical.Analog.Examples.Rectifier_res.csv. Warning: Get data of variable Inductor2.i from file Modelica_3.2.3_Modelica.Electrical.Analog.Examples.Rectifier_res.csv failed! Error: Could not read variable Inductor3.i in file Modelica_3.2.3_Modelica.Electrical.Analog.Examples.Rectifier_res.csv. Warning: Get data of variable Inductor3.i from file Modelica_3.2.3_Modelica.Electrical.Analog.Examples.Rectifier_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 16.501403187401593]