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.001558/0.001557, allocations: 187.6 kB / 16.41 MB, free: 5.723 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.968/1.968, allocations: 205.4 MB / 222.5 MB, free: 9.121 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.001161/0.001161, allocations: 95.53 kB / 270.9 MB, free: 8.371 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003925/0.0003925, allocations: 8 kB / 327.1 MB, free: 100 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3322/0.3326, allocations: 47.56 MB / 374.6 MB, free: 45.41 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1806/0.5133, allocations: 111.8 MB / 486.5 MB, free: 0.8516 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002943/0.5137, allocations: 91.95 kB / 486.6 MB, free: 0.7617 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6084/1.122, allocations: 93.34 MB / 0.5663 GB, free: 49.46 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.855e-06/1.122, allocations: 0 / 0.5663 GB, free: 49.46 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0004317/1.123, allocations: 95.88 kB / 0.5664 GB, free: 49.37 MB / 378.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.01532/1.138, allocations: 3.955 MB / 0.5703 GB, free: 45.34 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.199e-05/1.138, allocations: 12.03 kB / 0.5703 GB, free: 45.33 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002231/1.14, allocations: 0.5018 MB / 0.5708 GB, free: 44.82 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002838/1.143, allocations: 0.5063 MB / 0.5713 GB, free: 44.31 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008501/1.152, allocations: 2.56 MB / 0.5738 GB, free: 41.7 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003474/1.152, allocations: 270.9 kB / 0.574 GB, free: 41.43 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001586/1.154, allocations: 351.9 kB / 0.5743 GB, free: 41.09 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0151/1.169, allocations: 4.936 MB / 0.5792 GB, free: 36 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002097/1.169, allocations: 20.22 kB / 0.5792 GB, free: 35.98 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008379/1.17, allocations: 155.9 kB / 0.5793 GB, free: 35.83 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002151/1.17, allocations: 175.1 kB / 0.5795 GB, free: 35.66 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0128/1.183, allocations: 4.057 MB / 0.5835 GB, free: 31.59 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03863/1.222, allocations: 14.95 MB / 0.5981 GB, free: 16.31 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006745/1.228, allocations: 4.223 MB / 0.6022 GB, free: 11.79 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0006128/1.229, allocations: 151 kB / 0.6023 GB, free: 11.63 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.289e-05/1.229, allocations: 52.56 kB / 0.6024 GB, free: 11.57 MB / 378.7 MB Notification: Performance of pre-optimization done (n=201): time 4.979e-06/1.229, allocations: 0 / 0.6024 GB, free: 11.57 MB / 378.7 MB Notification: Performance of matching and sorting (n=221): time 0.03498/1.264, allocations: 10.18 MB / 0.6123 GB, free: 1.285 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.985e-05/1.264, allocations: 73.41 kB / 0.6124 GB, free: 1.199 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005792/1.27, allocations: 2.221 MB / 0.6146 GB, free: 14.96 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005673/1.271, allocations: 61.7 kB / 0.6146 GB, free: 14.89 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001757/1.272, allocations: 1.483 MB / 0.6161 GB, free: 13.39 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001291/1.274, allocations: 0.7315 MB / 0.6168 GB, free: 12.65 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002913/1.274, allocations: 52 kB / 0.6168 GB, free: 12.6 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0002708/1.274, allocations: 399.4 kB / 0.6172 GB, free: 12.2 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003785/1.278, allocations: 1.312 MB / 0.6185 GB, free: 10.89 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004322/1.282, allocations: 1.729 MB / 0.6202 GB, free: 8.984 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004401/1.287, allocations: 1.552 MB / 0.6217 GB, free: 7.434 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.206e-05/1.287, allocations: 0 / 0.6217 GB, free: 7.434 MB / 394.7 MB Notification: Performance of matching and sorting (n=291) (initialization): time 0.01196/1.299, allocations: 3.886 MB / 0.6255 GB, free: 3.523 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.418e-05/1.299, allocations: 8.938 kB / 0.6255 GB, free: 3.516 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.585e-05/1.299, allocations: 12 kB / 0.6255 GB, free: 3.504 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003513/1.303, allocations: 0.7583 MB / 0.6263 GB, free: 2.73 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00445/1.307, allocations: 0.5266 MB / 0.6268 GB, free: 2.203 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0171/1.324, allocations: 8.947 MB / 0.6355 GB, free: 8.855 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003381/1.328, allocations: 127.9 kB / 0.6356 GB, free: 8.73 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003981/1.328, allocations: 91.98 kB / 0.6357 GB, free: 8.641 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 () * Number of clocked 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.003667/1.332, allocations: 1.208 MB / 0.6369 GB, free: 7.422 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00102/1.333, allocations: 276.6 kB / 0.6372 GB, free: 7.148 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01172/1.345, allocations: 3.777 MB / 0.6408 GB, free: 3.336 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.8e-05/1.345, allocations: 24 kB / 0.6409 GB, free: 3.312 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.624e-05/1.345, allocations: 7.938 kB / 0.6409 GB, free: 3.305 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.8e-05/1.345, allocations: 11.97 kB / 0.6409 GB, free: 3.293 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3163/1.661, allocations: 8.065 MB / 0.6488 GB, free: 81.26 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.204e-05/1.661, allocations: 7.75 kB / 0.6488 GB, free: 81.26 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003365/1.664, allocations: 392.2 kB / 0.6491 GB, free: 81.26 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003718/1.668, allocations: 0.814 MB / 0.6499 GB, free: 81.22 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005093/1.669, allocations: 57.56 kB / 0.65 GB, free: 81.22 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01576/1.685, allocations: 10.47 MB / 0.6602 GB, free: 76.09 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.281e-06/1.685, allocations: 6.75 kB / 0.6602 GB, free: 76.09 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01467/1.699, allocations: 5.827 MB / 0.6659 GB, free: 75.46 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002523/1.702, allocations: 0.6433 MB / 0.6665 GB, free: 75.36 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001035/1.703, allocations: 51.67 kB / 0.6666 GB, free: 75.36 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0031/1.706, allocations: 131.5 kB / 0.6667 GB, free: 75.36 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008647/1.707, allocations: 183.7 kB / 0.6669 GB, free: 75.36 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002831/1.707, allocations: 69.55 kB / 0.667 GB, free: 75.36 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.004197/1.711, allocations: 1.701 MB / 0.6686 GB, free: 75.21 MB / 410.7 MB Notification: Performance of sort global known variables: time 6.12e-07/1.712, allocations: 0 / 0.6686 GB, free: 75.21 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.004282/1.716, allocations: 0.8372 MB / 0.6694 GB, free: 75.21 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 () * Number of clocked 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.01623/1.732, allocations: 7.356 MB / 0.6766 GB, free: 73.4 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.01109/1.743, allocations: 3.926 MB / 0.6805 GB, free: 72.77 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.215e-05/1.743, allocations: 4.688 kB / 0.6805 GB, free: 72.77 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.007139/1.75, allocations: 2.512 MB / 0.6829 GB, free: 72.18 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006268/1.757, allocations: 0.7508 MB / 0.6837 GB, free: 72.01 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06375/1.821, allocations: 31.9 MB / 0.7148 GB, free: 51.38 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004505/1.825, allocations: 2.786 MB / 0.7175 GB, free: 50.24 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003627/1.829, allocations: 1.409 MB / 0.7189 GB, free: 49.1 MB / 410.7 MB Notification: Performance of SimCode: time 1.352e-06/1.829, allocations: 5.062 kB / 0.7189 GB, free: 49.1 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.745/6.574, allocations: 155.3 MB / 0.8705 GB, free: 96.73 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