Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.QuasiStationary.MultiPhase.Examples.BalancingStar.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.QuasiStationary.MultiPhase.Examples.BalancingStar,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_QuasiStationary_MultiPhase_Examples_BalancingStar",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.QuasiStationary.MultiPhase.Examples.BalancingStar,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_QuasiStationary_MultiPhase_Examples_BalancingStar",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001039/0.001039, allocations: 96.84 kB / 16.94 MB, free: 5.98 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001119/0.001119, allocations: 179 kB / 17.82 MB, free: 5.652 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.48/1.48, allocations: 205.4 MB / 224 MB, free: 13.18 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0004715/0.0004715, allocations: 16 kB / 280.9 MB, free: 3.637 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.102/0.1025, allocations: 47.58 MB / 328.4 MB, free: 3.992 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.QuasiStationary.MultiPhase.Examples.BalancingStar): time 0.008974/0.1115, allocations: 8.095 MB / 336.5 MB, free: 11.86 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.006457/0.118, allocations: 2.618 MB / 339.1 MB, free: 9.234 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001312/0.1194, allocations: 59.81 kB / 339.2 MB, free: 9.176 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001264/0.1207, allocations: 477.4 kB / 339.7 MB, free: 8.707 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003146/0.1238, allocations: 0.8763 MB / 340.5 MB, free: 7.828 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001852/0.1257, allocations: 0.6546 MB / 341.2 MB, free: 7.172 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.004347/0.13, allocations: 2.846 MB / 344 MB, free: 4.32 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01539/0.1455, allocations: 9.203 MB / 353.2 MB, free: 11.04 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00319/0.1487, allocations: 1.592 MB / 354.8 MB, free: 9.438 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003159/0.1519, allocations: 1.782 MB / 356.6 MB, free: 7.648 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005391/0.1524, allocations: 284 kB / 356.9 MB, free: 7.371 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001595/0.154, allocations: 455.7 kB / 357.3 MB, free: 6.926 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007092/0.1548, allocations: 0.7747 MB / 358.1 MB, free: 6.148 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001295/0.1561, allocations: 0.9097 MB / 359 MB, free: 5.23 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007882/0.164, allocations: 7.628 MB / 366.7 MB, free: 13.58 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.48e-06/0.164, allocations: 0 / 366.7 MB, free: 13.58 MB / 318.1 MB Notification: Performance of FrontEnd: time 3.016e-06/0.164, allocations: 0 / 366.7 MB, free: 13.58 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0002997/0.1643, allocations: 0 / 366.7 MB, free: 13.58 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1303 * Number of variables: 1303 Notification: Performance of Generate backend data structure: time 0.01313/0.1775, allocations: 4.579 MB / 371.2 MB, free: 8.938 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.029e-05/0.1775, allocations: 15.97 kB / 371.2 MB, free: 8.922 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002153/0.1797, allocations: 0.687 MB / 371.9 MB, free: 8.227 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0136/0.1933, allocations: 2.414 MB / 374.4 MB, free: 5.805 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005627/0.199, allocations: 2.337 MB / 376.7 MB, free: 3.418 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002984/0.1993, allocations: 357.8 kB / 377 MB, free: 3.066 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001198/0.2005, allocations: 476 kB / 377.5 MB, free: 2.602 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.2407/0.4412, allocations: 6.587 MB / 384.1 MB, free: 43.52 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001316/0.4414, allocations: 2.781 kB / 384.1 MB, free: 43.52 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007742/0.4422, allocations: 198.2 kB / 384.3 MB, free: 43.37 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000366/0.4426, allocations: 230.1 kB / 384.5 MB, free: 43.35 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01669/0.4593, allocations: 6.099 MB / 390.6 MB, free: 41.16 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03669/0.496, allocations: 22.71 MB / 413.3 MB, free: 24.84 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007989/0.5041, allocations: 10.8 MB / 424.1 MB, free: 12.36 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00525/0.5094, allocations: 3.58 MB / 427.7 MB, free: 8.465 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.25e-05/0.5095, allocations: 30.56 kB / 427.7 MB, free: 8.426 MB / 318.1 MB Notification: Performance of pre-optimization done (n=12): time 3.146e-06/0.5095, allocations: 0 / 427.7 MB, free: 8.426 MB / 318.1 MB Notification: Performance of matching and sorting (n=12): time 0.0006872/0.5102, allocations: 0.6765 MB / 428.4 MB, free: 7.672 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.378e-05/0.5102, allocations: 51.41 kB / 428.5 MB, free: 7.609 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002728/0.5129, allocations: 2.149 MB / 430.6 MB, free: 5.453 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.569e-05/0.513, allocations: 25.7 kB / 430.6 MB, free: 5.422 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001126/0.5141, allocations: 2.381 MB / 433 MB, free: 3.027 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.277e-05/0.5142, allocations: 93.97 kB / 433.1 MB, free: 2.938 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.778e-05/0.5143, allocations: 44 kB / 433.1 MB, free: 2.895 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001984/0.5145, allocations: 459.8 kB / 433.6 MB, free: 2.438 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001107/0.5156, allocations: 0.8597 MB / 434.5 MB, free: 1.574 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002015/0.5176, allocations: 2.265 MB / 436.7 MB, free: 14.61 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002185/0.5198, allocations: 1.42 MB / 438.1 MB, free: 13.19 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.161e-05/0.5199, allocations: 16 kB / 438.2 MB, free: 13.17 MB / 334.1 MB Notification: Performance of matching and sorting (n=316) (initialization): time 0.005286/0.5252, allocations: 3.124 MB / 441.3 MB, free: 10.04 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.749e-05/0.5253, allocations: 28 kB / 441.3 MB, free: 10.02 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.024e-05/0.5254, allocations: 48 kB / 441.4 MB, free: 9.969 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001009/0.5255, allocations: 76 kB / 441.4 MB, free: 9.895 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001866/0.5274, allocations: 0.5692 MB / 442 MB, free: 9.324 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.94e-05/0.5275, allocations: 95.66 kB / 442.1 MB, free: 9.23 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002366/0.5299, allocations: 404.7 kB / 442.5 MB, free: 8.832 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001972/0.5301, allocations: 148 kB / 442.6 MB, free: 8.688 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 227 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (312): * Single equations (assignments): 308 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.003307/0.5334, allocations: 1.726 MB / 444.4 MB, free: 6.949 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000309/0.5337, allocations: 142.2 kB / 444.5 MB, free: 6.809 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006401/0.5343, allocations: 342.1 kB / 444.8 MB, free: 6.465 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0002331/0.5346, allocations: 181.6 kB / 445 MB, free: 6.281 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.731e-06/0.5346, allocations: 0 / 445 MB, free: 6.281 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.032e-06/0.5346, allocations: 0 / 445 MB, free: 6.281 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00584/0.5405, allocations: 3.19 MB / 448.2 MB, free: 3.039 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.414e-06/0.5405, allocations: 3.984 kB / 448.2 MB, free: 3.035 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.55e-05/0.5406, allocations: 15.94 kB / 448.2 MB, free: 3.02 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.081e-05/0.5406, allocations: 0 / 448.2 MB, free: 3.02 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.023e-05/0.5407, allocations: 12 kB / 448.2 MB, free: 3.008 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.438e-06/0.5407, allocations: 4.031 kB / 448.2 MB, free: 3.004 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.394e-06/0.5407, allocations: 0 / 448.2 MB, free: 3.004 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007272/0.5414, allocations: 0.5309 MB / 448.8 MB, free: 2.445 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005397/0.542, allocations: 259.3 kB / 449 MB, free: 2.172 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001326/0.5421, allocations: 4 kB / 449 MB, free: 2.168 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005149/0.5426, allocations: 32.03 kB / 449.1 MB, free: 2.137 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.732e-05/0.5427, allocations: 7.984 kB / 449.1 MB, free: 2.129 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.507e-05/0.5427, allocations: 4 kB / 449.1 MB, free: 2.125 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.002175/0.5449, allocations: 1.404 MB / 450.5 MB, free: 0.7266 MB / 334.1 MB Notification: Performance of sort global known variables: time 3.01e-07/0.5449, allocations: 3.938 kB / 450.5 MB, free: 0.7227 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.003462/0.5484, allocations: 0.9871 MB / 451.5 MB, free: 15.73 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 1 (voltageSource.plug_p.reference.gamma) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (10): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001427/0.5498, allocations: 1.186 MB / 452.6 MB, free: 14.53 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.00343/0.5533, allocations: 1.573 MB / 454.2 MB, free: 12.96 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.939e-06/0.5533, allocations: 0 / 454.2 MB, free: 12.96 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000143/0.5534, allocations: 87.95 kB / 454.3 MB, free: 12.87 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001639/0.5551, allocations: 318.7 kB / 454.6 MB, free: 12.56 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04281/0.5979, allocations: 49.63 MB / 0.4924 GB, free: 9.656 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00333/0.6013, allocations: 3.202 MB / 0.4956 GB, free: 6.426 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.002188/0.6035, allocations: 0.7984 MB / 0.4963 GB, free: 5.621 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001537/0.6051, allocations: 1.315 MB / 0.4976 GB, free: 4.305 MB / 398.1 MB Notification: Performance of SimCode: time 2.184e-06/0.6051, allocations: 0 / 0.4976 GB, free: 4.305 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2904/0.8955, allocations: 41.47 MB / 0.5381 GB, free: 134.7 MB / 430.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001709/0.8957, allocations: 212 kB / 0.5383 GB, free: 134.4 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.489/3.385, allocations: 0.9688 kB / 0.5383 GB, free: 134.4 MB / 430.1 MB (rm -f Modelica_3.2.3_Modelica.Electrical.QuasiStationary.MultiPhase.Examples.BalancingStar.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.QuasiStationary.MultiPhase.Examples.BalancingStar.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.QuasiStationary.MultiPhase.Examples.BalancingStar.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.QuasiStationary.MultiPhase.Examples.BalancingStar.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.QuasiStationary.MultiPhase.Examples.BalancingStar_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_QuasiStationary_MultiPhase_Examples_BalancingStar_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_QuasiStationary_MultiPhase_Examples_BalancingStar.fmu > Modelica_3.2.3_Modelica.Electrical.QuasiStationary.MultiPhase.Examples.BalancingStar.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Electrical.QuasiStationary.MultiPhase.Examples.BalancingStar_res.mat does not exist to compare? outputFormat=mat