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.001401/0.001401, allocations: 109.8 kB / 19.74 MB, free: 2.582 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.001584/0.001584, allocations: 217.7 kB / 22.92 MB, free: 5.562 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.296/1.296, allocations: 230.4 MB / 256.4 MB, free: 8.273 MB / 206.1 MB " [Timeout remaining time 179] 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.001785/0.001785, allocations: 63.89 kB / 376.1 MB, free: 4.094 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2141/0.2159, allocations: 53.31 MB / 429.4 MB, free: 7.445 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersApartRecord): time 0.01403/0.2299, allocations: 14.78 MB / 444.2 MB, free: 8.605 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.02279/0.2527, allocations: 20.78 MB / 465 MB, free: 3.75 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001653/0.2544, allocations: 91.25 kB / 465 MB, free: 3.66 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002676/0.2571, allocations: 1.249 MB / 466.3 MB, free: 2.406 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006198/0.2633, allocations: 2.354 MB / 468.6 MB, free: 36 kB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00364/0.2669, allocations: 1.452 MB / 470.1 MB, free: 14.58 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.009545/0.2764, allocations: 6.59 MB / 476.7 MB, free: 7.965 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004993/0.2769, allocations: 277.2 kB / 477 MB, free: 7.668 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001442/0.2784, allocations: 1.104 MB / 478.1 MB, free: 6.559 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001269/0.2797, allocations: 1.106 MB / 479.2 MB, free: 5.445 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001756/0.2798, allocations: 79.94 kB / 479.2 MB, free: 5.367 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003636/0.2835, allocations: 1.479 MB / 480.7 MB, free: 3.887 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003112/0.2838, allocations: 321.7 kB / 481 MB, free: 3.57 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00122/0.285, allocations: 1.378 MB / 482.4 MB, free: 2.184 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004489/0.2895, allocations: 3.795 MB / 486.2 MB, free: 14.37 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.577e-06/0.2895, allocations: 0 / 486.2 MB, free: 14.37 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.593e-06/0.2895, allocations: 0 / 486.2 MB, free: 14.37 MB / 398.1 MB Notification: Performance of Transformations before backend: time 2.669e-05/0.2895, allocations: 0 / 486.2 MB, free: 14.37 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.00473/0.2942, allocations: 3.809 MB / 490 MB, free: 10.48 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.537e-05/0.2943, allocations: 8.031 kB / 490 MB, free: 10.47 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001175/0.2944, allocations: 98.5 kB / 490.1 MB, free: 10.37 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003874/0.2948, allocations: 409.4 kB / 490.5 MB, free: 9.965 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002959/0.2977, allocations: 2.457 MB / 493 MB, free: 7.438 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.026e-05/0.2978, allocations: 37 kB / 493 MB, free: 7.402 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001185/0.2979, allocations: 48 kB / 493.1 MB, free: 7.355 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001271/0.2992, allocations: 0.7343 MB / 493.8 MB, free: 6.613 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.342e-05/0.2992, allocations: 0 / 493.8 MB, free: 6.613 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.605e-05/0.2992, allocations: 20 kB / 493.8 MB, free: 6.594 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.252e-05/0.2993, allocations: 23.97 kB / 493.8 MB, free: 6.57 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001547/0.3008, allocations: 0.8163 MB / 494.7 MB, free: 5.754 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004627/0.3054, allocations: 3.063 MB / 497.7 MB, free: 2.598 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001154/0.3066, allocations: 0.5126 MB / 498.2 MB, free: 2.078 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009315/0.3075, allocations: 0.5618 MB / 498.8 MB, free: 1.516 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02964/0.3372, allocations: 30.75 MB / 0.5171 GB, free: 14.51 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007546/0.3379, allocations: 365.6 kB / 0.5175 GB, free: 14.14 MB / 446.1 MB Notification: Performance of pre-optimization done (n=49): time 2.274e-06/0.3379, allocations: 0 / 0.5175 GB, free: 14.14 MB / 446.1 MB Notification: Performance of matching and sorting (n=49): time 0.002248/0.3402, allocations: 1.103 MB / 0.5186 GB, free: 13.03 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.527e-05/0.3402, allocations: 63.39 kB / 0.5186 GB, free: 12.96 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003414/0.3436, allocations: 2.931 MB / 0.5215 GB, free: 10.02 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 5.29e-05/0.3437, allocations: 41.7 kB / 0.5215 GB, free: 9.969 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001271/0.345, allocations: 1.495 MB / 0.523 GB, free: 8.465 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001553/0.3451, allocations: 178.5 kB / 0.5232 GB, free: 8.289 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002947/0.3454, allocations: 226.4 kB / 0.5234 GB, free: 8.062 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001409/0.3455, allocations: 341.9 kB / 0.5237 GB, free: 7.723 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005636/0.3461, allocations: 245.8 kB / 0.5239 GB, free: 7.484 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008101/0.3469, allocations: 0.5981 MB / 0.5245 GB, free: 6.711 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001455/0.3484, allocations: 0.9012 MB / 0.5254 GB, free: 5.637 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.234e-06/0.3484, allocations: 4 kB / 0.5254 GB, free: 5.633 MB / 446.1 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.002072/0.3505, allocations: 1.25 MB / 0.5266 GB, free: 4.375 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.053e-05/0.3505, allocations: 8.938 kB / 0.5266 GB, free: 4.367 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001104/0.3506, allocations: 80 kB / 0.5267 GB, free: 4.289 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.073e-05/0.3506, allocations: 20 kB / 0.5267 GB, free: 4.27 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006851/0.3513, allocations: 199.7 kB / 0.5269 GB, free: 4.074 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.662e-05/0.3513, allocations: 31.86 kB / 0.5269 GB, free: 4.043 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008971/0.3522, allocations: 111.3 kB / 0.527 GB, free: 3.934 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001048/0.3523, allocations: 68 kB / 0.5271 GB, free: 3.867 MB / 446.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.0006885/0.353, allocations: 437.5 kB / 0.5275 GB, free: 3.43 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003857/0.3534, allocations: 397.5 kB / 0.5279 GB, free: 3.039 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002515/0.3559, allocations: 1.19 MB / 0.5291 GB, free: 1.836 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.934e-06/0.3559, allocations: 4 kB / 0.5291 GB, free: 1.832 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.408e-06/0.3559, allocations: 4 kB / 0.5291 GB, free: 1.828 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.94e-06/0.3559, allocations: 0 / 0.5291 GB, free: 1.828 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003153/0.3591, allocations: 2.1 MB / 0.5311 GB, free: 15.65 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001017/0.3592, allocations: 71.98 kB / 0.5312 GB, free: 15.58 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004643/0.3597, allocations: 95.84 kB / 0.5313 GB, free: 15.48 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.689e-06/0.3597, allocations: 0 / 0.5313 GB, free: 15.48 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.809e-05/0.3597, allocations: 36 kB / 0.5313 GB, free: 15.45 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.05e-06/0.3597, allocations: 8.047 kB / 0.5313 GB, free: 15.44 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.763e-06/0.3597, allocations: 0 / 0.5313 GB, free: 15.44 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002198/0.3619, allocations: 1.31 MB / 0.5326 GB, free: 14.11 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006479/0.3626, allocations: 0.4944 MB / 0.5331 GB, free: 13.59 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002365/0.3628, allocations: 8 kB / 0.5331 GB, free: 13.58 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006326/0.3634, allocations: 32.03 kB / 0.5331 GB, free: 13.55 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001397/0.3636, allocations: 67.88 kB / 0.5332 GB, free: 13.48 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.204e-05/0.3636, allocations: 36 kB / 0.5332 GB, free: 13.45 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.002301/0.3659, allocations: 1.903 MB / 0.5351 GB, free: 11.55 MB / 462.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3659, allocations: 0 / 0.5351 GB, free: 11.55 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.001252/0.3672, allocations: 0.5891 MB / 0.5357 GB, free: 10.96 MB / 462.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.003432/0.3706, allocations: 2.55 MB / 0.5382 GB, free: 8.375 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.001525/0.3722, allocations: 0.771 MB / 0.5389 GB, free: 7.578 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 1.944e-06/0.3722, allocations: 4.062 kB / 0.5389 GB, free: 7.574 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007445/0.3729, allocations: 430.9 kB / 0.5393 GB, free: 7.129 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002203/0.3751, allocations: 0.619 MB / 0.5399 GB, free: 6.504 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1809/0.556, allocations: 16.44 MB / 0.556 GB, free: 117.5 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007136/0.5567, allocations: 1.665 MB / 0.5576 GB, free: 116.7 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.0007772/0.5575, allocations: 360.5 kB / 0.558 GB, free: 116.7 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007759/0.5583, allocations: 1.219 MB / 0.5591 GB, free: 115.6 MB / 462.1 MB Notification: Performance of SimCode: time 9.92e-07/0.5583, allocations: 0 / 0.5591 GB, free: 115.6 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0759/0.6342, allocations: 61.22 MB / 0.6189 GB, free: 56.31 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.32/13.95, allocations: 0 / 0.6189 GB, free: 56.31 MB / 462.1 MB " [Timeout remaining time 646] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.InvertersApartRecord_res.mat --tempDir=temp_Modelica_4_1_0-beta_om_Modelica_Electrical_Spice3_Examples_InvertersApartRecord_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 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: 16.148377428005915]