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.00128/0.00128, allocations: 110.5 kB / 21.23 MB, free: 0.6641 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.001418/0.001418, allocations: 211.9 kB / 24.54 MB, free: 4.02 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.496/1.496, allocations: 230.6 MB / 258.3 MB, free: 8.008 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: 72.98 kB / 378.5 MB, free: 3.121 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3199/0.3219, allocations: 53.37 MB / 431.9 MB, free: 7.039 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersApartRecord): time 0.01568/0.3376, allocations: 14.77 MB / 446.7 MB, free: 8.211 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.02765/0.3652, allocations: 20.79 MB / 467.5 MB, free: 3.336 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003095/0.3683, allocations: 130.6 kB / 467.6 MB, free: 3.207 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004097/0.3724, allocations: 1.248 MB / 468.8 MB, free: 1.953 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00977/0.3822, allocations: 2.37 MB / 471.2 MB, free: 15.56 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006479/0.3887, allocations: 1.461 MB / 472.7 MB, free: 14.1 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.01322/0.4019, allocations: 6.603 MB / 479.3 MB, free: 7.477 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009107/0.4028, allocations: 265.7 kB / 479.5 MB, free: 7.188 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002205/0.405, allocations: 1.159 MB / 480.7 MB, free: 6.023 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001778/0.4068, allocations: 1.11 MB / 481.8 MB, free: 4.906 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002108/0.407, allocations: 76 kB / 481.9 MB, free: 4.832 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00491/0.4119, allocations: 1.467 MB / 483.4 MB, free: 3.363 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004677/0.4124, allocations: 333.6 kB / 483.7 MB, free: 3.035 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001553/0.4139, allocations: 1.374 MB / 485.1 MB, free: 1.652 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007068/0.421, allocations: 3.795 MB / 488.8 MB, free: 13.84 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.067e-06/0.421, allocations: 4 kB / 488.9 MB, free: 13.84 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.973e-06/0.421, allocations: 0 / 488.9 MB, free: 13.84 MB / 398.1 MB Notification: Performance of Transformations before backend: time 8.743e-05/0.4211, allocations: 0 / 488.9 MB, free: 13.84 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.006079/0.4272, allocations: 3.726 MB / 492.6 MB, free: 10.05 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.164e-05/0.4272, allocations: 12.03 kB / 492.6 MB, free: 10.04 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001232/0.4273, allocations: 98.5 kB / 492.7 MB, free: 9.934 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004906/0.4278, allocations: 417.4 kB / 493.1 MB, free: 9.523 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003608/0.4314, allocations: 2.295 MB / 495.4 MB, free: 7.133 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.12e-05/0.4315, allocations: 37 kB / 495.4 MB, free: 7.094 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001342/0.4316, allocations: 55.98 kB / 495.5 MB, free: 7.039 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001395/0.433, allocations: 0.7265 MB / 496.2 MB, free: 6.309 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.919e-05/0.433, allocations: 7.922 kB / 496.2 MB, free: 6.301 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.901e-05/0.4331, allocations: 24 kB / 496.2 MB, free: 6.277 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.39e-05/0.4331, allocations: 19.98 kB / 496.3 MB, free: 6.258 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001575/0.4347, allocations: 0.8163 MB / 497.1 MB, free: 5.441 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005413/0.4401, allocations: 3 MB / 0.4884 GB, free: 2.371 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001207/0.4413, allocations: 0.5164 MB / 0.4889 GB, free: 1.848 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009952/0.4423, allocations: 0.5653 MB / 0.4894 GB, free: 1.273 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02532/0.4676, allocations: 13.79 MB / 0.5029 GB, free: 3.098 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008026/0.4684, allocations: 365.7 kB / 0.5032 GB, free: 2.727 MB / 414.1 MB Notification: Performance of pre-optimization done (n=49): time 2.514e-06/0.4684, allocations: 0 / 0.5032 GB, free: 2.727 MB / 414.1 MB Notification: Performance of matching and sorting (n=49): time 0.002428/0.4709, allocations: 1.103 MB / 0.5043 GB, free: 1.617 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.907e-05/0.4709, allocations: 59.41 kB / 0.5044 GB, free: 1.547 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003918/0.4748, allocations: 2.939 MB / 0.5072 GB, free: 14.6 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 8.856e-05/0.4749, allocations: 41.64 kB / 0.5073 GB, free: 14.55 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001404/0.4763, allocations: 1.495 MB / 0.5087 GB, free: 13.05 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.00021/0.4765, allocations: 182.5 kB / 0.5089 GB, free: 12.87 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003197/0.4769, allocations: 230.4 kB / 0.5091 GB, free: 12.64 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001616/0.477, allocations: 341.9 kB / 0.5094 GB, free: 12.3 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006002/0.4776, allocations: 241.9 kB / 0.5097 GB, free: 12.06 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008681/0.4785, allocations: 0.5979 MB / 0.5103 GB, free: 11.29 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001511/0.48, allocations: 0.9012 MB / 0.5111 GB, free: 10.21 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.997e-06/0.48, allocations: 4 kB / 0.5111 GB, free: 10.21 MB / 430.1 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.002279/0.4823, allocations: 1.243 MB / 0.5124 GB, free: 8.957 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.662e-05/0.4823, allocations: 12 kB / 0.5124 GB, free: 8.945 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001222/0.4824, allocations: 80 kB / 0.5124 GB, free: 8.867 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.183e-05/0.4825, allocations: 16 kB / 0.5125 GB, free: 8.852 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007328/0.4832, allocations: 204.1 kB / 0.5127 GB, free: 8.652 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.898e-05/0.4832, allocations: 27.92 kB / 0.5127 GB, free: 8.625 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001029/0.4843, allocations: 111.3 kB / 0.5128 GB, free: 8.516 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001113/0.4844, allocations: 64 kB / 0.5128 GB, free: 8.453 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.0007875/0.4852, allocations: 433.3 kB / 0.5133 GB, free: 8.02 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000455/0.4856, allocations: 405.5 kB / 0.5136 GB, free: 7.621 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00265/0.4883, allocations: 1.19 MB / 0.5148 GB, free: 6.426 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.125e-05/0.4883, allocations: 7.984 kB / 0.5148 GB, free: 6.418 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.463e-05/0.4883, allocations: 3.984 kB / 0.5148 GB, free: 6.414 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.949e-06/0.4883, allocations: 3.938 kB / 0.5148 GB, free: 6.41 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00372/0.492, allocations: 2.072 MB / 0.5168 GB, free: 4.273 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001101/0.4921, allocations: 76.06 kB / 0.5169 GB, free: 4.199 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004934/0.4926, allocations: 91.91 kB / 0.517 GB, free: 4.109 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.053e-06/0.4926, allocations: 0 / 0.517 GB, free: 4.109 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.69e-05/0.4927, allocations: 31.94 kB / 0.517 GB, free: 4.078 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.588e-06/0.4927, allocations: 4 kB / 0.517 GB, free: 4.074 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.445e-06/0.4927, allocations: 0 / 0.517 GB, free: 4.074 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00259/0.4953, allocations: 1.318 MB / 0.5183 GB, free: 2.73 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001135/0.4964, allocations: 419.2 kB / 0.5187 GB, free: 2.32 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002923/0.4967, allocations: 12 kB / 0.5187 GB, free: 2.309 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000646/0.4974, allocations: 31.95 kB / 0.5188 GB, free: 2.277 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001726/0.4975, allocations: 63.88 kB / 0.5188 GB, free: 2.215 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.975e-05/0.4976, allocations: 43.98 kB / 0.5189 GB, free: 2.172 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.002878/0.5005, allocations: 1.907 MB / 0.5207 GB, free: 272 kB / 430.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.5005, allocations: 0 / 0.5207 GB, free: 272 kB / 430.1 MB Notification: Performance of remove unused functions: time 0.001551/0.502, allocations: 0.5892 MB / 0.5213 GB, free: 15.67 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.003933/0.506, allocations: 2.549 MB / 0.5238 GB, free: 13.09 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.001675/0.5076, allocations: 0.7833 MB / 0.5246 GB, free: 12.29 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 3.066e-06/0.5077, allocations: 0 / 0.5246 GB, free: 12.29 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007853/0.5084, allocations: 423.1 kB / 0.525 GB, free: 11.85 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002358/0.5108, allocations: 0.6075 MB / 0.5256 GB, free: 11.23 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2427/0.7535, allocations: 16.44 MB / 0.5416 GB, free: 101.6 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001334/0.7548, allocations: 1.665 MB / 0.5432 GB, free: 100.9 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001094/0.7559, allocations: 359.5 kB / 0.5436 GB, free: 100.9 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009472/0.7569, allocations: 1.215 MB / 0.5448 GB, free: 100.1 MB / 446.1 MB Notification: Performance of SimCode: time 1.613e-06/0.7569, allocations: 0 / 0.5448 GB, free: 100.1 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09865/0.8555, allocations: 61.59 MB / 0.6049 GB, free: 44.26 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 16.21/17.07, allocations: 0 / 0.6049 GB, free: 44.26 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 & /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 --stepSize=0.0009996 --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: 19.570674182847142] Failed to read output from testmodel.py, exit status != 0: ['time', 'mp1.S.v', 'mp2.S.v', 'v.p.v'] 17.180162967182696 17.189795066 16.766323285 Calling exit ...