Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.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.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Transformer,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMC_Transformer",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Transformer,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_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.001094/0.001094, allocations: 179.6 kB / 17.01 MB, free: 5.121 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.362/1.362, allocations: 205.4 MB / 223.1 MB, free: 9.129 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.0009122/0.0009121, allocations: 92.09 kB / 271.5 MB, free: 8.375 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000249/0.0002491, allocations: 8 kB / 328.4 MB, free: 15.43 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2463/0.2465, allocations: 47.57 MB / 375.9 MB, free: 45.61 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1328/0.3794, allocations: 118.2 MB / 494.1 MB, free: 10.41 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002986/0.3798, allocations: 91.95 kB / 494.2 MB, free: 10.32 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4209/0.8007, allocations: 132.8 MB / 0.6123 GB, free: 3.699 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.773e-06/0.8008, allocations: 3.938 kB / 0.6123 GB, free: 3.695 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0003089/0.8011, allocations: 127.9 kB / 0.6124 GB, free: 3.57 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: 1287 * Number of variables: 1287 Notification: Performance of Generate backend data structure: time 0.01215/0.8132, allocations: 5.274 MB / 0.6176 GB, free: 14.21 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.891e-05/0.8133, allocations: 16.02 kB / 0.6176 GB, free: 14.2 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001645/0.8149, allocations: 0.6826 MB / 0.6183 GB, free: 13.51 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004327/0.8193, allocations: 0.9812 MB / 0.6192 GB, free: 12.52 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01186/0.8312, allocations: 4.5 MB / 0.6236 GB, free: 7.941 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003221/0.8315, allocations: 369.7 kB / 0.624 GB, free: 7.578 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00124/0.8328, allocations: 487.9 kB / 0.6244 GB, free: 7.102 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01395/0.8467, allocations: 6.731 MB / 0.631 GB, free: 184 kB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001175/0.8469, allocations: 3.938 kB / 0.631 GB, free: 180 kB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005582/0.8475, allocations: 208.1 kB / 0.6312 GB, free: 15.97 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002385/0.8477, allocations: 237.8 kB / 0.6314 GB, free: 15.73 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00979/0.8575, allocations: 5.586 MB / 0.6369 GB, free: 10.14 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2231/1.081, allocations: 21 MB / 0.6574 GB, free: 42.9 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007133/1.088, allocations: 9.934 MB / 0.6671 GB, free: 36.27 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008403/1.096, allocations: 5.48 MB / 0.6725 GB, free: 35.55 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.66e-05/1.096, allocations: 58 kB / 0.6725 GB, free: 35.51 MB / 410.7 MB Notification: Performance of pre-optimization done (n=227): time 3.647e-06/1.096, allocations: 0 / 0.6725 GB, free: 35.51 MB / 410.7 MB Notification: Performance of matching and sorting (n=234): time 0.01582/1.112, allocations: 10.03 MB / 0.6823 GB, free: 33.38 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.013e-05/1.112, allocations: 75.44 kB / 0.6824 GB, free: 33.32 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003556/1.116, allocations: 2.641 MB / 0.6849 GB, free: 33.09 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001799/1.116, allocations: 67.42 kB / 0.685 GB, free: 33.06 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001219/1.117, allocations: 2.147 MB / 0.6871 GB, free: 32.41 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005224/1.118, allocations: 0.7833 MB / 0.6879 GB, free: 31.99 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001363/1.118, allocations: 51.5 kB / 0.6879 GB, free: 31.99 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001286/1.118, allocations: 419.1 kB / 0.6883 GB, free: 31.68 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001877/1.12, allocations: 1.302 MB / 0.6896 GB, free: 31.68 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002091/1.122, allocations: 1.867 MB / 0.6914 GB, free: 31.06 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002179/1.124, allocations: 1.604 MB / 0.693 GB, free: 31.02 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.101e-05/1.124, allocations: 6.406 kB / 0.693 GB, free: 31.02 MB / 410.7 MB Notification: Performance of matching and sorting (n=327) (initialization): time 0.005798/1.13, allocations: 4.247 MB / 0.6971 GB, free: 30.59 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.562e-05/1.13, allocations: 13.84 kB / 0.6972 GB, free: 30.59 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.303e-05/1.13, allocations: 15.41 kB / 0.6972 GB, free: 30.59 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001394/1.131, allocations: 0.6547 MB / 0.6978 GB, free: 30.54 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00205/1.134, allocations: 0.5644 MB / 0.6984 GB, free: 30.54 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007743/1.141, allocations: 10.22 MB / 0.7083 GB, free: 25.22 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002245/1.144, allocations: 116.3 kB / 0.7084 GB, free: 25.21 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002076/1.144, allocations: 100.2 kB / 0.7085 GB, free: 25.21 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 73 * 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 (277): * Single equations (assignments): 272 * 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 {(3,100.0%) 25,(1,100.0%) 8,(1,100.0%) 1,(1,100.0%) 13} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002454/1.146, allocations: 1.614 MB / 0.7101 GB, free: 25.09 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000535/1.147, allocations: 311.5 kB / 0.7104 GB, free: 24.93 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005382/1.152, allocations: 4.006 MB / 0.7143 GB, free: 23.73 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.263e-05/1.152, allocations: 22.41 kB / 0.7143 GB, free: 23.73 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.61e-05/1.152, allocations: 11.06 kB / 0.7144 GB, free: 23.73 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.928e-05/1.152, allocations: 14.72 kB / 0.7144 GB, free: 23.73 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01236/1.165, allocations: 8.712 MB / 0.7229 GB, free: 20.01 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.989e-06/1.165, allocations: 3.375 kB / 0.7229 GB, free: 20.01 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001632/1.166, allocations: 356.6 kB / 0.7232 GB, free: 20 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002021/1.168, allocations: 0.823 MB / 0.724 GB, free: 19.75 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001888/1.169, allocations: 62.27 kB / 0.7241 GB, free: 19.71 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01105/1.18, allocations: 14.68 MB / 0.7384 GB, free: 8.391 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.897e-06/1.18, allocations: 11.16 kB / 0.7384 GB, free: 8.391 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00782/1.187, allocations: 6.006 MB / 0.7443 GB, free: 5.547 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001846/1.189, allocations: 0.706 MB / 0.745 GB, free: 5.098 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003894/1.19, allocations: 54.27 kB / 0.745 GB, free: 5.062 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001347/1.191, allocations: 124.9 kB / 0.7452 GB, free: 5.035 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004051/1.192, allocations: 195.1 kB / 0.7453 GB, free: 5.004 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001464/1.192, allocations: 64.98 kB / 0.7454 GB, free: 4.992 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.002742/1.194, allocations: 2.037 MB / 0.7474 GB, free: 4.215 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.3e-07/1.194, allocations: 0 / 0.7474 GB, free: 4.215 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.00289/1.197, allocations: 0.9867 MB / 0.7484 GB, free: 4.117 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 9 (aimc.stator.core.Phi.re,aimc.stator.core.Phi.im,aimc.stator.zeroInductor.i0,aimc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.re,aimc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.im,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 (164): * Single equations (assignments): 158 * 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: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 6 {(1,100.0%) 8,(3,88.9%) 25,(1,100.0%) 8,(1,100.0%) 1,(1,100.0%) 13,(2,100.0%) 12} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.007599/1.205, allocations: 7.387 MB / 0.7556 GB, free: 268 kB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.005625/1.211, allocations: 4 MB / 0.7595 GB, free: 14.64 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 3.837e-06/1.211, allocations: 1.438 kB / 0.7595 GB, free: 14.64 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003526/1.214, allocations: 2.695 MB / 0.7621 GB, free: 13.2 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003267/1.217, allocations: 0.8566 MB / 0.763 GB, free: 13 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06143/1.279, allocations: 40.17 MB / 0.8022 GB, free: 9.527 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004582/1.283, allocations: 3.524 MB / 0.8056 GB, free: 6.844 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.002751/1.286, allocations: 0.745 MB / 0.8064 GB, free: 6.32 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002154/1.288, allocations: 1.819 MB / 0.8081 GB, free: 4.633 MB / 458.7 MB Notification: Performance of SimCode: time 5.81e-07/1.288, allocations: 4 kB / 0.8081 GB, free: 4.629 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2952/1.584, allocations: 86.66 MB / 0.8928 GB, free: 80.68 MB / 458.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001587/1.584, allocations: 231.2 kB / 0.893 GB, free: 80.43 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.104/5.688, allocations: 4 kB / 0.893 GB, free: 80.43 MB / 458.7 MB (rm -f Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Transformer.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Transformer.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Transformer.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Transformer.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Transformer_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMC_Transformer_fmu --startTime=0 --stopTime=2.5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMC_Transformer.fmu > Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Transformer.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Transformer_res.mat does not exist to compare? outputFormat=mat