Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.QuasiStationary.MultiPhase.Examples.BalancingDelta.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.QuasiStationary.MultiPhase.Examples.BalancingDelta,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_QuasiStationary_MultiPhase_Examples_BalancingDelta",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.QuasiStationary.MultiPhase.Examples.BalancingDelta,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_QuasiStationary_MultiPhase_Examples_BalancingDelta",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002348/0.002348, allocations: 183.1 kB / 16.4 MB, free: 5.754 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.068/2.068, allocations: 205.4 MB / 222.5 MB, free: 9.109 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001145/0.001144, allocations: 96.31 kB / 270.9 MB, free: 8.355 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003847/0.0003849, allocations: 11.94 kB / 327.1 MB, free: 92 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3616/0.362, allocations: 47.57 MB / 374.6 MB, free: 45.42 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.QuasiStationary.MultiPhase.Examples.BalancingDelta): time 0.01089/0.3729, allocations: 7.787 MB / 382.4 MB, free: 39.37 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.006917/0.3799, allocations: 2.567 MB / 385 MB, free: 37.28 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001882/0.3818, allocations: 60.22 kB / 385 MB, free: 37.27 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00193/0.3838, allocations: 425.2 kB / 385.5 MB, free: 36.93 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.004408/0.3882, allocations: 0.9097 MB / 386.4 MB, free: 36.21 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002822/0.3911, allocations: 0.6245 MB / 387 MB, free: 35.75 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.005537/0.3966, allocations: 2.594 MB / 389.6 MB, free: 33.85 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01739/0.4141, allocations: 8.107 MB / 397.7 MB, free: 25.68 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002814/0.4169, allocations: 1.448 MB / 399.1 MB, free: 24.22 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003408/0.4204, allocations: 1.685 MB / 400.8 MB, free: 22.53 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0008946/0.4213, allocations: 252 kB / 401.1 MB, free: 22.29 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002307/0.4236, allocations: 431.7 kB / 401.5 MB, free: 21.86 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0009384/0.4246, allocations: 0.7202 MB / 402.2 MB, free: 21.14 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001343/0.426, allocations: 0.82 MB / 403 MB, free: 20.31 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.008482/0.4345, allocations: 6.807 MB / 409.8 MB, free: 13.49 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.328e-06/0.4345, allocations: 4 kB / 409.8 MB, free: 13.48 MB / 298.7 MB Notification: Performance of FrontEnd: time 3.437e-06/0.4345, allocations: 4 kB / 409.9 MB, free: 13.48 MB / 298.7 MB Notification: Performance of Transformations before backend: time 0.0002218/0.4348, allocations: 0 / 409.9 MB, free: 13.48 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1203 * Number of variables: 1203 Notification: Performance of Generate backend data structure: time 0.01584/0.4506, allocations: 4.273 MB / 414.1 MB, free: 9.141 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.68e-05/0.4507, allocations: 8.031 kB / 414.1 MB, free: 9.133 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002185/0.4529, allocations: 0.6415 MB / 414.8 MB, free: 8.48 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02304/0.476, allocations: 2.582 MB / 417.4 MB, free: 5.891 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0057/0.4817, allocations: 2.135 MB / 419.5 MB, free: 3.707 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003439/0.4821, allocations: 329.1 kB / 419.8 MB, free: 3.383 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001651/0.4838, allocations: 440 kB / 420.2 MB, free: 2.953 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02015/0.5039, allocations: 6.056 MB / 426.3 MB, free: 12.85 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001958/0.5042, allocations: 7.984 kB / 426.3 MB, free: 12.84 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001336/0.5055, allocations: 184 kB / 426.5 MB, free: 12.66 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003478/0.5059, allocations: 217.3 kB / 426.7 MB, free: 12.45 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01929/0.5252, allocations: 5.763 MB / 432.5 MB, free: 6.672 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05502/0.5803, allocations: 21.49 MB / 454 MB, free: 440 kB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01512/0.5955, allocations: 8.978 MB / 462.9 MB, free: 6.105 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009911/0.6054, allocations: 3.852 MB / 466.8 MB, free: 1.93 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.795e-05/0.6055, allocations: 42.75 kB / 466.8 MB, free: 1.879 MB / 346.7 MB Notification: Performance of pre-optimization done (n=26): time 2.916e-06/0.6055, allocations: 4 kB / 466.8 MB, free: 1.875 MB / 346.7 MB Notification: Performance of matching and sorting (n=26): time 0.002902/0.6084, allocations: 0.9094 MB / 467.7 MB, free: 0.8867 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.021e-05/0.6086, allocations: 55.59 kB / 467.8 MB, free: 0.8203 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005272/0.6139, allocations: 2.07 MB / 469.9 MB, free: 14.73 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 7.436e-05/0.614, allocations: 29.7 kB / 469.9 MB, free: 14.7 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002282/0.6163, allocations: 2.229 MB / 472.1 MB, free: 12.44 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000261/0.6166, allocations: 138.7 kB / 472.3 MB, free: 12.3 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002491/0.6168, allocations: 51.94 kB / 472.3 MB, free: 12.25 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0002936/0.6171, allocations: 420 kB / 472.7 MB, free: 11.84 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002482/0.6196, allocations: 0.9106 MB / 473.6 MB, free: 10.92 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003694/0.6234, allocations: 2.269 MB / 475.9 MB, free: 7.984 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003597/0.627, allocations: 1.451 MB / 477.3 MB, free: 6.535 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.093e-05/0.6271, allocations: 12 kB / 477.4 MB, free: 6.523 MB / 362.7 MB Notification: Performance of matching and sorting (n=324) (initialization): time 0.008772/0.6359, allocations: 3.165 MB / 480.5 MB, free: 3.352 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.124e-05/0.636, allocations: 24 kB / 480.5 MB, free: 3.328 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.736e-05/0.6361, allocations: 48 kB / 480.6 MB, free: 3.281 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001102/0.6362, allocations: 72 kB / 480.7 MB, free: 3.211 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00392/0.6401, allocations: 0.5888 MB / 481.3 MB, free: 2.621 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001334/0.6403, allocations: 96.27 kB / 481.3 MB, free: 2.527 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003594/0.6439, allocations: 428.1 kB / 481.8 MB, free: 2.105 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004244/0.6444, allocations: 151.9 kB / 481.9 MB, free: 1.957 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 217 * 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 (320): * Single equations (assignments): 316 * 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.003863/0.6482, allocations: 1.556 MB / 483.5 MB, free: 400 kB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003849/0.6486, allocations: 134.2 kB / 483.6 MB, free: 264 kB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001449/0.6501, allocations: 0.5622 MB / 484.2 MB, free: 15.67 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0006261/0.6508, allocations: 289.3 kB / 484.4 MB, free: 15.38 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.182e-06/0.6508, allocations: 0 / 484.4 MB, free: 15.38 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.481e-06/0.6508, allocations: 0 / 484.4 MB, free: 15.38 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008613/0.6594, allocations: 3.387 MB / 487.8 MB, free: 11.91 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.121e-05/0.6595, allocations: 11.98 kB / 487.8 MB, free: 11.89 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003075/0.6598, allocations: 27.98 kB / 487.9 MB, free: 11.87 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.241e-05/0.6598, allocations: 8.031 kB / 487.9 MB, free: 11.86 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.9e-05/0.6599, allocations: 7.938 kB / 487.9 MB, free: 11.85 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.806e-06/0.6599, allocations: 4 kB / 487.9 MB, free: 11.85 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.871e-06/0.6599, allocations: 4 kB / 487.9 MB, free: 11.84 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001663/0.6616, allocations: 0.8762 MB / 488.8 MB, free: 10.86 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008064/0.6624, allocations: 287.2 kB / 489.1 MB, free: 10.56 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002552/0.6627, allocations: 4 kB / 489.1 MB, free: 10.56 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009829/0.6636, allocations: 48 kB / 489.1 MB, free: 10.51 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.072e-05/0.6637, allocations: 19.88 kB / 489.1 MB, free: 10.49 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.141e-05/0.6638, allocations: 8 kB / 489.1 MB, free: 10.48 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.003376/0.6672, allocations: 1.379 MB / 490.5 MB, free: 9.109 MB / 378.7 MB Notification: Performance of sort global known variables: time 9.32e-07/0.6672, allocations: 3.938 kB / 490.5 MB, free: 9.105 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.004053/0.6713, allocations: 0.9362 MB / 491.4 MB, free: 8.164 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * 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 (18): * Single equations (assignments): 14 * 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.002575/0.6739, allocations: 2.059 MB / 493.5 MB, free: 6.012 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.00454/0.6784, allocations: 1.685 MB / 495.2 MB, free: 4.328 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 7.635e-06/0.6785, allocations: 0 / 495.2 MB, free: 4.328 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003745/0.6789, allocations: 148 kB / 495.3 MB, free: 4.184 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002361/0.6813, allocations: 279.6 kB / 495.6 MB, free: 3.91 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3243/1.006, allocations: 47.18 MB / 0.5301 GB, free: 98.79 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005182/1.011, allocations: 2.884 MB / 0.5329 GB, free: 97.06 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002584/1.013, allocations: 1.238 MB / 0.5341 GB, free: 95.93 MB / 394.7 MB Notification: Performance of SimCode: time 1.353e-06/1.014, allocations: 0 / 0.5341 GB, free: 95.93 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.033/4.047, allocations: 56.47 MB / 0.5892 GB, free: 43.22 MB / 394.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.QuasiStationary.MultiPhase.Examples.BalancingDelta.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.QuasiStationary.MultiPhase.Examples.BalancingDelta.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.QuasiStationary.MultiPhase.Examples.BalancingDelta.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.QuasiStationary.MultiPhase.Examples.BalancingDelta.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Electrical.QuasiStationary.MultiPhase.Examples.BalancingDelta_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Electrical_QuasiStationary_MultiPhase_Examples_BalancingDelta_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Electrical_QuasiStationary_MultiPhase_Examples_BalancingDelta.fmu > Modelica_3.2.3_cpp_Modelica.Electrical.QuasiStationary.MultiPhase.Examples.BalancingDelta.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Electrical.QuasiStationary.MultiPhase.Examples.BalancingDelta_res.mat does not exist to compare? outputFormat=mat