Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.Transformers.AIMC_Transformer.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.Machines.Examples.Transformers.AIMC_Transformer,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_Machines_Examples_Transformers_AIMC_Transformer",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.Transformers.AIMC_Transformer,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_Machines_Examples_Transformers_AIMC_Transformer",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.001608/0.001607, allocations: 181.7 kB / 13.66 MB, free: 1.664 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.107/2.107, allocations: 205.2 MB / 219.4 MB, free: 14.28 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.00114/0.00114, allocations: 86.66 kB / 267.5 MB, free: 14.11 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.172e-05/3.175e-05, allocations: 4 kB / 321.6 MB, free: 17.74 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1014/0.1014, allocations: 47.57 MB / 369.2 MB, free: 2.113 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4897/0.5912, allocations: 111.7 MB / 480.9 MB, free: 13.84 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000286/0.5915, allocations: 87.27 kB / 481 MB, free: 13.8 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6689/1.26, allocations: 93.57 MB / 0.5611 GB, free: 89.66 MB / 410.7 MB Notification: Performance of FrontEnd: time 3.997e-06/1.261, allocations: 0 / 0.5611 GB, free: 89.66 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0004501/1.261, allocations: 99.7 kB / 0.5612 GB, free: 89.65 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 934 * Number of variables: 934 Notification: Performance of Generate backend data structure: time 0.0138/1.275, allocations: 3.547 MB / 0.5647 GB, free: 88.21 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.441e-05/1.275, allocations: 8.094 kB / 0.5647 GB, free: 88.21 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002174/1.277, allocations: 0.4933 MB / 0.5652 GB, free: 88.15 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003215/1.28, allocations: 0.5116 MB / 0.5657 GB, free: 87.92 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008661/1.289, allocations: 2.55 MB / 0.5681 GB, free: 87.37 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003462/1.289, allocations: 267 kB / 0.5684 GB, free: 87.36 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001619/1.291, allocations: 356.1 kB / 0.5687 GB, free: 87.35 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01595/1.307, allocations: 4.843 MB / 0.5735 GB, free: 86.32 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001877/1.307, allocations: 3.188 kB / 0.5735 GB, free: 86.32 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001158/1.309, allocations: 151 kB / 0.5736 GB, free: 86.21 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002344/1.309, allocations: 177.3 kB / 0.5738 GB, free: 86.19 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01253/1.321, allocations: 3.908 MB / 0.5776 GB, free: 84.66 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04048/1.362, allocations: 14.95 MB / 0.5922 GB, free: 77.11 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006697/1.369, allocations: 4.149 MB / 0.5963 GB, free: 74.27 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004412/1.373, allocations: 1.835 MB / 0.598 GB, free: 73.63 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005577/1.374, allocations: 150.1 kB / 0.5982 GB, free: 73.53 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.595e-05/1.374, allocations: 58.72 kB / 0.5982 GB, free: 73.47 MB / 410.7 MB Notification: Performance of pre-optimization done (n=201): time 4.819e-06/1.374, allocations: 3.938 kB / 0.5983 GB, free: 73.47 MB / 410.7 MB Notification: Performance of matching and sorting (n=221): time 0.02905/1.403, allocations: 8.337 MB / 0.6064 GB, free: 69.61 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.917e-05/1.403, allocations: 77.41 kB / 0.6065 GB, free: 69.52 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005493/1.408, allocations: 2.181 MB / 0.6086 GB, free: 67.54 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005777/1.409, allocations: 65.7 kB / 0.6087 GB, free: 67.46 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001224/1.41, allocations: 1.473 MB / 0.6101 GB, free: 66.11 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001094/1.411, allocations: 0.7449 MB / 0.6108 GB, free: 65.44 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002603/1.412, allocations: 48 kB / 0.6109 GB, free: 65.39 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001809/1.412, allocations: 403.7 kB / 0.6113 GB, free: 65.02 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003009/1.415, allocations: 1.238 MB / 0.6125 GB, free: 63.91 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003533/1.418, allocations: 1.662 MB / 0.6141 GB, free: 62.25 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003688/1.422, allocations: 1.492 MB / 0.6155 GB, free: 60.98 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.756e-05/1.422, allocations: 4 kB / 0.6155 GB, free: 60.98 MB / 410.7 MB Notification: Performance of matching and sorting (n=291) (initialization): time 0.01025/1.433, allocations: 3.732 MB / 0.6192 GB, free: 57.73 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.481e-05/1.433, allocations: 20.19 kB / 0.6192 GB, free: 57.71 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.794e-05/1.433, allocations: 15.95 kB / 0.6192 GB, free: 57.69 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003192/1.436, allocations: 0.7577 MB / 0.62 GB, free: 57.06 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004279/1.44, allocations: 0.5262 MB / 0.6205 GB, free: 56.62 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01353/1.454, allocations: 8.705 MB / 0.629 GB, free: 48.31 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003489/1.457, allocations: 120.6 kB / 0.6291 GB, free: 48.22 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006307/1.458, allocations: 91.48 kB / 0.6292 GB, free: 48.14 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 52 * Number of states: 0 () * Number of discrete variables: 6 (booleanStep1[1].y,booleanStep1[2].y,booleanStep1[3].y,booleanStep2[1].y,booleanStep2[2].y,booleanStep2[3].y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (248): * Single equations (assignments): 243 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(2,100.0%) 12,(1,100.0%) 1,(3,88.9%) 25} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0006518/1.459, allocations: 241.3 kB / 0.6294 GB, free: 47.89 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009116/1.46, allocations: 276 kB / 0.6297 GB, free: 47.62 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009818/1.469, allocations: 3.637 MB / 0.6332 GB, free: 44.56 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.473e-05/1.47, allocations: 24 kB / 0.6333 GB, free: 44.54 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.453e-05/1.47, allocations: 4 kB / 0.6333 GB, free: 44.54 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.324e-05/1.47, allocations: 10.92 kB / 0.6333 GB, free: 44.54 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02264/1.492, allocations: 7.945 MB / 0.641 GB, free: 36.98 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.806e-05/1.492, allocations: 4 kB / 0.641 GB, free: 36.97 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003434/1.496, allocations: 399.8 kB / 0.6414 GB, free: 36.58 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003735/1.5, allocations: 0.8047 MB / 0.6422 GB, free: 35.76 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005051/1.5, allocations: 55.98 kB / 0.6423 GB, free: 35.71 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01504/1.515, allocations: 10.21 MB / 0.6522 GB, free: 24.98 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.042e-06/1.515, allocations: 7.938 kB / 0.6522 GB, free: 24.97 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01318/1.528, allocations: 5.62 MB / 0.6577 GB, free: 19.22 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002555/1.531, allocations: 0.6459 MB / 0.6583 GB, free: 18.55 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001094/1.532, allocations: 55.94 kB / 0.6584 GB, free: 18.5 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003267/1.535, allocations: 131.1 kB / 0.6585 GB, free: 18.37 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008269/1.536, allocations: 173.7 kB / 0.6587 GB, free: 18.2 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002528/1.537, allocations: 63.97 kB / 0.6588 GB, free: 18.14 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.004117/1.541, allocations: 1.683 MB / 0.6604 GB, free: 16.44 MB / 410.7 MB Notification: Performance of sort global known variables: time 8.72e-07/1.541, allocations: 0 / 0.6604 GB, free: 16.44 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.004448/1.545, allocations: 0.836 MB / 0.6612 GB, free: 15.6 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * Number of states: 9 (aimc.i_0_s,aimc.idq_sr[1],aimc.idq_sr[2],aimc.idq_rr[1],aimc.idq_rr[2],transformer.l1sigma.inductor[2].i,transformer.l1sigma.inductor[3].i,loadInertia.w,quadraticLoadTorque.phi) * Number of discrete variables: 6 (booleanStep1[1].y,booleanStep1[2].y,booleanStep1[3].y,booleanStep2[1].y,booleanStep2[2].y,booleanStep2[3].y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (178): * Single equations (assignments): 173 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(2,100.0%) 12,(1,100.0%) 1,(3,88.9%) 25,(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01454/1.56, allocations: 7.117 MB / 0.6682 GB, free: 8.402 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.009108/1.569, allocations: 3.776 MB / 0.6719 GB, free: 4.559 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.091e-05/1.569, allocations: 4 kB / 0.6719 GB, free: 4.555 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.006107/1.575, allocations: 2.436 MB / 0.6742 GB, free: 2.043 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00626/1.581, allocations: 0.7395 MB / 0.675 GB, free: 1.328 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02481/1.606, allocations: 7.449 MB / 0.6822 GB, free: 9.863 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005531/1.612, allocations: 2.796 MB / 0.685 GB, free: 7.043 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004076/1.616, allocations: 1.405 MB / 0.6863 GB, free: 5.637 MB / 426.7 MB Notification: Performance of SimCode: time 1.793e-06/1.616, allocations: 0 / 0.6863 GB, free: 5.637 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.157/6.773, allocations: 155.2 MB / 0.8379 GB, free: 11.68 MB / 442.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.Transformers.AIMC_Transformer.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.Transformers.AIMC_Transformer.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.Transformers.AIMC_Transformer.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.Transformers.AIMC_Transformer.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.Transformers.AIMC_Transformer_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Electrical_Machines_Examples_Transformers_AIMC_Transformer_fmu --startTime=0 --stopTime=2.5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Electrical_Machines_Examples_Transformers_AIMC_Transformer.fmu > Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.Transformers.AIMC_Transformer.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.Transformers.AIMC_Transformer_res.mat does not exist to compare? outputFormat=mat