Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.FourInverters.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.001819/0.001819, allocations: 111.5 kB / 20.18 MB, free: 1.852 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.002136/0.002136, allocations: 211.5 kB / 23.44 MB, free: 5.238 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.414/1.414, allocations: 230.4 MB / 257 MB, free: 8.27 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.FourInverters,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Electrical_Spice3_Examples_FourInverters",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.FourInverters,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Electrical_Spice3_Examples_FourInverters",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.002127/0.002127, allocations: 67.89 kB / 377 MB, free: 3.637 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2735/0.2756, allocations: 53.3 MB / 430.3 MB, free: 7.273 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.FourInverters): time 0.0268/0.3024, allocations: 26.84 MB / 457.1 MB, free: 12.33 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.03162/0.334, allocations: 22.44 MB / 479.6 MB, free: 5.805 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004848/0.3389, allocations: 174.6 kB / 479.7 MB, free: 5.633 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005375/0.3443, allocations: 1.785 MB / 481.5 MB, free: 3.84 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01325/0.3575, allocations: 3.321 MB / 484.9 MB, free: 0.4961 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006482/0.364, allocations: 1.64 MB / 486.5 MB, free: 14.84 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.02042/0.3844, allocations: 12.87 MB / 499.4 MB, free: 1.938 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001477/0.3859, allocations: 0.5038 MB / 499.9 MB, free: 1.395 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003892/0.3898, allocations: 2.119 MB / 0.4902 GB, free: 15.27 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003645/0.3934, allocations: 2.103 MB / 0.4923 GB, free: 13.15 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005234/0.3939, allocations: 136 kB / 0.4924 GB, free: 13.02 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005446/0.3994, allocations: 1.533 MB / 0.4939 GB, free: 11.48 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001089/0.4005, allocations: 0.5971 MB / 0.4945 GB, free: 10.88 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00429/0.4048, allocations: 2.624 MB / 0.497 GB, free: 8.238 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01175/0.4165, allocations: 6.663 MB / 0.5036 GB, free: 1.543 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.182e-06/0.4165, allocations: 0 / 0.5036 GB, free: 1.543 MB / 414.1 MB Notification: Performance of FrontEnd: time 2.034e-06/0.4165, allocations: 0 / 0.5036 GB, free: 1.543 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0002393/0.4168, allocations: 4 kB / 0.5036 GB, free: 1.539 MB / 414.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 288 * Number of variables: 288 Notification: Performance of Generate backend data structure: time 0.01104/0.4278, allocations: 6.93 MB / 0.5103 GB, free: 10.51 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.127e-05/0.4279, allocations: 12.03 kB / 0.5103 GB, free: 10.5 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002298/0.4281, allocations: 157.2 kB / 0.5105 GB, free: 10.33 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001058/0.4291, allocations: 0.7764 MB / 0.5112 GB, free: 9.551 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007488/0.4366, allocations: 4.659 MB / 0.5158 GB, free: 4.809 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.038e-05/0.4367, allocations: 73.92 kB / 0.5159 GB, free: 4.734 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002698/0.437, allocations: 107.8 kB / 0.516 GB, free: 4.629 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002373/0.4393, allocations: 1.305 MB / 0.5172 GB, free: 3.309 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.969e-05/0.4394, allocations: 0 / 0.5172 GB, free: 3.309 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001162/0.4395, allocations: 32 kB / 0.5173 GB, free: 3.277 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.775e-05/0.4395, allocations: 39.97 kB / 0.5173 GB, free: 3.238 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002621/0.4422, allocations: 1.484 MB / 0.5188 GB, free: 1.75 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01106/0.4532, allocations: 5.631 MB / 0.5243 GB, free: 12.03 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001735/0.455, allocations: 0.8757 MB / 0.5251 GB, free: 11.14 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001671/0.4566, allocations: 1.052 MB / 0.5261 GB, free: 10.09 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2589/0.7156, allocations: 61.07 MB / 0.5858 GB, free: 54.58 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008459/0.7164, allocations: 0.552 MB / 0.5863 GB, free: 54.02 MB / 446.1 MB Notification: Performance of pre-optimization done (n=85): time 2.765e-06/0.7164, allocations: 0 / 0.5863 GB, free: 54.02 MB / 446.1 MB Notification: Performance of matching and sorting (n=85): time 0.002946/0.7194, allocations: 1.918 MB / 0.5882 GB, free: 52.51 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.604e-05/0.7194, allocations: 59.97 kB / 0.5883 GB, free: 52.44 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005672/0.7251, allocations: 5.592 MB / 0.5937 GB, free: 46.89 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001538/0.7252, allocations: 41.7 kB / 0.5938 GB, free: 46.85 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001684/0.7269, allocations: 2.964 MB / 0.5967 GB, free: 43.96 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000274/0.7272, allocations: 316.7 kB / 0.597 GB, free: 43.69 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004427/0.7276, allocations: 423 kB / 0.5974 GB, free: 43.27 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 4.493e-05/0.7277, allocations: 301.1 kB / 0.5976 GB, free: 42.97 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007146/0.7284, allocations: 403.5 kB / 0.598 GB, free: 42.58 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008838/0.7293, allocations: 1.082 MB / 0.5991 GB, free: 41.2 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001635/0.7309, allocations: 1.615 MB / 0.6007 GB, free: 39.32 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.889e-06/0.7309, allocations: 8 kB / 0.6007 GB, free: 39.31 MB / 446.1 MB Notification: Performance of matching and sorting (n=200) (initialization): time 0.003055/0.734, allocations: 2.244 MB / 0.6029 GB, free: 37.08 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.703e-05/0.734, allocations: 16 kB / 0.6029 GB, free: 37.07 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001659/0.7342, allocations: 164 kB / 0.603 GB, free: 36.91 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.215e-05/0.7342, allocations: 36 kB / 0.6031 GB, free: 36.88 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001015/0.7352, allocations: 359.3 kB / 0.6034 GB, free: 36.52 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.901e-05/0.7352, allocations: 47.8 kB / 0.6035 GB, free: 36.48 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001775/0.737, allocations: 194.1 kB / 0.6036 GB, free: 36.33 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001401/0.7372, allocations: 128 kB / 0.6038 GB, free: 36.21 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 108 * 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 (184): * Single equations (assignments): 176 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 8 * 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.001057/0.7382, allocations: 0.7064 MB / 0.6045 GB, free: 35.5 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005808/0.7388, allocations: 0.753 MB / 0.6052 GB, free: 34.75 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00364/0.7424, allocations: 2.151 MB / 0.6073 GB, free: 32.62 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.896e-06/0.7425, allocations: 8 kB / 0.6073 GB, free: 32.61 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.19e-06/0.7425, allocations: 0 / 0.6073 GB, free: 32.61 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.253e-06/0.7425, allocations: 3.984 kB / 0.6073 GB, free: 32.61 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004372/0.7468, allocations: 3.62 MB / 0.6108 GB, free: 28.93 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001471/0.747, allocations: 143.9 kB / 0.611 GB, free: 28.79 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006679/0.7477, allocations: 151.8 kB / 0.6111 GB, free: 28.64 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.692e-06/0.7477, allocations: 4 kB / 0.6111 GB, free: 28.64 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.388e-05/0.7477, allocations: 60 kB / 0.6112 GB, free: 28.58 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.08e-06/0.7477, allocations: 0 / 0.6112 GB, free: 28.58 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.294e-06/0.7477, allocations: 8.062 kB / 0.6112 GB, free: 28.57 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002728/0.7505, allocations: 2.181 MB / 0.6133 GB, free: 26.36 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001278/0.7517, allocations: 0.8534 MB / 0.6141 GB, free: 25.5 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006476/0.7524, allocations: 20 kB / 0.6142 GB, free: 25.48 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001103/0.7535, allocations: 32.83 kB / 0.6142 GB, free: 25.45 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002023/0.7537, allocations: 100.5 kB / 0.6143 GB, free: 25.35 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001049/0.7538, allocations: 71.98 kB / 0.6144 GB, free: 25.28 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.004129/0.7579, allocations: 3.608 MB / 0.6179 GB, free: 21.7 MB / 446.1 MB Notification: Performance of sort global known variables: time 9e-08/0.7579, allocations: 0 / 0.6179 GB, free: 21.7 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.002322/0.7603, allocations: 1.083 MB / 0.6189 GB, free: 20.68 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 4 (c1.vinternal,c2.vinternal,c3.vinternal,c4.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 (70): * Single equations (assignments): 56 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 8 * 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.004309/0.7646, allocations: 3.847 MB / 0.6227 GB, free: 16.87 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.002016/0.7666, allocations: 1.365 MB / 0.624 GB, free: 15.46 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 3.286e-06/0.7666, allocations: 0 / 0.624 GB, free: 15.46 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008873/0.7675, allocations: 0.7444 MB / 0.6248 GB, free: 14.67 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004392/0.7719, allocations: 1.203 MB / 0.6259 GB, free: 13.46 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04381/0.8157, allocations: 30.55 MB / 0.6558 GB, free: 14.12 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002191/0.8179, allocations: 2.595 MB / 0.6583 GB, free: 11.5 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.002067/0.8199, allocations: 0.6885 MB / 0.659 GB, free: 10.8 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002554/0.8225, allocations: 2.401 MB / 0.6613 GB, free: 8.402 MB / 478.1 MB Notification: Performance of SimCode: time 1.002e-06/0.8225, allocations: 0 / 0.6613 GB, free: 8.402 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4252/1.248, allocations: 111.7 MB / 0.7704 GB, free: 157.2 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 27.06/28.31, allocations: 7.688 kB / 0.7704 GB, free: 157.2 MB / 0.5294 GB " [Timeout remaining time 632] (rm -f Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.FourInverters.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.FourInverters.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.FourInverters.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.FourInverters.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.FourInverters_res.mat --tempDir=temp_Modelica_4_1_0-beta_om_Modelica_Electrical_Spice3_Examples_FourInverters_fmu --startTime=0 --stopTime=5 --stepSize=0.0009996 --timeout=50 --tolerance=1e-06 Modelica_4_1_0-beta_om_Modelica_Electrical_Spice3_Examples_FourInverters.fmu > Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.FourInverters.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 30.869342335034162] Failed to read output from testmodel.py, exit status != 0: ['time', 'mp1.S.v', 'mp2.S.v', 'mp3.S.v', 'mp4.S.v', 'v.p.v'] 28.456734728999436 28.475033247 28.054443596 Calling exit ...