Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Inverter.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.001301/0.001301, allocations: 87.62 kB / 21.43 MB, free: 3.133 MB / 18.57 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.007759/0.007759, allocations: 166.4 kB / 24.7 MB, free: 9.43 MB / 18.57 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 0.8879/0.8879, allocations: 158.6 MB / 186.5 MB, free: 3.031 MB / 170.7 MB " [Timeout remaining time 179] 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.Spice3.Examples.Inverter,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Spice3_Examples_Inverter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Inverter,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Spice3_Examples_Inverter",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.334e-06/2.334e-06, allocations: 0 / 298.4 MB, free: 3.531 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.121e-05/2.354e-05, allocations: 2.281 kB / 298.4 MB, free: 3.527 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Inverter): time 0.1482/0.1482, allocations: 6.657 MB / 305.1 MB, free: 12.12 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.01698/0.1652, allocations: 15.88 MB / 321 MB, free: 1.672 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001288/0.1665, allocations: 98.5 kB / 321.1 MB, free: 1.602 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002132/0.1686, allocations: 0.746 MB / 321.8 MB, free: 1.238 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.006492/0.1751, allocations: 1.836 MB / 323.6 MB, free: 140 kB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004695/0.1798, allocations: 1.297 MB / 324.9 MB, free: 15.44 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.004892/0.1847, allocations: 3.296 MB / 328.2 MB, free: 13.99 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003598/0.1851, allocations: 133.6 kB / 328.4 MB, free: 13.9 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001102/0.1862, allocations: 0.7278 MB / 329.1 MB, free: 13.55 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006314/0.1868, allocations: 402.8 kB / 329.5 MB, free: 13.38 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001274/0.1869, allocations: 40.06 kB / 329.5 MB, free: 13.38 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00356/0.1905, allocations: 1.062 MB / 330.6 MB, free: 13.11 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001809/0.1907, allocations: 166.2 kB / 330.7 MB, free: 12.98 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0009139/0.1916, allocations: 386.8 kB / 331.1 MB, free: 12.84 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003468/0.1951, allocations: 2.281 MB / 333.4 MB, free: 11.41 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.588e-06/0.1951, allocations: 0 / 333.4 MB, free: 11.41 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.343e-06/0.1951, allocations: 0 / 333.4 MB, free: 11.41 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.758e-05/0.1951, allocations: 1.188 kB / 333.4 MB, free: 11.41 MB / 298.7 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.00281/0.1979, allocations: 1.992 MB / 335.4 MB, free: 9.656 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.007e-05/0.198, allocations: 15.98 kB / 335.4 MB, free: 9.641 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.006e-05/0.1981, allocations: 63.75 kB / 335.5 MB, free: 9.57 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001943/0.1983, allocations: 206.7 kB / 335.7 MB, free: 9.367 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001889/0.2001, allocations: 1.261 MB / 336.9 MB, free: 8.023 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.15e-05/0.2002, allocations: 16.66 kB / 337 MB, free: 8.008 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.889e-05/0.2002, allocations: 28 kB / 337 MB, free: 7.98 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000641/0.2009, allocations: 437.8 kB / 337.4 MB, free: 7.543 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.144e-05/0.2009, allocations: 4 kB / 337.4 MB, free: 7.539 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.258e-05/0.2009, allocations: 8 kB / 337.4 MB, free: 7.531 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.515e-05/0.2009, allocations: 15.98 kB / 337.4 MB, free: 7.516 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006345/0.2016, allocations: 474.4 kB / 337.9 MB, free: 7.055 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001932/0.2035, allocations: 1.481 MB / 339.4 MB, free: 5.52 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005269/0.204, allocations: 341.3 kB / 339.7 MB, free: 5.18 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004224/0.2044, allocations: 382.8 kB / 340.1 MB, free: 4.805 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008439/0.2129, allocations: 6.993 MB / 347.1 MB, free: 13.6 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004399/0.2133, allocations: 255.2 kB / 347.3 MB, free: 13.34 MB / 314.7 MB Notification: Performance of pre-optimization done (n=29): time 2.104e-06/0.2133, allocations: 0 / 347.3 MB, free: 13.34 MB / 314.7 MB Notification: Performance of matching and sorting (n=29): time 0.001273/0.2146, allocations: 0.7664 MB / 348.1 MB, free: 12.56 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.859e-05/0.2146, allocations: 59.41 kB / 348.2 MB, free: 12.49 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001241/0.2159, allocations: 1.472 MB / 349.6 MB, free: 10.98 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 3.18e-05/0.2159, allocations: 33.7 kB / 349.7 MB, free: 10.95 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007061/0.2166, allocations: 0.7349 MB / 350.4 MB, free: 10.21 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.112e-05/0.2167, allocations: 95.27 kB / 350.5 MB, free: 10.11 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001338/0.2168, allocations: 122 kB / 350.6 MB, free: 9.988 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 8.775e-05/0.2169, allocations: 334 kB / 350.9 MB, free: 9.656 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002517/0.2172, allocations: 152.9 kB / 351.1 MB, free: 9.508 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003396/0.2175, allocations: 358.8 kB / 351.4 MB, free: 9.062 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005945/0.2181, allocations: 0.5409 MB / 352 MB, free: 8.43 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.585e-06/0.2181, allocations: 4.625 kB / 352 MB, free: 8.426 MB / 314.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.0008879/0.219, allocations: 0.7563 MB / 352.7 MB, free: 7.66 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.347e-05/0.219, allocations: 8 kB / 352.7 MB, free: 7.652 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.74e-05/0.2191, allocations: 48.06 kB / 352.8 MB, free: 7.605 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002344/0.2193, allocations: 136.7 kB / 352.9 MB, free: 7.469 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002297/0.2195, allocations: 107.8 kB / 353 MB, free: 7.363 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004483/0.22, allocations: 0.6886 MB / 353.7 MB, free: 6.652 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004342/0.2204, allocations: 75.66 kB / 353.8 MB, free: 6.578 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.91e-05/0.2205, allocations: 35.94 kB / 353.8 MB, free: 6.543 MB / 314.7 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.0002935/0.2208, allocations: 273.6 kB / 354.1 MB, free: 6.266 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001149/0.2209, allocations: 194.8 kB / 354.3 MB, free: 6.074 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001015/0.2219, allocations: 0.7365 MB / 355 MB, free: 5.336 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.812e-06/0.2219, allocations: 7.938 kB / 355 MB, free: 5.328 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.029e-06/0.2219, allocations: 0 / 355 MB, free: 5.328 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.088e-06/0.2219, allocations: 0 / 355 MB, free: 5.328 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001354/0.2233, allocations: 1.244 MB / 356.3 MB, free: 4.02 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.658e-05/0.2233, allocations: 39.98 kB / 356.3 MB, free: 3.98 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001214/0.2234, allocations: 48.02 kB / 356.4 MB, free: 3.934 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001591/0.2236, allocations: 124.8 kB / 356.5 MB, free: 3.809 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.462e-05/0.2236, allocations: 19.94 kB / 356.5 MB, free: 3.789 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007311/0.2243, allocations: 0.6711 MB / 357.2 MB, free: 3.094 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.927e-06/0.2243, allocations: 7.969 kB / 357.2 MB, free: 3.086 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007608/0.2251, allocations: 0.7095 MB / 357.9 MB, free: 2.348 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002889/0.2254, allocations: 208.6 kB / 358.1 MB, free: 2.145 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.92e-05/0.2255, allocations: 19.92 kB / 358.1 MB, free: 2.125 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000219/0.2257, allocations: 27.97 kB / 358.1 MB, free: 2.098 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.672e-05/0.2258, allocations: 43.89 kB / 358.2 MB, free: 2.055 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.841e-05/0.2258, allocations: 19.98 kB / 358.2 MB, free: 2.035 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0008555/0.2267, allocations: 0.9692 MB / 359.2 MB, free: 1.047 MB / 314.7 MB Notification: Performance of sort global known variables: time 2.21e-07/0.2267, allocations: 0 / 359.2 MB, free: 1.047 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0007338/0.2274, allocations: 335.5 kB / 359.5 MB, free: 0.7188 MB / 314.7 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.00167/0.2291, allocations: 1.772 MB / 361.3 MB, free: 14.91 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0007944/0.2299, allocations: 0.4925 MB / 361.8 MB, free: 14.4 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.174e-06/0.2299, allocations: 0 / 361.8 MB, free: 14.4 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003669/0.2302, allocations: 292.2 kB / 362 MB, free: 14.11 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007087/0.2309, allocations: 259.5 kB / 362.3 MB, free: 13.86 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01179/0.2427, allocations: 9.007 MB / 371.3 MB, free: 4.457 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004368/0.2432, allocations: 0.5704 MB / 371.9 MB, free: 3.848 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0005062/0.2437, allocations: 199.9 kB / 372.1 MB, free: 3.648 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004166/0.2441, allocations: 0.5628 MB / 372.6 MB, free: 3.086 MB / 330.7 MB Notification: Performance of SimCode: time 1.633e-06/0.2441, allocations: 0 / 372.6 MB, free: 3.086 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05703/0.3011, allocations: 36.44 MB / 409.1 MB, free: 14.54 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.685/8.986, allocations: 16 kB / 409.1 MB, free: 14.52 MB / 378.7 MB " [Timeout remaining time 651] (rm -f Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Inverter.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Inverter.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Inverter.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Inverter.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_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_3_2_3_Modelica_Electrical_Spice3_Examples_Inverter.fmu > Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Inverter.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Inverter_res.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Spice3/Examples/Inverter/Inverter.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_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_3.2.3_Modelica.Electrical.Spice3.Examples.Inverter_res.csv. Warning: Get data of variable mp.S.v from file Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Inverter_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 10.734891687519848]