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.001807/0.001807, allocations: 115.5 kB / 18.45 MB, free: 4.625 MB / 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.002256/0.002256, allocations: 211.3 kB / 21.41 MB, free: 1.672 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.529/1.529, allocations: 207.6 MB / 231.8 MB, free: 4.238 MB / 174.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.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: 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.001718/0.001718, allocations: 59.92 kB / 342.3 MB, free: 10.03 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09787/0.09959, allocations: 49.13 MB / 391.4 MB, free: 8.734 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Inverter): time 0.008965/0.1085, allocations: 7.741 MB / 399.1 MB, free: 0.9609 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.02254/0.1311, allocations: 18.58 MB / 417.7 MB, free: 14.31 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001317/0.1324, allocations: 98.88 kB / 417.8 MB, free: 14.21 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002389/0.1348, allocations: 0.836 MB / 418.7 MB, free: 13.37 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005741/0.1405, allocations: 1.797 MB / 420.5 MB, free: 11.56 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004314/0.1449, allocations: 1.287 MB / 421.7 MB, free: 10.27 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.005741/0.1506, allocations: 3.195 MB / 424.9 MB, free: 7.062 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004329/0.151, allocations: 132.6 kB / 425.1 MB, free: 6.91 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009453/0.152, allocations: 0.5405 MB / 425.6 MB, free: 6.367 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007207/0.1527, allocations: 0.5513 MB / 426.2 MB, free: 5.812 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001015/0.1528, allocations: 40 kB / 426.2 MB, free: 5.773 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004797/0.1576, allocations: 1.128 MB / 427.3 MB, free: 4.645 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000281/0.1579, allocations: 170.9 kB / 427.5 MB, free: 4.477 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009213/0.1588, allocations: 0.6754 MB / 428.2 MB, free: 3.797 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004534/0.1633, allocations: 2.245 MB / 430.4 MB, free: 1.543 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.711e-06/0.1633, allocations: 0 / 430.4 MB, free: 1.543 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.744e-06/0.1633, allocations: 3.938 kB / 430.4 MB, free: 1.539 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.715e-05/0.1634, allocations: 0 / 430.4 MB, free: 1.539 MB / 350.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.003439/0.1668, allocations: 2.078 MB / 432.5 MB, free: 15.39 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.364e-05/0.1668, allocations: 8.031 kB / 432.5 MB, free: 15.39 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.592e-05/0.1669, allocations: 66.53 kB / 432.6 MB, free: 15.31 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002672/0.1672, allocations: 210.7 kB / 432.8 MB, free: 15.11 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002116/0.1693, allocations: 1.379 MB / 434.2 MB, free: 13.66 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.542e-05/0.1693, allocations: 24.55 kB / 434.2 MB, free: 13.64 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.903e-05/0.1694, allocations: 32 kB / 434.2 MB, free: 13.61 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009352/0.1704, allocations: 425.2 kB / 434.6 MB, free: 13.18 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.165e-05/0.1704, allocations: 0 / 434.6 MB, free: 13.18 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.074e-05/0.1704, allocations: 15.94 kB / 434.6 MB, free: 13.17 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.652e-05/0.1705, allocations: 12 kB / 434.6 MB, free: 13.16 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001188/0.1716, allocations: 474.1 kB / 435.1 MB, free: 12.69 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002999/0.1746, allocations: 1.627 MB / 436.7 MB, free: 11 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001079/0.1757, allocations: 343.3 kB / 437.1 MB, free: 10.65 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007631/0.1765, allocations: 377.8 kB / 437.4 MB, free: 10.28 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01679/0.1933, allocations: 15.23 MB / 452.7 MB, free: 8.977 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006614/0.1939, allocations: 263.1 kB / 452.9 MB, free: 8.707 MB / 382.1 MB Notification: Performance of pre-optimization done (n=29): time 2.004e-06/0.1939, allocations: 3.938 kB / 452.9 MB, free: 8.703 MB / 382.1 MB Notification: Performance of matching and sorting (n=29): time 0.002203/0.1961, allocations: 0.8379 MB / 453.8 MB, free: 7.836 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.959e-05/0.1962, allocations: 63.34 kB / 453.8 MB, free: 7.762 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001873/0.1981, allocations: 1.464 MB / 455.3 MB, free: 6.262 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.873e-05/0.1981, allocations: 29.7 kB / 455.3 MB, free: 6.227 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006414/0.1987, allocations: 0.7272 MB / 456.1 MB, free: 5.492 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001036/0.1988, allocations: 107.2 kB / 456.2 MB, free: 5.387 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00019/0.199, allocations: 130.1 kB / 456.3 MB, free: 5.254 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001536/0.1992, allocations: 329.8 kB / 456.6 MB, free: 4.926 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004773/0.1997, allocations: 157 kB / 456.8 MB, free: 4.773 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007299/0.2004, allocations: 367.4 kB / 457.1 MB, free: 4.32 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00124/0.2016, allocations: 0.5294 MB / 457.7 MB, free: 3.699 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.857e-06/0.2016, allocations: 0 / 457.7 MB, free: 3.699 MB / 382.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001536/0.2032, allocations: 0.7562 MB / 458.4 MB, free: 2.934 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.512e-05/0.2032, allocations: 8 kB / 458.4 MB, free: 2.926 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.993e-05/0.2032, allocations: 44 kB / 458.5 MB, free: 2.883 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003169/0.2036, allocations: 136.8 kB / 458.6 MB, free: 2.746 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004071/0.204, allocations: 104 kB / 458.7 MB, free: 2.645 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007369/0.2047, allocations: 0.6851 MB / 459.4 MB, free: 1.934 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005551/0.2053, allocations: 75.61 kB / 459.5 MB, free: 1.859 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.504e-05/0.2053, allocations: 36 kB / 459.5 MB, free: 1.824 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.0004371/0.2058, allocations: 273.6 kB / 459.8 MB, free: 1.547 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002107/0.206, allocations: 198.7 kB / 459.9 MB, free: 1.352 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001848/0.2078, allocations: 0.7431 MB / 460.7 MB, free: 0.5977 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.494e-06/0.2078, allocations: 4 kB / 460.7 MB, free: 0.5938 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.91e-06/0.2078, allocations: 0 / 460.7 MB, free: 0.5938 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.272e-06/0.2078, allocations: 3.984 kB / 460.7 MB, free: 0.5898 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1804/0.3882, allocations: 1.301 MB / 462 MB, free: 68.71 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.009e-05/0.3883, allocations: 37.36 kB / 462 MB, free: 68.71 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003062/0.3886, allocations: 49.44 kB / 462.1 MB, free: 68.71 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003579/0.3889, allocations: 127.9 kB / 462.2 MB, free: 68.71 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.565e-05/0.389, allocations: 17.64 kB / 462.2 MB, free: 68.71 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006016/0.3896, allocations: 0.6709 MB / 462.9 MB, free: 68.19 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.506e-06/0.3896, allocations: 3.938 kB / 462.9 MB, free: 68.19 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001736/0.3913, allocations: 0.7313 MB / 463.6 MB, free: 68.03 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004584/0.3918, allocations: 289 kB / 463.9 MB, free: 67.86 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001521/0.392, allocations: 7.609 kB / 463.9 MB, free: 67.86 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004247/0.3924, allocations: 29.08 kB / 464 MB, free: 67.86 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001371/0.3925, allocations: 41.47 kB / 464 MB, free: 67.86 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.19e-05/0.3926, allocations: 23.98 kB / 464 MB, free: 67.86 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001617/0.3942, allocations: 0.9678 MB / 465 MB, free: 67.72 MB / 382.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3942, allocations: 0 / 465 MB, free: 67.72 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0009902/0.3952, allocations: 340.4 kB / 465.3 MB, free: 67.71 MB / 382.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.002505/0.3977, allocations: 1.738 MB / 467.1 MB, free: 66.92 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001463/0.3991, allocations: 0.5056 MB / 467.6 MB, free: 66.79 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.707e-06/0.3991, allocations: 3.969 kB / 467.6 MB, free: 66.79 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006879/0.3998, allocations: 269.7 kB / 467.8 MB, free: 66.68 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00131/0.4011, allocations: 266.2 kB / 468.1 MB, free: 66.58 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01337/0.4145, allocations: 9.036 MB / 477.1 MB, free: 62.33 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005159/0.415, allocations: 1.152 MB / 478.3 MB, free: 61.62 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0006096/0.4156, allocations: 199.5 kB / 478.5 MB, free: 61.59 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004702/0.4161, allocations: 0.5678 MB / 479 MB, free: 61.14 MB / 382.1 MB Notification: Performance of SimCode: time 1.593e-06/0.4161, allocations: 3.906 kB / 479 MB, free: 61.14 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06855/0.4847, allocations: 35.64 MB / 0.5026 GB, free: 26.92 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 15.17/15.66, allocations: 12.31 kB / 0.5026 GB, free: 26.91 MB / 382.1 MB " [Timeout remaining time 644] (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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Spice3/Examples/Inverter/Inverter.csv","/var/lib/jenkins1/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: 18.341328296999563]