Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.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.001817/0.001817, allocations: 106.5 kB / 21.22 MB, free: 0.6797 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.002536/0.002536, allocations: 209.3 kB / 24.54 MB, free: 4.055 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.45/1.45, allocations: 230.6 MB / 258.3 MB, free: 8.074 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.InvertersApartRecord,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Electrical_Spice3_Examples_InvertersApartRecord",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.InvertersApartRecord,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Electrical_Spice3_Examples_InvertersApartRecord",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.001954/0.001954, allocations: 64.55 kB / 378.5 MB, free: 3.168 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2978/0.2998, allocations: 53.38 MB / 431.9 MB, free: 6.879 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersApartRecord): time 0.01557/0.3153, allocations: 14.77 MB / 446.7 MB, free: 8.055 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.02577/0.3411, allocations: 20.79 MB / 467.5 MB, free: 3.188 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002693/0.3438, allocations: 134.6 kB / 467.6 MB, free: 3.055 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003588/0.3474, allocations: 1.246 MB / 468.8 MB, free: 1.805 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008365/0.3558, allocations: 2.366 MB / 471.2 MB, free: 15.42 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005316/0.3611, allocations: 1.465 MB / 472.7 MB, free: 13.95 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.01238/0.3735, allocations: 6.603 MB / 479.3 MB, free: 7.328 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00109/0.3745, allocations: 269.7 kB / 479.5 MB, free: 7.035 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002685/0.3772, allocations: 1.147 MB / 480.7 MB, free: 5.883 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002021/0.3793, allocations: 1.114 MB / 481.8 MB, free: 4.762 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002176/0.3795, allocations: 76 kB / 481.9 MB, free: 4.688 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005066/0.3845, allocations: 1.479 MB / 483.4 MB, free: 3.207 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004741/0.385, allocations: 325.6 kB / 483.7 MB, free: 2.887 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001779/0.3868, allocations: 1.374 MB / 485 MB, free: 1.504 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006152/0.3929, allocations: 3.795 MB / 488.8 MB, free: 13.69 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.5e-06/0.3929, allocations: 0 / 488.8 MB, free: 13.69 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.884e-06/0.3929, allocations: 0 / 488.8 MB, free: 13.69 MB / 398.1 MB Notification: Performance of Transformations before backend: time 4.961e-05/0.393, allocations: 4 kB / 488.8 MB, free: 13.69 MB / 398.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 154 * Number of variables: 154 Notification: Performance of Generate backend data structure: time 0.005371/0.3984, allocations: 3.722 MB / 492.6 MB, free: 9.906 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.894e-05/0.3984, allocations: 16.03 kB / 492.6 MB, free: 9.891 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001389/0.3986, allocations: 98.5 kB / 492.7 MB, free: 9.785 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000496/0.3991, allocations: 413.4 kB / 493.1 MB, free: 9.379 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003694/0.4027, allocations: 2.295 MB / 495.4 MB, free: 6.988 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.41e-05/0.4028, allocations: 40.98 kB / 495.4 MB, free: 6.945 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001304/0.4029, allocations: 52 kB / 495.5 MB, free: 6.895 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001354/0.4043, allocations: 0.7304 MB / 496.2 MB, free: 6.16 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.436e-05/0.4043, allocations: 3.938 kB / 496.2 MB, free: 6.156 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.518e-05/0.4044, allocations: 20 kB / 496.2 MB, free: 6.137 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.255e-05/0.4044, allocations: 19.98 kB / 496.2 MB, free: 6.117 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001607/0.406, allocations: 0.8202 MB / 497.1 MB, free: 5.297 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005304/0.4113, allocations: 3.007 MB / 0.4884 GB, free: 2.219 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001177/0.4125, allocations: 0.5164 MB / 0.4889 GB, free: 1.695 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009758/0.4134, allocations: 0.5653 MB / 0.4894 GB, free: 1.121 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02512/0.4386, allocations: 13.79 MB / 0.5029 GB, free: 2.949 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007981/0.4394, allocations: 361.7 kB / 0.5032 GB, free: 2.582 MB / 414.1 MB Notification: Performance of pre-optimization done (n=49): time 3.036e-06/0.4394, allocations: 0 / 0.5032 GB, free: 2.582 MB / 414.1 MB Notification: Performance of matching and sorting (n=49): time 0.002379/0.4417, allocations: 1.11 MB / 0.5043 GB, free: 1.465 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.785e-05/0.4418, allocations: 67.33 kB / 0.5044 GB, free: 1.387 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003855/0.4457, allocations: 2.931 MB / 0.5072 GB, free: 14.45 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001056/0.4458, allocations: 41.7 kB / 0.5073 GB, free: 14.4 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001404/0.4472, allocations: 1.495 MB / 0.5087 GB, free: 12.89 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002276/0.4474, allocations: 174.6 kB / 0.5089 GB, free: 12.72 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003276/0.4477, allocations: 234.3 kB / 0.5091 GB, free: 12.49 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001532/0.4479, allocations: 338 kB / 0.5094 GB, free: 12.15 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006171/0.4485, allocations: 241.8 kB / 0.5097 GB, free: 11.91 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008533/0.4493, allocations: 0.5979 MB / 0.5103 GB, free: 11.14 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001491/0.4508, allocations: 0.9012 MB / 0.5111 GB, free: 10.07 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.938e-06/0.4508, allocations: 4 kB / 0.5111 GB, free: 10.06 MB / 430.1 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.002354/0.4532, allocations: 1.243 MB / 0.5124 GB, free: 8.812 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.923e-05/0.4532, allocations: 12 kB / 0.5124 GB, free: 8.801 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001194/0.4533, allocations: 80.84 kB / 0.5124 GB, free: 8.723 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.41e-05/0.4534, allocations: 19.94 kB / 0.5125 GB, free: 8.703 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007231/0.4541, allocations: 203.6 kB / 0.5127 GB, free: 8.504 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.185e-05/0.4541, allocations: 27.92 kB / 0.5127 GB, free: 8.477 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001061/0.4552, allocations: 107.3 kB / 0.5128 GB, free: 8.371 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001115/0.4553, allocations: 68 kB / 0.5128 GB, free: 8.305 MB / 430.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 56 * 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 (102): * Single equations (assignments): 98 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0008403/0.4561, allocations: 437.4 kB / 0.5133 GB, free: 7.867 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005112/0.4567, allocations: 401.5 kB / 0.5136 GB, free: 7.473 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002688/0.4593, allocations: 1.186 MB / 0.5148 GB, free: 6.281 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.013e-05/0.4594, allocations: 8 kB / 0.5148 GB, free: 6.273 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.44e-06/0.4594, allocations: 0 / 0.5148 GB, free: 6.273 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.839e-06/0.4594, allocations: 4 kB / 0.5148 GB, free: 6.27 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003562/0.4629, allocations: 2.072 MB / 0.5168 GB, free: 4.133 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.000107/0.463, allocations: 71.98 kB / 0.5169 GB, free: 4.062 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004809/0.4635, allocations: 91.92 kB / 0.517 GB, free: 3.973 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.502e-06/0.4635, allocations: 3.938 kB / 0.517 GB, free: 3.969 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.971e-05/0.4636, allocations: 32 kB / 0.517 GB, free: 3.938 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.247e-05/0.4636, allocations: 11.98 kB / 0.517 GB, free: 3.926 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.893e-06/0.4636, allocations: 4.062 kB / 0.517 GB, free: 3.922 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002508/0.4661, allocations: 1.307 MB / 0.5183 GB, free: 2.59 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008673/0.467, allocations: 419.2 kB / 0.5187 GB, free: 2.18 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002879/0.4673, allocations: 12 kB / 0.5187 GB, free: 2.168 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006395/0.4679, allocations: 31.95 kB / 0.5188 GB, free: 2.137 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001573/0.4681, allocations: 71.81 kB / 0.5188 GB, free: 2.066 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.881e-05/0.4681, allocations: 39.98 kB / 0.5189 GB, free: 2.027 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.002939/0.4711, allocations: 1.907 MB / 0.5207 GB, free: 124 kB / 430.1 MB Notification: Performance of sort global known variables: time 2.31e-07/0.4711, allocations: 0 / 0.5207 GB, free: 124 kB / 430.1 MB Notification: Performance of remove unused functions: time 0.001773/0.4729, allocations: 0.5852 MB / 0.5213 GB, free: 15.54 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (c1.vinternal,c2.vinternal) * 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 (42): * Single equations (assignments): 32 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 6 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.003944/0.4768, allocations: 2.55 MB / 0.5238 GB, free: 12.95 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.001736/0.4785, allocations: 0.7794 MB / 0.5246 GB, free: 12.14 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 4.418e-06/0.4785, allocations: 4.062 kB / 0.5246 GB, free: 12.14 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008195/0.4794, allocations: 422.9 kB / 0.525 GB, free: 11.7 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002677/0.482, allocations: 0.6077 MB / 0.5256 GB, free: 11.09 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2511/0.7331, allocations: 16.45 MB / 0.5416 GB, free: 102.4 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001369/0.7345, allocations: 1.663 MB / 0.5432 GB, free: 101.6 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001014/0.7355, allocations: 358.2 kB / 0.5436 GB, free: 101.6 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009446/0.7365, allocations: 1.213 MB / 0.5448 GB, free: 100.7 MB / 446.1 MB Notification: Performance of SimCode: time 1.713e-06/0.7365, allocations: 0 / 0.5448 GB, free: 100.7 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.11/0.8465, allocations: 61.6 MB / 0.6049 GB, free: 44.91 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 16.12/16.97, allocations: 4 kB / 0.6049 GB, free: 44.91 MB / 446.1 MB " [Timeout remaining time 643] (rm -f Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.InvertersApartRecord_res.csv --start-time 0 --stop-time 5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0009996 Modelica_4_1_0-beta_om_Modelica_Electrical_Spice3_Examples_InvertersApartRecord.fmu > Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 19.57478699274361] Failed to read output from testmodel.py, exit status != 0: ['time', 'mp1.S.v', 'mp2.S.v', 'v.p.v'] 17.088960020337254 17.100002574 16.704414151 Calling exit ...