Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.MultiPhase.Examples.TransformerYY.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.MultiPhase.Examples.TransformerYY,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_MultiPhase_Examples_TransformerYY",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.MultiPhase.Examples.TransformerYY,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_MultiPhase_Examples_TransformerYY",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.002276/0.002276, allocations: 188.8 kB / 16.4 MB, free: 5.625 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.465/2.465, allocations: 205.4 MB / 222.5 MB, free: 13.86 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.001248/0.001248, allocations: 98.8 kB / 270.9 MB, free: 13.38 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003959/0.000396, allocations: 12 kB / 327.1 MB, free: 15 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1018/0.1022, allocations: 47.58 MB / 374.6 MB, free: 15.34 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.MultiPhase.Examples.TransformerYY): time 0.00527/0.1076, allocations: 3.012 MB / 377.6 MB, free: 12.31 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.002576/0.1102, allocations: 0.9947 MB / 378.6 MB, free: 11.31 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003147/0.1106, allocations: 15.94 kB / 378.7 MB, free: 11.3 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003844/0.111, allocations: 123.3 kB / 378.8 MB, free: 11.18 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0009508/0.1119, allocations: 215.3 kB / 379 MB, free: 10.96 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004081/0.1124, allocations: 91.89 kB / 379.1 MB, free: 10.88 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.001867/0.1142, allocations: 0.8615 MB / 379.9 MB, free: 10.01 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001471/0.1158, allocations: 0.742 MB / 380.7 MB, free: 9.254 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009118/0.1167, allocations: 442.5 kB / 381.1 MB, free: 8.82 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00109/0.1178, allocations: 0.533 MB / 381.6 MB, free: 8.285 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000226/0.1181, allocations: 76 kB / 381.7 MB, free: 8.211 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003066/0.1184, allocations: 72 kB / 381.8 MB, free: 8.141 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0004657/0.1189, allocations: 335 kB / 382.1 MB, free: 7.812 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003928/0.1193, allocations: 269 kB / 382.4 MB, free: 7.543 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002349/0.1216, allocations: 1.609 MB / 384 MB, free: 5.93 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.617e-06/0.1217, allocations: 4 kB / 384 MB, free: 5.926 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.154e-06/0.1217, allocations: 0 / 384 MB, free: 5.926 MB / 282.7 MB Notification: Performance of Transformations before backend: time 3.998e-05/0.1217, allocations: 0 / 384 MB, free: 5.926 MB / 282.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 281 * Number of variables: 281 Notification: Performance of Generate backend data structure: time 0.004383/0.1261, allocations: 1.457 MB / 385.4 MB, free: 4.414 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.272e-05/0.1262, allocations: 8.031 kB / 385.5 MB, free: 4.406 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004496/0.1267, allocations: 177 kB / 385.6 MB, free: 4.223 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003618/0.127, allocations: 142.3 kB / 385.8 MB, free: 4.082 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002055/0.1291, allocations: 0.7908 MB / 386.6 MB, free: 3.25 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001172/0.1293, allocations: 82.22 kB / 386.6 MB, free: 3.168 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002694/0.1295, allocations: 107.9 kB / 386.7 MB, free: 3.062 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004394/0.1339, allocations: 1.529 MB / 388.3 MB, free: 1.488 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.435e-05/0.134, allocations: 3.938 kB / 388.3 MB, free: 1.484 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001779/0.1342, allocations: 48 kB / 388.3 MB, free: 1.438 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.574e-05/0.1343, allocations: 28 kB / 388.4 MB, free: 1.41 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00408/0.1384, allocations: 1.305 MB / 389.7 MB, free: 100 kB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2758/0.4142, allocations: 4.25 MB / 393.9 MB, free: 18.26 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001723/0.416, allocations: 1.326 MB / 395.2 MB, free: 17.16 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.482e-05/0.4161, allocations: 8.359 kB / 395.2 MB, free: 17.16 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.648e-05/0.4161, allocations: 38.16 kB / 395.3 MB, free: 17.12 MB / 282.7 MB Notification: Performance of pre-optimization done (n=49): time 3.697e-06/0.4161, allocations: 0 / 395.3 MB, free: 17.12 MB / 282.7 MB Notification: Performance of matching and sorting (n=50): time 0.005298/0.4214, allocations: 1.975 MB / 397.3 MB, free: 16.14 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.825e-05/0.4215, allocations: 57.09 kB / 397.3 MB, free: 16.08 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001715/0.4232, allocations: 0.8142 MB / 398.1 MB, free: 15.76 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001548/0.4234, allocations: 36.05 kB / 398.2 MB, free: 15.72 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004035/0.4238, allocations: 0.5588 MB / 398.7 MB, free: 15.25 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001822/0.424, allocations: 170.7 kB / 398.9 MB, free: 15.12 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.712e-05/0.4241, allocations: 10.34 kB / 398.9 MB, free: 15.11 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 8.837e-05/0.4242, allocations: 332.3 kB / 399.2 MB, free: 14.79 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008719/0.4251, allocations: 310.4 kB / 399.5 MB, free: 14.7 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008966/0.426, allocations: 409.7 kB / 399.9 MB, free: 14.5 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009394/0.427, allocations: 375.2 kB / 400.3 MB, free: 14.36 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.18e-06/0.427, allocations: 3.953 kB / 400.3 MB, free: 14.36 MB / 282.7 MB Notification: Performance of matching and sorting (n=68) (initialization): time 0.002298/0.4293, allocations: 0.8836 MB / 401.2 MB, free: 14.02 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.673e-05/0.4293, allocations: 7.016 kB / 401.2 MB, free: 14.02 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.296e-05/0.4294, allocations: 2.938 kB / 401.2 MB, free: 14.02 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004509/0.4298, allocations: 107.3 kB / 401.3 MB, free: 13.98 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009816/0.4308, allocations: 131.7 kB / 401.4 MB, free: 13.96 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003028/0.4339, allocations: 2.185 MB / 403.6 MB, free: 12.22 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008103/0.4347, allocations: 38.11 kB / 403.6 MB, free: 12.2 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.089e-05/0.4348, allocations: 19.27 kB / 403.7 MB, free: 12.2 MB / 282.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * 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 (59): * Single equations (assignments): 58 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 9} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001125/0.436, allocations: 449.7 kB / 404.1 MB, free: 11.96 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002243/0.4362, allocations: 77.5 kB / 404.2 MB, free: 11.92 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002022/0.4364, allocations: 89.23 kB / 404.3 MB, free: 11.86 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.648e-06/0.4364, allocations: 5.938 kB / 404.3 MB, free: 11.86 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.878e-05/0.4365, allocations: 1.719 kB / 404.3 MB, free: 11.86 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.468e-06/0.4365, allocations: 6.484 kB / 404.3 MB, free: 11.86 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004934/0.4414, allocations: 2.025 MB / 406.3 MB, free: 10.73 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.096e-06/0.4415, allocations: 1 kB / 406.3 MB, free: 10.73 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007145/0.4422, allocations: 95.97 kB / 406.4 MB, free: 10.71 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003897/0.4426, allocations: 103.7 kB / 406.5 MB, free: 10.65 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.457e-05/0.4427, allocations: 17.2 kB / 406.5 MB, free: 10.64 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002884/0.4456, allocations: 2.139 MB / 408.7 MB, free: 8.754 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.669e-06/0.4456, allocations: 5.172 kB / 408.7 MB, free: 8.75 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003003/0.4486, allocations: 1.233 MB / 409.9 MB, free: 8.004 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004031/0.4491, allocations: 159.3 kB / 410 MB, free: 7.859 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001624/0.4493, allocations: 11.91 kB / 410.1 MB, free: 7.852 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007459/0.4501, allocations: 60.75 kB / 410.1 MB, free: 7.824 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000166/0.4502, allocations: 37.28 kB / 410.2 MB, free: 7.805 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.025e-05/0.4503, allocations: 14.34 kB / 410.2 MB, free: 7.801 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.001172/0.4515, allocations: 0.5834 MB / 410.7 MB, free: 7.469 MB / 282.7 MB Notification: Performance of sort global known variables: time 6.11e-07/0.4515, allocations: 0 / 410.7 MB, free: 7.469 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.001395/0.4529, allocations: 209.9 kB / 411 MB, free: 7.453 MB / 282.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (transformerL.inductor[2].i,transformerL.inductor[3].i) * 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 (41): * Single equations (assignments): 40 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 9} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.003223/0.4562, allocations: 1.921 MB / 412.9 MB, free: 6.039 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.002243/0.4585, allocations: 0.8317 MB / 413.7 MB, free: 5.574 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 7.284e-06/0.4585, allocations: 0 / 413.7 MB, free: 5.574 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001189/0.4597, allocations: 493.4 kB / 414.2 MB, free: 5.273 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001433/0.4612, allocations: 159.1 kB / 414.3 MB, free: 5.195 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01524/0.4765, allocations: 7.743 MB / 422.1 MB, free: 14.45 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001451/0.478, allocations: 1.336 MB / 423.4 MB, free: 13.08 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009388/0.479, allocations: 375.3 kB / 423.8 MB, free: 12.71 MB / 298.7 MB Notification: Performance of SimCode: time 1.964e-06/0.479, allocations: 0 / 423.8 MB, free: 12.71 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.124/3.603, allocations: 24.37 MB / 448.2 MB, free: 4.309 MB / 314.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.MultiPhase.Examples.TransformerYY.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.MultiPhase.Examples.TransformerYY.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.MultiPhase.Examples.TransformerYY.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.MultiPhase.Examples.TransformerYY.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Electrical.MultiPhase.Examples.TransformerYY_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Electrical_MultiPhase_Examples_TransformerYY_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Electrical_MultiPhase_Examples_TransformerYY.fmu > Modelica_3.2.3_cpp_Modelica.Electrical.MultiPhase.Examples.TransformerYY.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Electrical.MultiPhase.Examples.TransformerYY_res.mat does not exist to compare? outputFormat=mat