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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) 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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001387/0.001387, allocations: 118.3 kB / 17.78 MB, free: 5.125 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001343/0.001343, allocations: 201.2 kB / 18.74 MB, free: 4.18 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.467/1.467, allocations: 227.7 MB / 247.2 MB, free: 10.25 MB / 206.1 MB 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.002018/0.002018, allocations: 63.89 kB / 358.5 MB, free: 13.33 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3267/0.3287, allocations: 50.54 MB / 409 MB, free: 1.457 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersApartRecord): time 0.01451/0.3432, allocations: 14.71 MB / 423.7 MB, free: 2.688 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.02763/0.3709, allocations: 20.71 MB / 444.5 MB, free: 13.9 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003579/0.3746, allocations: 83.31 kB / 444.5 MB, free: 13.82 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0046/0.3793, allocations: 1.239 MB / 445.8 MB, free: 12.57 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009258/0.3885, allocations: 2.293 MB / 448.1 MB, free: 10.26 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005349/0.3939, allocations: 1.451 MB / 449.5 MB, free: 8.801 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01176/0.4057, allocations: 6.555 MB / 456.1 MB, free: 2.227 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009705/0.4067, allocations: 461.1 kB / 456.5 MB, free: 1.746 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002092/0.4088, allocations: 1.092 MB / 457.6 MB, free: 0.6484 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001804/0.4106, allocations: 1.102 MB / 458.7 MB, free: 15.54 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000249/0.4109, allocations: 76 kB / 458.8 MB, free: 15.46 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005124/0.416, allocations: 1.479 MB / 460.3 MB, free: 13.98 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005218/0.4166, allocations: 333.6 kB / 460.6 MB, free: 13.66 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001983/0.4186, allocations: 1.362 MB / 462 MB, free: 12.29 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006491/0.4251, allocations: 3.803 MB / 465.8 MB, free: 8.465 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.158e-05/0.4251, allocations: 0 / 465.8 MB, free: 8.465 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.833e-06/0.4251, allocations: 3.938 kB / 465.8 MB, free: 8.461 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.185e-05/0.4252, allocations: 0 / 465.8 MB, free: 8.461 MB / 382.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.005518/0.4307, allocations: 3.798 MB / 469.6 MB, free: 4.582 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.891e-05/0.4308, allocations: 12.03 kB / 469.6 MB, free: 4.57 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001429/0.4309, allocations: 98.44 kB / 469.7 MB, free: 4.465 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004636/0.4314, allocations: 417.4 kB / 470.1 MB, free: 4.055 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003468/0.4349, allocations: 2.445 MB / 472.5 MB, free: 1.539 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.71e-05/0.4349, allocations: 41 kB / 472.6 MB, free: 1.5 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001229/0.435, allocations: 52 kB / 472.6 MB, free: 1.449 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001382/0.4364, allocations: 0.7304 MB / 473.4 MB, free: 0.7109 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.56e-05/0.4365, allocations: 0 / 473.4 MB, free: 0.7109 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.556e-05/0.4365, allocations: 19.98 kB / 473.4 MB, free: 0.6914 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.809e-05/0.4366, allocations: 23.98 kB / 473.4 MB, free: 0.668 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00162/0.4382, allocations: 0.8125 MB / 474.2 MB, free: 15.85 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00534/0.4436, allocations: 3.067 MB / 477.3 MB, free: 12.7 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001246/0.4448, allocations: 0.5751 MB / 477.8 MB, free: 12.12 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001042/0.4459, allocations: 0.6477 MB / 478.5 MB, free: 11.46 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03462/0.4805, allocations: 30.76 MB / 0.4973 GB, free: 8.457 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008138/0.4814, allocations: 365.7 kB / 0.4977 GB, free: 8.09 MB / 430.1 MB Notification: Performance of pre-optimization done (n=49): time 3.196e-06/0.4814, allocations: 0 / 0.4977 GB, free: 8.09 MB / 430.1 MB Notification: Performance of matching and sorting (n=49): time 0.002473/0.4839, allocations: 1.11 MB / 0.4988 GB, free: 6.973 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.045e-05/0.484, allocations: 59.39 kB / 0.4988 GB, free: 6.902 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004018/0.488, allocations: 2.935 MB / 0.5017 GB, free: 3.957 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 8.452e-05/0.4881, allocations: 37.7 kB / 0.5017 GB, free: 3.914 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001426/0.4895, allocations: 1.498 MB / 0.5032 GB, free: 2.406 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001755/0.4897, allocations: 170.6 kB / 0.5033 GB, free: 2.238 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003191/0.49, allocations: 226.4 kB / 0.5036 GB, free: 2.012 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001658/0.4902, allocations: 345.9 kB / 0.5039 GB, free: 1.668 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006005/0.4908, allocations: 237.9 kB / 0.5041 GB, free: 1.438 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008768/0.4917, allocations: 0.5981 MB / 0.5047 GB, free: 0.6602 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001546/0.4932, allocations: 0.9013 MB / 0.5056 GB, free: 15.58 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.918e-06/0.4933, allocations: 4 kB / 0.5056 GB, free: 15.57 MB / 446.1 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.002287/0.4956, allocations: 1.251 MB / 0.5068 GB, free: 14.32 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.351e-05/0.4956, allocations: 8 kB / 0.5068 GB, free: 14.31 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001119/0.4957, allocations: 80 kB / 0.5069 GB, free: 14.23 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.302e-05/0.4958, allocations: 20 kB / 0.5069 GB, free: 14.21 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007025/0.4965, allocations: 203.6 kB / 0.5071 GB, free: 14.02 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.546e-05/0.4965, allocations: 24.17 kB / 0.5071 GB, free: 13.99 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000941/0.4974, allocations: 119.3 kB / 0.5072 GB, free: 13.88 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001071/0.4976, allocations: 64 kB / 0.5073 GB, free: 13.81 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.0007418/0.4983, allocations: 434.4 kB / 0.5077 GB, free: 13.38 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004221/0.4987, allocations: 401.5 kB / 0.5081 GB, free: 12.98 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00267/0.5014, allocations: 1.197 MB / 0.5093 GB, free: 11.77 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.009e-05/0.5014, allocations: 7.984 kB / 0.5093 GB, free: 11.77 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.031e-06/0.5014, allocations: 0 / 0.5093 GB, free: 11.77 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.049e-06/0.5015, allocations: 0 / 0.5093 GB, free: 11.77 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003378/0.5048, allocations: 2.096 MB / 0.5113 GB, free: 9.602 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001002/0.505, allocations: 68 kB / 0.5114 GB, free: 9.535 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004894/0.5055, allocations: 103.8 kB / 0.5115 GB, free: 9.434 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.496e-06/0.5055, allocations: 4 kB / 0.5115 GB, free: 9.43 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.117e-05/0.5055, allocations: 32 kB / 0.5115 GB, free: 9.398 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.977e-06/0.5055, allocations: 0 / 0.5115 GB, free: 9.398 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.134e-06/0.5056, allocations: 0 / 0.5115 GB, free: 9.398 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00244/0.508, allocations: 1.318 MB / 0.5128 GB, free: 8.051 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008033/0.5088, allocations: 498.4 kB / 0.5133 GB, free: 7.543 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002576/0.5091, allocations: 11.98 kB / 0.5133 GB, free: 7.531 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006058/0.5097, allocations: 31.97 kB / 0.5133 GB, free: 7.5 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001567/0.5099, allocations: 63.88 kB / 0.5134 GB, free: 7.438 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.736e-05/0.5099, allocations: 36 kB / 0.5134 GB, free: 7.402 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002658/0.5126, allocations: 1.907 MB / 0.5153 GB, free: 5.496 MB / 446.1 MB Notification: Performance of sort global known variables: time 5.21e-07/0.5126, allocations: 4.062 kB / 0.5153 GB, free: 5.492 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001467/0.5141, allocations: 0.5852 MB / 0.5158 GB, free: 4.906 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.003953/0.5181, allocations: 2.542 MB / 0.5183 GB, free: 2.332 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.001743/0.5198, allocations: 0.8134 MB / 0.5191 GB, free: 1.492 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 3.356e-06/0.5198, allocations: 0 / 0.5191 GB, free: 1.492 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008108/0.5206, allocations: 447.8 kB / 0.5196 GB, free: 1.031 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003209/0.5239, allocations: 0.6228 MB / 0.5202 GB, free: 412 kB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2682/0.7921, allocations: 16.44 MB / 0.5362 GB, free: 129.2 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001664/0.7938, allocations: 1.663 MB / 0.5378 GB, free: 128.5 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.001311/0.7952, allocations: 362.9 kB / 0.5382 GB, free: 128.4 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001164/0.7963, allocations: 1.215 MB / 0.5394 GB, free: 128.2 MB / 462.1 MB Notification: Performance of SimCode: time 1.472e-06/0.7963, allocations: 1.156 kB / 0.5394 GB, free: 128.2 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09829/0.8946, allocations: 60.88 MB / 0.5988 GB, free: 74.36 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 15.98/16.88, allocations: 14.34 kB / 0.5988 GB, free: 74.35 MB / 462.1 MB (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)