Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.QuasiStationary.MultiPhase.Examples.UnsymmetricalLoad.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.UnsymmetricalLoad,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_QuasiStationary_MultiPhase_Examples_UnsymmetricalLoad",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.QuasiStationary.MultiPhase.Examples.UnsymmetricalLoad,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_QuasiStationary_MultiPhase_Examples_UnsymmetricalLoad",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.002307/0.002306, allocations: 189 kB / 16.4 MB, free: 5.621 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.279/2.279, allocations: 205.4 MB / 222.5 MB, free: 13.76 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.001142/0.001142, allocations: 94.88 kB / 270.9 MB, free: 13.29 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005516/0.0005517, allocations: 12 kB / 327.1 MB, free: 14.98 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1071/0.1077, allocations: 47.58 MB / 374.6 MB, free: 15.32 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.QuasiStationary.MultiPhase.Examples.UnsymmetricalLoad): time 0.01996/0.1277, allocations: 11.65 MB / 386.3 MB, free: 3.633 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.2733/0.401, allocations: 3.731 MB / 390 MB, free: 8.59 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002845/0.4039, allocations: 83.69 kB / 390.1 MB, free: 8.59 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003209/0.4072, allocations: 0.6041 MB / 390.7 MB, free: 8.59 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.007643/0.4149, allocations: 1.493 MB / 392.2 MB, free: 8.57 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004493/0.4194, allocations: 0.8639 MB / 393.1 MB, free: 8.543 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.01864/0.4381, allocations: 7.432 MB / 400.5 MB, free: 8.488 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03193/0.4701, allocations: 12.05 MB / 412.6 MB, free: 5.555 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005363/0.4755, allocations: 2.266 MB / 414.8 MB, free: 4.766 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006292/0.4818, allocations: 2.774 MB / 417.6 MB, free: 2.164 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001884/0.4838, allocations: 392 kB / 418 MB, free: 1.781 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003908/0.4877, allocations: 0.5317 MB / 418.5 MB, free: 1.254 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002264/0.49, allocations: 1.207 MB / 419.7 MB, free: 44 kB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.003555/0.4936, allocations: 1.256 MB / 421 MB, free: 14.77 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01777/0.5115, allocations: 10.3 MB / 431.3 MB, free: 4.484 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.84e-06/0.5115, allocations: 0 / 431.3 MB, free: 4.484 MB / 298.7 MB Notification: Performance of FrontEnd: time 3.847e-06/0.5115, allocations: 0 / 431.3 MB, free: 4.484 MB / 298.7 MB Notification: Performance of Transformations before backend: time 0.0003697/0.5119, allocations: 0 / 431.3 MB, free: 4.484 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: 1888 * Number of variables: 1888 Notification: Performance of Generate backend data structure: time 0.02934/0.5413, allocations: 6.967 MB / 438.2 MB, free: 13.49 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.504e-05/0.5413, allocations: 8.031 kB / 438.2 MB, free: 13.48 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004815/0.5462, allocations: 1.141 MB / 439.4 MB, free: 12.33 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04994/0.5962, allocations: 5.1 MB / 444.5 MB, free: 7.215 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01174/0.608, allocations: 3.505 MB / 448 MB, free: 3.66 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007742/0.6088, allocations: 0.5098 MB / 448.5 MB, free: 3.148 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003317/0.6121, allocations: 0.6678 MB / 449.2 MB, free: 2.48 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03734/0.6495, allocations: 10.39 MB / 459.6 MB, free: 8.047 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003314/0.6499, allocations: 11.84 kB / 459.6 MB, free: 8.035 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002204/0.6521, allocations: 288 kB / 459.9 MB, free: 7.754 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006552/0.6528, allocations: 394.6 kB / 460.2 MB, free: 7.367 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03224/0.6851, allocations: 9.587 MB / 469.8 MB, free: 13.77 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08764/0.7728, allocations: 31.99 MB / 0.4901 GB, free: 12.77 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03135/0.8042, allocations: 22.87 MB / 0.5124 GB, free: 2.234 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01817/0.8224, allocations: 6.281 MB / 0.5185 GB, free: 11.62 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.759e-05/0.8225, allocations: 55.94 kB / 0.5186 GB, free: 11.56 MB / 410.7 MB Notification: Performance of pre-optimization done (n=152): time 4.939e-06/0.8226, allocations: 0 / 0.5186 GB, free: 11.56 MB / 410.7 MB Notification: Performance of matching and sorting (n=152): time 0.01268/0.8353, allocations: 3.221 MB / 0.5217 GB, free: 8.289 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.848e-05/0.8354, allocations: 102.5 kB / 0.5218 GB, free: 8.172 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00656/0.842, allocations: 2.584 MB / 0.5243 GB, free: 5.555 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003139/0.8423, allocations: 49.7 kB / 0.5244 GB, free: 5.5 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003226/0.8456, allocations: 3.108 MB / 0.5274 GB, free: 2.352 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001088/0.8467, allocations: 0.5512 MB / 0.528 GB, free: 1.793 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005017/0.8472, allocations: 80 kB / 0.528 GB, free: 1.715 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0004454/0.8477, allocations: 475.2 kB / 0.5285 GB, free: 1.242 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004492/0.8522, allocations: 1.456 MB / 0.5299 GB, free: 15.78 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006366/0.8586, allocations: 3.226 MB / 0.5331 GB, free: 11.71 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006026/0.8647, allocations: 2.199 MB / 0.5352 GB, free: 9.516 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.838e-05/0.8648, allocations: 16 kB / 0.5352 GB, free: 9.5 MB / 426.7 MB Notification: Performance of matching and sorting (n=502) (initialization): time 0.01534/0.8802, allocations: 4.99 MB / 0.5401 GB, free: 4.496 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.729e-05/0.8803, allocations: 35.95 kB / 0.5401 GB, free: 4.461 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001248/0.8805, allocations: 60 kB / 0.5402 GB, free: 4.402 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001564/0.882, allocations: 341.8 kB / 0.5405 GB, free: 4.062 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006299/0.8884, allocations: 0.8852 MB / 0.5414 GB, free: 3.176 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2884/1.177, allocations: 4.716 MB / 0.546 GB, free: 131.4 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005321/1.182, allocations: 0.5363 MB / 0.5465 GB, free: 131.3 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001011/1.183, allocations: 212.2 kB / 0.5467 GB, free: 131.3 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 276 * 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 (474): * Single equations (assignments): 472 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(2,100.0%) 22,(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.006496/1.19, allocations: 2.327 MB / 0.549 GB, free: 131 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007429/1.191, allocations: 225.8 kB / 0.5492 GB, free: 131 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00742/1.198, allocations: 2.347 MB / 0.5515 GB, free: 130.1 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.988e-05/1.198, allocations: 16.22 kB / 0.5515 GB, free: 130.1 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.036e-05/1.198, allocations: 8.75 kB / 0.5515 GB, free: 130.1 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.956e-05/1.198, allocations: 14.67 kB / 0.5515 GB, free: 130.1 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01629/1.214, allocations: 5.331 MB / 0.5567 GB, free: 128.1 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.917e-05/1.215, allocations: 1.125 kB / 0.5567 GB, free: 128.1 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002466/1.217, allocations: 263.9 kB / 0.557 GB, free: 128.1 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001217/1.218, allocations: 258.4 kB / 0.5572 GB, free: 128 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003399/1.219, allocations: 31.03 kB / 0.5573 GB, free: 128 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007471/1.226, allocations: 4.614 MB / 0.5618 GB, free: 124.4 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.847e-06/1.226, allocations: 4.094 kB / 0.5618 GB, free: 124.4 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008781/1.235, allocations: 3.338 MB / 0.565 GB, free: 122.8 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001688/1.237, allocations: 0.4954 MB / 0.5655 GB, free: 122.5 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006907/1.237, allocations: 30.41 kB / 0.5656 GB, free: 122.5 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002439/1.24, allocations: 101.1 kB / 0.5657 GB, free: 122.5 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005343/1.241, allocations: 101.3 kB / 0.5657 GB, free: 122.5 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001717/1.241, allocations: 42.53 kB / 0.5658 GB, free: 122.5 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.004209/1.245, allocations: 1.698 MB / 0.5674 GB, free: 121.8 MB / 426.7 MB Notification: Performance of sort global known variables: time 3.51e-07/1.245, allocations: 0 / 0.5674 GB, free: 121.8 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.006492/1.251, allocations: 1.519 MB / 0.5689 GB, free: 121.3 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (voltageSource1.plug_p.reference.gamma,voltageSource2.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 (134): * Single equations (assignments): 132 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 5,(2,100.0%) 22} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.008564/1.26, allocations: 4.083 MB / 0.5729 GB, free: 119.1 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.008737/1.269, allocations: 3.509 MB / 0.5763 GB, free: 117.7 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 1.133e-05/1.269, allocations: 5.812 kB / 0.5763 GB, free: 117.7 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003045/1.272, allocations: 1.264 MB / 0.5776 GB, free: 117.1 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003813/1.276, allocations: 447.2 kB / 0.578 GB, free: 117 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06641/1.342, allocations: 66.46 MB / 0.6429 GB, free: 55.62 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007368/1.35, allocations: 4.179 MB / 0.647 GB, free: 51.41 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004677/1.354, allocations: 2.143 MB / 0.6491 GB, free: 49.27 MB / 426.7 MB Notification: Performance of SimCode: time 1.924e-06/1.354, allocations: 0 / 0.6491 GB, free: 49.27 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.084/5.438, allocations: 155.7 MB / 0.8011 GB, free: 78.61 MB / 442.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.QuasiStationary.MultiPhase.Examples.UnsymmetricalLoad.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.QuasiStationary.MultiPhase.Examples.UnsymmetricalLoad.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.QuasiStationary.MultiPhase.Examples.UnsymmetricalLoad.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.QuasiStationary.MultiPhase.Examples.UnsymmetricalLoad.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Electrical.QuasiStationary.MultiPhase.Examples.UnsymmetricalLoad_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Electrical_QuasiStationary_MultiPhase_Examples_UnsymmetricalLoad_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Electrical_QuasiStationary_MultiPhase_Examples_UnsymmetricalLoad.fmu > Modelica_3.2.3_cpp_Modelica.Electrical.QuasiStationary.MultiPhase.Examples.UnsymmetricalLoad.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Electrical.QuasiStationary.MultiPhase.Examples.UnsymmetricalLoad_res.mat does not exist to compare? outputFormat=mat