Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.Inverter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001766/0.001766, allocations: 118.6 kB / 18.5 MB, free: 4.602 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002254/0.002254, allocations: 206.6 kB / 21.45 MB, free: 1.652 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.579/1.579, allocations: 230.5 MB / 254.8 MB, free: 15.11 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Inverter,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Electrical_Spice3_Examples_Inverter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Inverter,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Electrical_Spice3_Examples_Inverter",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.001994/0.001994, allocations: 75.81 kB / 373.7 MB, free: 10.34 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1247/0.1267, allocations: 53.32 MB / 427 MB, free: 4.922 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Inverter): time 0.2906/0.4173, allocations: 8.071 MB / 435.1 MB, free: 7.082 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0225/0.4398, allocations: 19.53 MB / 454.6 MB, free: 9.793 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001863/0.4416, allocations: 94.78 kB / 454.7 MB, free: 9.727 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003426/0.4451, allocations: 0.8553 MB / 455.5 MB, free: 9.281 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008459/0.4535, allocations: 1.822 MB / 457.4 MB, free: 8.219 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007127/0.4607, allocations: 1.342 MB / 458.7 MB, free: 7.527 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.007674/0.4683, allocations: 3.299 MB / 462 MB, free: 6.32 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005318/0.4689, allocations: 130.4 kB / 462.1 MB, free: 6.23 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001517/0.4704, allocations: 0.584 MB / 462.7 MB, free: 6.004 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008735/0.4713, allocations: 0.5655 MB / 463.3 MB, free: 5.723 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001045/0.4714, allocations: 41.5 kB / 463.3 MB, free: 5.723 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006194/0.4776, allocations: 1.451 MB / 464.8 MB, free: 5.273 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004435/0.478, allocations: 170.7 kB / 464.9 MB, free: 5.156 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001377/0.4794, allocations: 0.673 MB / 465.6 MB, free: 4.734 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007048/0.4864, allocations: 2.228 MB / 467.8 MB, free: 3.484 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.039e-05/0.4864, allocations: 4 kB / 467.8 MB, free: 3.48 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.294e-06/0.4864, allocations: 0 / 467.8 MB, free: 3.48 MB / 366.1 MB Notification: Performance of Transformations before backend: time 3.695e-05/0.4865, allocations: 0 / 467.8 MB, free: 3.48 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.004429/0.4909, allocations: 2.071 MB / 469.9 MB, free: 1.879 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.968e-05/0.491, allocations: 9.469 kB / 469.9 MB, free: 1.879 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001073/0.4911, allocations: 64.31 kB / 470 MB, free: 1.816 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000303/0.4914, allocations: 201.9 kB / 470.2 MB, free: 1.711 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002395/0.4938, allocations: 1.368 MB / 471.5 MB, free: 0.6172 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.867e-05/0.4938, allocations: 23.66 kB / 471.6 MB, free: 0.6055 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.449e-05/0.4939, allocations: 25.97 kB / 471.6 MB, free: 0.5977 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001065/0.4949, allocations: 432.2 kB / 472 MB, free: 356 kB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.207e-05/0.4949, allocations: 3.938 kB / 472 MB, free: 352 kB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.645e-05/0.495, allocations: 10.28 kB / 472 MB, free: 344 kB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.772e-05/0.495, allocations: 10.69 kB / 472 MB, free: 340 kB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00116/0.4962, allocations: 473.3 kB / 472.5 MB, free: 148 kB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003454/0.4996, allocations: 1.628 MB / 474.1 MB, free: 14.96 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001034/0.5007, allocations: 343 kB / 474.5 MB, free: 14.78 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007788/0.5014, allocations: 380.9 kB / 474.8 MB, free: 14.61 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01923/0.5207, allocations: 15.53 MB / 490.4 MB, free: 15.18 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006846/0.5213, allocations: 259.1 kB / 490.6 MB, free: 14.92 MB / 398.1 MB Notification: Performance of pre-optimization done (n=29): time 2.755e-06/0.5213, allocations: 0 / 490.6 MB, free: 14.92 MB / 398.1 MB Notification: Performance of matching and sorting (n=29): time 0.002445/0.5238, allocations: 0.8417 MB / 491.5 MB, free: 14.05 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.922e-05/0.5239, allocations: 67.34 kB / 491.5 MB, free: 13.97 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002121/0.526, allocations: 1.452 MB / 493 MB, free: 12.48 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 5.443e-05/0.526, allocations: 37.7 kB / 493 MB, free: 12.44 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006997/0.5267, allocations: 0.7193 MB / 493.7 MB, free: 11.71 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001195/0.5268, allocations: 99.2 kB / 493.8 MB, free: 11.61 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002245/0.5271, allocations: 134 kB / 494 MB, free: 11.48 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001636/0.5272, allocations: 326 kB / 494.3 MB, free: 11.15 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004903/0.5277, allocations: 157 kB / 494.4 MB, free: 11 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006534/0.5284, allocations: 359.4 kB / 494.8 MB, free: 10.56 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001169/0.5295, allocations: 0.5256 MB / 495.3 MB, free: 9.941 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.404e-06/0.5296, allocations: 4 kB / 495.3 MB, free: 9.938 MB / 398.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001775/0.5313, allocations: 0.76 MB / 496.1 MB, free: 9.168 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.676e-05/0.5313, allocations: 8 kB / 496.1 MB, free: 9.16 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.247e-05/0.5314, allocations: 51.92 kB / 496.1 MB, free: 9.109 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003499/0.5318, allocations: 124.8 kB / 496.3 MB, free: 8.984 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000448/0.5322, allocations: 116.1 kB / 496.4 MB, free: 8.871 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007678/0.533, allocations: 0.6695 MB / 497 MB, free: 8.176 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008819/0.5339, allocations: 77.16 kB / 497.1 MB, free: 8.102 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.61e-05/0.5339, allocations: 36 kB / 497.1 MB, free: 8.066 MB / 398.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.0005112/0.5345, allocations: 277.7 kB / 497.4 MB, free: 7.785 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002444/0.5347, allocations: 198.7 kB / 497.6 MB, free: 7.59 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001967/0.5367, allocations: 0.7399 MB / 498.4 MB, free: 6.848 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.482e-06/0.5367, allocations: 0 / 498.4 MB, free: 6.848 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.761e-06/0.5367, allocations: 0 / 498.4 MB, free: 6.848 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.701e-06/0.5367, allocations: 4 kB / 498.4 MB, free: 6.844 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002505/0.5392, allocations: 1.307 MB / 499.7 MB, free: 5.465 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.752e-05/0.5392, allocations: 39.98 kB / 499.7 MB, free: 5.426 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002592/0.5395, allocations: 48.02 kB / 499.7 MB, free: 5.379 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002717/0.5398, allocations: 116.8 kB / 499.9 MB, free: 5.262 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.489e-05/0.5398, allocations: 27.92 kB / 499.9 MB, free: 5.234 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006839/0.5405, allocations: 0.6666 MB / 0.4888 GB, free: 4.543 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.168e-06/0.5405, allocations: 1.484 kB / 0.4888 GB, free: 4.543 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001535/0.5421, allocations: 0.718 MB / 0.4895 GB, free: 3.797 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005743/0.5426, allocations: 291.7 kB / 0.4898 GB, free: 3.492 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001451/0.5428, allocations: 4 kB / 0.4898 GB, free: 3.488 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004383/0.5432, allocations: 27.97 kB / 0.4898 GB, free: 3.461 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001377/0.5434, allocations: 55.83 kB / 0.4899 GB, free: 3.406 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.452e-05/0.5434, allocations: 16 kB / 0.4899 GB, free: 3.391 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.001485/0.5449, allocations: 0.9571 MB / 0.4908 GB, free: 2.414 MB / 398.1 MB Notification: Performance of sort global known variables: time 9e-08/0.5449, allocations: 0 / 0.4908 GB, free: 2.414 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001093/0.546, allocations: 339.5 kB / 0.4912 GB, free: 2.082 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.002879/0.5489, allocations: 1.737 MB / 0.4929 GB, free: 324 kB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001431/0.5503, allocations: 0.4967 MB / 0.4933 GB, free: 15.81 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.594e-06/0.5503, allocations: 4.062 kB / 0.4933 GB, free: 15.8 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006911/0.551, allocations: 267.2 kB / 0.4936 GB, free: 15.53 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0016/0.5526, allocations: 319.3 kB / 0.4939 GB, free: 15.23 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01511/0.5677, allocations: 9.002 MB / 0.5027 GB, free: 5.844 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008438/0.5685, allocations: 1.149 MB / 0.5038 GB, free: 4.664 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0006423/0.5692, allocations: 195.9 kB / 0.504 GB, free: 4.469 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006656/0.5699, allocations: 0.5579 MB / 0.5046 GB, free: 3.914 MB / 414.1 MB Notification: Performance of SimCode: time 1.172e-06/0.5699, allocations: 0 / 0.5046 GB, free: 3.914 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08398/0.6538, allocations: 35.47 MB / 0.5392 GB, free: 0.75 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 16.3/16.95, allocations: 19.16 kB / 0.5392 GB, free: 0.7383 MB / 446.1 MB " [Timeout remaining time 643] (rm -f Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.Inverter.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.Inverter.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.Inverter.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.Inverter.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0-beta.om_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-beta_om_Modelica_Electrical_Spice3_Examples_Inverter.fmu > Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.Inverter.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 19.769900245126337] Failed to read output from testmodel.py, exit status != 0: ['time', 'mp.S.v'] 17.07312150206417 17.101102466 16.609208408 Calling exit ...