Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_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.0008014/0.0008014, allocations: 83.69 kB / 20.67 MB, free: 3.887 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.0007901/0.0007901, allocations: 170 kB / 23.95 MB, free: 0.6055 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.9081/0.9081, allocations: 177.1 MB / 204.2 MB, free: 5.727 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+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_4_1_0_Modelica_Electrical_Spice3_Examples_Inverter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Inverter,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Spice3_Examples_Inverter",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.693e-06/1.693e-06, allocations: 0 / 324.6 MB, free: 15.95 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.082e-05/1.251e-05, allocations: 6.281 kB / 324.6 MB, free: 15.94 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Inverter): time 0.004823/0.004836, allocations: 6.939 MB / 331.5 MB, free: 8.965 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.01366/0.0185, allocations: 16.71 MB / 348.2 MB, free: 8.188 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007534/0.01925, allocations: 94.88 kB / 348.3 MB, free: 8.094 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00161/0.02086, allocations: 0.7554 MB / 349.1 MB, free: 7.332 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003587/0.02445, allocations: 1.877 MB / 350.9 MB, free: 5.441 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002469/0.02692, allocations: 1.344 MB / 352.3 MB, free: 4.094 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.003431/0.03035, allocations: 3.403 MB / 355.7 MB, free: 0.6797 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000228/0.03058, allocations: 124.8 kB / 355.8 MB, free: 0.5352 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006066/0.03119, allocations: 0.791 MB / 356.6 MB, free: 15.74 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003545/0.03154, allocations: 422.5 kB / 357 MB, free: 15.32 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 5.341e-05/0.03159, allocations: 40 kB / 357 MB, free: 15.29 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001692/0.03328, allocations: 1.174 MB / 358.2 MB, free: 14.11 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 9.984e-05/0.03338, allocations: 170.8 kB / 358.4 MB, free: 13.94 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002533/0.03364, allocations: 378.8 kB / 358.8 MB, free: 13.57 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002/0.03564, allocations: 2.266 MB / 361 MB, free: 11.3 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.887e-06/0.03564, allocations: 0 / 361 MB, free: 11.3 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.412e-06/0.03564, allocations: 0 / 361 MB, free: 11.3 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.608e-05/0.03566, allocations: 0 / 361 MB, free: 11.3 MB / 330.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.001763/0.03742, allocations: 1.982 MB / 363 MB, free: 9.273 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.69e-05/0.03746, allocations: 8.031 kB / 363 MB, free: 9.266 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.032e-05/0.03752, allocations: 66.53 kB / 363.1 MB, free: 9.191 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001375/0.03766, allocations: 202.7 kB / 363.3 MB, free: 8.992 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001182/0.03884, allocations: 1.257 MB / 364.5 MB, free: 7.652 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.559e-05/0.03885, allocations: 16.66 kB / 364.5 MB, free: 7.637 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.216e-05/0.03891, allocations: 28 kB / 364.6 MB, free: 7.609 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00057/0.03948, allocations: 433.8 kB / 365 MB, free: 7.18 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.548e-06/0.03949, allocations: 0 / 365 MB, free: 7.18 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.87e-05/0.03951, allocations: 15.94 kB / 365 MB, free: 7.164 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.153e-05/0.03953, allocations: 15.91 kB / 365 MB, free: 7.148 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005931/0.04012, allocations: 478.4 kB / 365.5 MB, free: 6.68 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001625/0.04174, allocations: 1.484 MB / 367 MB, free: 5.141 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007837/0.04253, allocations: 343.4 kB / 367.3 MB, free: 4.797 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004001/0.04293, allocations: 369.5 kB / 367.7 MB, free: 4.434 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00735/0.05028, allocations: 6.981 MB / 374.7 MB, free: 13.25 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003649/0.05064, allocations: 259 kB / 374.9 MB, free: 12.98 MB / 346.7 MB Notification: Performance of pre-optimization done (n=29): time 2.315e-06/0.05064, allocations: 0 / 374.9 MB, free: 12.98 MB / 346.7 MB Notification: Performance of matching and sorting (n=29): time 0.001135/0.05178, allocations: 0.7704 MB / 375.7 MB, free: 12.2 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.66e-05/0.05182, allocations: 63.33 kB / 375.7 MB, free: 12.13 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001036/0.05285, allocations: 1.463 MB / 377.2 MB, free: 10.63 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.561e-05/0.05288, allocations: 33.7 kB / 377.2 MB, free: 10.59 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000397/0.05328, allocations: 0.7271 MB / 378 MB, free: 9.859 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.722e-05/0.05333, allocations: 99.16 kB / 378.1 MB, free: 9.762 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000108/0.05344, allocations: 122 kB / 378.2 MB, free: 9.637 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 7.682e-05/0.05352, allocations: 333.9 kB / 378.5 MB, free: 9.305 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002377/0.05376, allocations: 160.9 kB / 378.7 MB, free: 9.148 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003096/0.05406, allocations: 358.8 kB / 379 MB, free: 8.703 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006139/0.05468, allocations: 0.53 MB / 379.5 MB, free: 8.082 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.819e-06/0.05468, allocations: 4 kB / 379.5 MB, free: 8.078 MB / 346.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.0008025/0.05549, allocations: 0.7559 MB / 380.3 MB, free: 7.312 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.869e-05/0.0555, allocations: 8 kB / 380.3 MB, free: 7.305 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.74e-05/0.05554, allocations: 40 kB / 380.4 MB, free: 7.266 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000216/0.05576, allocations: 133.3 kB / 380.5 MB, free: 7.133 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000214/0.05597, allocations: 111.8 kB / 380.6 MB, free: 7.023 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004201/0.05639, allocations: 0.6773 MB / 381.3 MB, free: 6.32 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002761/0.05667, allocations: 71.59 kB / 381.3 MB, free: 6.25 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.542e-05/0.05671, allocations: 32 kB / 381.4 MB, free: 6.219 MB / 346.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.0002753/0.05699, allocations: 280.2 kB / 381.6 MB, free: 5.938 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001121/0.0571, allocations: 194.8 kB / 381.8 MB, free: 5.746 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009961/0.0581, allocations: 0.7385 MB / 382.6 MB, free: 4.996 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.903e-06/0.0581, allocations: 11.92 kB / 382.6 MB, free: 4.984 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.208e-06/0.05811, allocations: 0 / 382.6 MB, free: 4.984 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.007e-06/0.05811, allocations: 0 / 382.6 MB, free: 4.984 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00131/0.05942, allocations: 1.248 MB / 383.8 MB, free: 3.672 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.013e-05/0.05945, allocations: 39.94 kB / 383.9 MB, free: 3.633 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001167/0.05957, allocations: 43.95 kB / 383.9 MB, free: 3.59 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001484/0.05972, allocations: 124.9 kB / 384 MB, free: 3.465 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.435e-05/0.05974, allocations: 16 kB / 384.1 MB, free: 3.449 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003516/0.06009, allocations: 0.6734 MB / 384.7 MB, free: 2.75 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.422e-06/0.0601, allocations: 0 / 384.7 MB, free: 2.75 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009014/0.061, allocations: 0.7111 MB / 385.4 MB, free: 2.012 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002356/0.06123, allocations: 216.6 kB / 385.6 MB, free: 1.801 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.144e-05/0.06131, allocations: 8 kB / 385.7 MB, free: 1.793 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002208/0.06153, allocations: 31.95 kB / 385.7 MB, free: 1.762 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.4e-05/0.06162, allocations: 39.95 kB / 385.7 MB, free: 1.723 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.776e-05/0.06165, allocations: 16 kB / 385.7 MB, free: 1.707 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.001079/0.06272, allocations: 0.961 MB / 386.7 MB, free: 0.7266 MB / 346.7 MB Notification: Performance of sort global known variables: time 4.41e-07/0.06273, allocations: 4 kB / 386.7 MB, free: 0.7227 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0007266/0.06345, allocations: 335.5 kB / 387 MB, free: 404 kB / 346.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.001742/0.06519, allocations: 1.772 MB / 388.8 MB, free: 14.58 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0008295/0.06602, allocations: 0.4968 MB / 389.3 MB, free: 14.07 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 4.298e-06/0.06603, allocations: 4 kB / 389.3 MB, free: 14.07 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003538/0.06638, allocations: 275.2 kB / 389.6 MB, free: 13.79 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008417/0.06722, allocations: 311.1 kB / 389.9 MB, free: 13.48 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01066/0.07789, allocations: 8.967 MB / 398.8 MB, free: 4.125 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004094/0.0783, allocations: 0.5666 MB / 399.4 MB, free: 3.52 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0005513/0.07885, allocations: 199.9 kB / 399.6 MB, free: 3.32 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004276/0.07928, allocations: 0.5628 MB / 400.2 MB, free: 2.758 MB / 362.7 MB Notification: Performance of SimCode: time 1.733e-06/0.07928, allocations: 0 / 400.2 MB, free: 2.758 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04885/0.1281, allocations: 36.27 MB / 436.4 MB, free: 14.88 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.052/9.18, allocations: 6.594 kB / 436.4 MB, free: 14.88 MB / 410.7 MB " [Timeout remaining time 651] (rm -f Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Inverter.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Inverter.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Inverter.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Inverter.sim & python3 -m fmpy simulate --output-file Modelica_4.1.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_1_0_Modelica_Electrical_Spice3_Examples_Inverter.fmu > Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Inverter.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Inverter_res.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Spice3/Examples/Inverter/Inverter.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.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.1.0_Modelica.Electrical.Spice3.Examples.Inverter_res.csv. Warning: Get data of variable mp.S.v from file Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Inverter_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 10.931709471158683]