Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.QuasiStatic.Polyphase.Examples.BalancingStar.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 trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/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.QuasiStatic.Polyphase.Examples.BalancingStar,fileNamePrefix="Modelica_trunk_Modelica_Electrical_QuasiStatic_Polyphase_Examples_BalancingStar",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.QuasiStatic.Polyphase.Examples.BalancingStar,fileNamePrefix="Modelica_trunk_Modelica_Electrical_QuasiStatic_Polyphase_Examples_BalancingStar",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007584/0.0007585, allocations: 98.98 kB / 17 MB, free: 6.402 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0008489/0.0008491, allocations: 192.7 kB / 17.91 MB, free: 5.926 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.406/1.406, allocations: 227.4 MB / 246 MB, free: 10.26 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002465/0.0002466, allocations: 12 kB / 306.8 MB, free: 1.246 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1181/0.1184, allocations: 51.5 MB / 358.3 MB, free: 13.75 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.QuasiStatic.Polyphase.Examples.BalancingStar): time 0.008582/0.1271, allocations: 8.343 MB / 366.7 MB, free: 5.375 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.005202/0.1323, allocations: 2.508 MB / 369.2 MB, free: 2.859 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001422/0.1338, allocations: 71.81 kB / 369.2 MB, free: 2.789 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001556/0.1354, allocations: 405.5 kB / 369.6 MB, free: 2.391 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003016/0.1384, allocations: 0.6217 MB / 370.3 MB, free: 1.766 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00229/0.1407, allocations: 0.762 MB / 371 MB, free: 1.012 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.2578/0.3985, allocations: 3.707 MB / 374.7 MB, free: 8.766 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01694/0.4155, allocations: 9.264 MB / 384 MB, free: 7.57 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004381/0.4199, allocations: 1.634 MB / 385.6 MB, free: 7.566 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004514/0.4244, allocations: 1.836 MB / 387.5 MB, free: 7.309 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001062/0.4255, allocations: 272.8 kB / 387.7 MB, free: 7.309 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002383/0.4279, allocations: 0.4885 MB / 388.2 MB, free: 7.289 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001173/0.4291, allocations: 0.7185 MB / 388.9 MB, free: 7.137 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002276/0.4314, allocations: 0.8724 MB / 389.8 MB, free: 6.555 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008015/0.4394, allocations: 7.509 MB / 397.3 MB, free: 2.352 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.091e-06/0.4395, allocations: 0 / 397.3 MB, free: 2.352 MB / 302.1 MB Notification: Performance of FrontEnd: time 3.797e-06/0.4395, allocations: 0 / 397.3 MB, free: 2.352 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0002444/0.4397, allocations: 2.625 kB / 397.3 MB, free: 2.352 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1224 * Number of variables: 1224 Notification: Performance of Generate backend data structure: time 0.01104/0.4508, allocations: 4.391 MB / 401.7 MB, free: 15.59 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.048e-05/0.4508, allocations: 9.75 kB / 401.7 MB, free: 15.59 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001973/0.4528, allocations: 0.6579 MB / 402.4 MB, free: 15.11 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008102/0.4609, allocations: 1.321 MB / 403.7 MB, free: 13.91 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005523/0.4665, allocations: 2.489 MB / 406.2 MB, free: 11.41 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003485/0.4669, allocations: 353 kB / 406.5 MB, free: 11.07 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00151/0.4684, allocations: 451.9 kB / 407 MB, free: 10.62 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01442/0.4828, allocations: 6.081 MB / 413.1 MB, free: 4.508 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001087/0.483, allocations: 0 / 413.1 MB, free: 4.508 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006231/0.4836, allocations: 184 kB / 413.2 MB, free: 4.328 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002118/0.4838, allocations: 201.5 kB / 413.4 MB, free: 4.129 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01093/0.4948, allocations: 5.253 MB / 418.7 MB, free: 14.86 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03285/0.5276, allocations: 21.31 MB / 440 MB, free: 8.953 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005784/0.5335, allocations: 5.594 MB / 445.6 MB, free: 2.598 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001117/0.5347, allocations: 0.7058 MB / 446.3 MB, free: 1.895 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002189/0.5349, allocations: 197.7 kB / 446.5 MB, free: 1.668 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.111e-05/0.5349, allocations: 39.56 kB / 446.5 MB, free: 1.621 MB / 350.1 MB Notification: Performance of pre-optimization done (n=100): time 3.066e-06/0.5349, allocations: 4 kB / 446.5 MB, free: 1.617 MB / 350.1 MB Notification: Performance of matching and sorting (n=100): time 0.002993/0.5379, allocations: 1.541 MB / 448.1 MB, free: 72 kB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.253e-05/0.5381, allocations: 60.45 kB / 448.1 MB, free: 15.99 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002995/0.5411, allocations: 1.45 MB / 449.6 MB, free: 14.54 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001268/0.5412, allocations: 41.64 kB / 449.6 MB, free: 14.49 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001637/0.5429, allocations: 1.963 MB / 451.6 MB, free: 12.51 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003892/0.5433, allocations: 365.5 kB / 451.9 MB, free: 12.16 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.854e-05/0.5434, allocations: 48 kB / 452 MB, free: 12.11 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0002273/0.5436, allocations: 451.3 kB / 452.4 MB, free: 11.66 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001278/0.5449, allocations: 0.8398 MB / 453.3 MB, free: 10.82 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002531/0.5474, allocations: 1.968 MB / 455.2 MB, free: 8.293 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002646/0.5501, allocations: 1.341 MB / 456.6 MB, free: 6.957 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.932e-05/0.5502, allocations: 12 kB / 456.6 MB, free: 6.945 MB / 366.1 MB Notification: Performance of matching and sorting (n=289) (initialization): time 0.00699/0.5572, allocations: 2.844 MB / 459.4 MB, free: 4.09 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.529e-05/0.5573, allocations: 24 kB / 459.5 MB, free: 4.066 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.016e-05/0.5574, allocations: 36 kB / 459.5 MB, free: 4.031 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.271e-05/0.5574, allocations: 60 kB / 459.5 MB, free: 3.973 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002655/0.5601, allocations: 0.5381 MB / 460.1 MB, free: 3.434 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001194/0.5602, allocations: 83.66 kB / 460.2 MB, free: 3.352 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002358/0.5626, allocations: 297.4 kB / 460.5 MB, free: 3.059 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003347/0.563, allocations: 124 kB / 460.6 MB, free: 2.938 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 178 * 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 (285): * Single equations (assignments): 281 * 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.004482/0.5675, allocations: 1.664 MB / 462.2 MB, free: 1.262 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003846/0.5679, allocations: 130.3 kB / 462.4 MB, free: 1.133 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002369/0.5703, allocations: 1.424 MB / 463.8 MB, free: 15.69 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.001335/0.5716, allocations: 1.002 MB / 464.8 MB, free: 14.68 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.168e-06/0.5716, allocations: 0 / 464.8 MB, free: 14.68 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.333e-05/0.5716, allocations: 15.91 kB / 464.8 MB, free: 14.67 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01982/0.5915, allocations: 13.52 MB / 478.3 MB, free: 260 kB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.964e-05/0.5916, allocations: 20 kB / 478.4 MB, free: 240 kB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000735/0.5923, allocations: 211.6 kB / 478.6 MB, free: 28 kB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.284e-05/0.5924, allocations: 32 kB / 478.6 MB, free: 15.99 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.872e-05/0.5925, allocations: 44 kB / 478.6 MB, free: 15.95 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.095e-05/0.5925, allocations: 39.75 kB / 478.7 MB, free: 15.91 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.026e-05/0.5925, allocations: 35.86 kB / 478.7 MB, free: 15.88 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003615/0.5961, allocations: 2.566 MB / 481.3 MB, free: 13.02 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006755/0.5968, allocations: 339 kB / 481.6 MB, free: 12.67 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000164/0.597, allocations: 43.98 kB / 481.6 MB, free: 12.63 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006551/0.5977, allocations: 63.95 kB / 481.7 MB, free: 12.57 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002538/0.5979, allocations: 135.5 kB / 481.8 MB, free: 12.43 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.736e-05/0.598, allocations: 51.98 kB / 481.9 MB, free: 12.38 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.001786/0.5998, allocations: 0.9876 MB / 482.9 MB, free: 11.39 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.5998, allocations: 0 / 482.9 MB, free: 11.39 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.003236/0.6031, allocations: 0.9321 MB / 483.8 MB, free: 10.45 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 87 * 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 (101): * Single equations (assignments): 97 * 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.003762/0.6068, allocations: 3.203 MB / 487 MB, free: 6.969 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.003358/0.6102, allocations: 1.908 MB / 488.9 MB, free: 5.059 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.221e-05/0.6103, allocations: 4 kB / 488.9 MB, free: 5.055 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009415/0.6112, allocations: 0.6092 MB / 489.5 MB, free: 4.449 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002251/0.6135, allocations: 370.6 kB / 489.9 MB, free: 4.098 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0278/0.6413, allocations: 15.91 MB / 0.494 GB, free: 3.121 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003399/0.6447, allocations: 3.075 MB / 0.497 GB, free: 12 kB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.002147/0.6469, allocations: 0.8094 MB / 0.4977 GB, free: 15.2 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001882/0.6488, allocations: 1.28 MB / 0.499 GB, free: 13.91 MB / 430.1 MB Notification: Performance of SimCode: time 1.203e-06/0.6488, allocations: 0 / 0.499 GB, free: 13.91 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2705/0.9193, allocations: 40.51 MB / 0.5386 GB, free: 138.9 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001436/0.9195, allocations: 207.6 kB / 0.5388 GB, free: 138.6 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.511/3.431, allocations: 1.5 kB / 0.5388 GB, free: 138.6 MB / 446.1 MB (rm -f Modelica_trunk_Modelica.Electrical.QuasiStatic.Polyphase.Examples.BalancingStar.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.QuasiStatic.Polyphase.Examples.BalancingStar.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.QuasiStatic.Polyphase.Examples.BalancingStar.pipe >> ../files/Modelica_trunk_Modelica.Electrical.QuasiStatic.Polyphase.Examples.BalancingStar.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.QuasiStatic.Polyphase.Examples.BalancingStar_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_QuasiStatic_Polyphase_Examples_BalancingStar_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_QuasiStatic_Polyphase_Examples_BalancingStar.fmu > Modelica_trunk_Modelica.Electrical.QuasiStatic.Polyphase.Examples.BalancingStar.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Electrical.QuasiStatic.Polyphase.Examples.BalancingStar_res.mat does not exist to compare? outputFormat=mat