Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Inverter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00181/0.00181, allocations: 107.5 kB / 20.44 MB, free: 1.188 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002145/0.002145, allocations: 183.6 kB / 23.7 MB, free: 4.414 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.439/1.439, allocations: 225.7 MB / 252.5 MB, free: 12.81 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Inverter,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_Inverter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Inverter,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_Inverter",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001611/0.001611, allocations: 47.92 kB / 370.4 MB, free: 9.688 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2315/0.2331, allocations: 52.18 MB / 422.6 MB, free: 14.39 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Inverter): time 0.00868/0.2418, allocations: 6.919 MB / 429.5 MB, free: 7.441 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.02095/0.2627, allocations: 16.66 MB / 446.1 MB, free: 6.719 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009268/0.2637, allocations: 98.94 kB / 446.2 MB, free: 6.621 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002091/0.2657, allocations: 0.7607 MB / 447 MB, free: 5.855 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005138/0.2709, allocations: 1.819 MB / 448.8 MB, free: 4.023 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003908/0.2748, allocations: 1.313 MB / 450.1 MB, free: 2.707 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.005253/0.28, allocations: 3.283 MB / 453.4 MB, free: 15.41 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003199/0.2804, allocations: 128.8 kB / 453.5 MB, free: 15.26 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008474/0.2812, allocations: 0.5988 MB / 454.1 MB, free: 14.66 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006972/0.2819, allocations: 0.5317 MB / 454.7 MB, free: 14.12 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001051/0.282, allocations: 40 kB / 454.7 MB, free: 14.09 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003096/0.2851, allocations: 1.171 MB / 455.9 MB, free: 12.91 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001802/0.2853, allocations: 166.8 kB / 456 MB, free: 12.75 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005328/0.2858, allocations: 0.5046 MB / 456.5 MB, free: 12.24 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003149/0.289, allocations: 2.241 MB / 458.8 MB, free: 9.992 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.518e-06/0.289, allocations: 4 kB / 458.8 MB, free: 9.988 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.472e-06/0.289, allocations: 0 / 458.8 MB, free: 9.988 MB / 366.1 MB Notification: Performance of Transformations before backend: time 2.626e-05/0.289, allocations: 0 / 458.8 MB, free: 9.988 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 80 * Number of variables: 80 Notification: Performance of Generate backend data structure: time 0.003175/0.2922, allocations: 1.993 MB / 460.8 MB, free: 7.953 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.096e-05/0.2922, allocations: 8.031 kB / 460.8 MB, free: 7.945 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.584e-05/0.2923, allocations: 70.47 kB / 460.9 MB, free: 7.867 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002432/0.2926, allocations: 206.7 kB / 461.1 MB, free: 7.664 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002056/0.2946, allocations: 1.249 MB / 462.3 MB, free: 6.336 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.311e-05/0.2946, allocations: 16.66 kB / 462.3 MB, free: 6.32 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.388e-05/0.2947, allocations: 31.95 kB / 462.4 MB, free: 6.289 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009284/0.2956, allocations: 441.8 kB / 462.8 MB, free: 5.855 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.167e-05/0.2957, allocations: 0 / 462.8 MB, free: 5.855 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.325e-05/0.2957, allocations: 12 kB / 462.8 MB, free: 5.844 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.469e-05/0.2957, allocations: 4 kB / 462.8 MB, free: 5.84 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00112/0.2968, allocations: 482.3 kB / 463.3 MB, free: 5.367 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0029/0.2997, allocations: 1.476 MB / 464.7 MB, free: 3.832 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001025/0.3008, allocations: 347.3 kB / 465.1 MB, free: 3.48 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007694/0.3015, allocations: 369.7 kB / 465.4 MB, free: 3.117 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01328/0.3148, allocations: 6.969 MB / 472.4 MB, free: 11.95 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006494/0.3155, allocations: 259.1 kB / 472.7 MB, free: 11.68 MB / 382.1 MB Notification: Performance of pre-optimization done (n=29): time 2.214e-06/0.3155, allocations: 0 / 472.7 MB, free: 11.68 MB / 382.1 MB Notification: Performance of matching and sorting (n=29): time 0.002106/0.3176, allocations: 0.7587 MB / 473.4 MB, free: 10.91 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.99e-05/0.3176, allocations: 59.34 kB / 473.5 MB, free: 10.84 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001818/0.3194, allocations: 1.471 MB / 475 MB, free: 9.332 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 4.436e-05/0.3195, allocations: 37.69 kB / 475 MB, free: 9.289 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006845/0.3202, allocations: 0.7271 MB / 475.7 MB, free: 8.559 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.726e-05/0.3203, allocations: 95.25 kB / 475.8 MB, free: 8.465 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001861/0.3205, allocations: 130 kB / 475.9 MB, free: 8.332 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001466/0.3206, allocations: 326 kB / 476.3 MB, free: 8.008 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004672/0.3211, allocations: 160.9 kB / 476.4 MB, free: 7.848 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006189/0.3217, allocations: 354.8 kB / 476.8 MB, free: 7.41 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001071/0.3228, allocations: 0.5339 MB / 477.3 MB, free: 6.785 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.957e-06/0.3228, allocations: 4 kB / 477.3 MB, free: 6.781 MB / 382.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001531/0.3243, allocations: 0.764 MB / 478.1 MB, free: 6.008 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.856e-05/0.3243, allocations: 12.12 kB / 478.1 MB, free: 5.996 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.873e-05/0.3244, allocations: 44 kB / 478.1 MB, free: 5.953 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003172/0.3247, allocations: 128.8 kB / 478.2 MB, free: 5.824 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004183/0.3251, allocations: 111.7 kB / 478.4 MB, free: 5.715 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006719/0.3258, allocations: 0.6773 MB / 479 MB, free: 5.012 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005404/0.3263, allocations: 79.59 kB / 479.1 MB, free: 4.934 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.132e-05/0.3264, allocations: 32 kB / 479.1 MB, free: 4.902 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 30 * Number of states: 0 () * Number of discrete variables: 14 (vin.counter,$PRE.vin.counter,v.counter,$PRE.v.counter,v.counter2,$PRE.v.counter2,v.T0,$PRE.v.T0,vin.counter2,$PRE.vin.counter2,vin.T0,$PRE.vin.T0,$whenCondition1,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (53): * Single equations (assignments): 52 * 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,5)} Notification: Performance of prepare postOptimizeDAE: time 0.0003922/0.3268, allocations: 277.1 kB / 479.4 MB, free: 4.625 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002079/0.327, allocations: 202.7 kB / 479.6 MB, free: 4.426 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0018/0.3288, allocations: 0.7393 MB / 480.3 MB, free: 3.672 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.164e-06/0.3288, allocations: 4 kB / 480.4 MB, free: 3.668 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.997e-06/0.3288, allocations: 0 / 480.4 MB, free: 3.668 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.616e-06/0.3288, allocations: 0 / 480.4 MB, free: 3.668 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002265/0.3311, allocations: 1.241 MB / 481.6 MB, free: 2.363 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.563e-05/0.3311, allocations: 36 kB / 481.6 MB, free: 2.328 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002525/0.3314, allocations: 47.95 kB / 481.7 MB, free: 2.281 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002412/0.3316, allocations: 124.8 kB / 481.8 MB, free: 2.156 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.39e-05/0.3317, allocations: 23.94 kB / 481.8 MB, free: 2.133 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006312/0.3323, allocations: 0.6694 MB / 482.5 MB, free: 1.438 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.015e-06/0.3323, allocations: 4.031 kB / 482.5 MB, free: 1.434 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001357/0.3337, allocations: 0.7172 MB / 483.2 MB, free: 0.6875 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004422/0.3341, allocations: 212.6 kB / 483.4 MB, free: 492 kB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001553/0.3343, allocations: 8 kB / 483.4 MB, free: 484 kB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004424/0.3347, allocations: 31.95 kB / 483.5 MB, free: 452 kB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000113/0.3348, allocations: 39.89 kB / 483.5 MB, free: 412 kB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.475e-05/0.3349, allocations: 24 kB / 483.5 MB, free: 388 kB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001266/0.3361, allocations: 0.9571 MB / 484.5 MB, free: 15.4 MB / 398.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3361, allocations: 3.938 kB / 484.5 MB, free: 15.4 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0008526/0.337, allocations: 335.5 kB / 484.8 MB, free: 15.07 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 8 ($whenCondition2,$whenCondition1,vin.T0,vin.counter,vin.counter2,v.T0,v.counter,v.counter2) * Number of discrete states: 4 (vin.counter2,v.counter2,vin.counter,v.counter) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (21): * Single equations (assignments): 14 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 6 * 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,5)} Notification: Performance of Backend phase and start with SimCode phase: time 0.002459/0.3394, allocations: 1.737 MB / 486.5 MB, free: 13.3 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001302/0.3407, allocations: 0.4999 MB / 487 MB, free: 12.79 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.064e-06/0.3407, allocations: 0 / 487 MB, free: 12.79 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006636/0.3414, allocations: 276 kB / 487.3 MB, free: 12.5 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001306/0.3427, allocations: 307 kB / 487.6 MB, free: 12.2 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01335/0.3561, allocations: 8.997 MB / 496.6 MB, free: 2.816 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006189/0.3567, allocations: 0.5628 MB / 497.2 MB, free: 2.215 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.000653/0.3573, allocations: 199.9 kB / 497.4 MB, free: 2.016 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006897/0.358, allocations: 0.554 MB / 497.9 MB, free: 1.461 MB / 398.1 MB Notification: Performance of SimCode: time 1.423e-06/0.358, allocations: 0 / 497.9 MB, free: 1.461 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07958/0.4376, allocations: 36.14 MB / 0.5215 GB, free: 13.73 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.02/14.46, allocations: 7.578 kB / 0.5216 GB, free: 13.72 MB / 446.1 MB " [Timeout remaining time 645] (rm -f Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Inverter.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Inverter.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Inverter.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Inverter.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Inverter_res.csv --start-time 0 --stop-time 1e-11 --timeout 50 --relative-tolerance 1e-07 --interface-type ModelExchange --solver CVode --output-interval 5.0025e-15 Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_Inverter.fmu > Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Inverter.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Inverter_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Spice3/Examples/Inverter/Inverter.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Inverter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Could not read variable mp.S.v in file Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Inverter_res.csv. Warning: Get data of variable mp.S.v from file Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Inverter_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 17.151356630958617]