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.001736/0.001736, allocations: 178.4 kB / 8.698 MB, free: 388 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.902/1.902, allocations: 205.3 MB / 214.4 MB, free: 1.727 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009585/0.0009587, allocations: 78.72 kB / 262.4 MB, free: 1.676 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 2.348e-05/2.324e-05, allocations: 4 kB / 315.6 MB, free: 22.61 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09837/0.09841, allocations: 47.58 MB / 363.2 MB, free: 6.969 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4012/0.4996, allocations: 117.6 MB / 480.8 MB, free: 10.54 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002464/0.4999, allocations: 87.39 kB / 480.9 MB, free: 10.5 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5889/1.089, allocations: 131.3 MB / 0.5979 GB, free: 85.41 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.543e-06/1.089, allocations: 0 / 0.5979 GB, free: 85.41 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0004363/1.089, allocations: 127.8 kB / 0.598 GB, free: 85.39 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: 1287 * Number of variables: 1287 Notification: Performance of Generate backend data structure: time 0.01808/1.107, allocations: 4.774 MB / 0.6027 GB, free: 82.39 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.853e-05/1.108, allocations: 9.438 kB / 0.6027 GB, free: 82.39 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007119/1.115, allocations: 0.9796 MB / 0.6036 GB, free: 81.74 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01384/1.129, allocations: 4.471 MB / 0.608 GB, free: 77.27 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003553/1.129, allocations: 164 kB / 0.6082 GB, free: 77.11 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002334/1.131, allocations: 291.9 kB / 0.6084 GB, free: 76.83 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01379/1.145, allocations: 5.108 MB / 0.6134 GB, free: 71.71 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02069/1.166, allocations: 5.896 MB / 0.6192 GB, free: 65.64 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002799/1.166, allocations: 7.906 kB / 0.6192 GB, free: 65.63 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002015/1.168, allocations: 4 kB / 0.6192 GB, free: 65.62 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002619/1.169, allocations: 241.8 kB / 0.6194 GB, free: 65.39 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0462/1.215, allocations: 20.02 MB / 0.639 GB, free: 45.13 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009103/1.224, allocations: 9.701 MB / 0.6484 GB, free: 34.4 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004023/1.228, allocations: 2.306 MB / 0.6507 GB, free: 32.09 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01377/1.242, allocations: 6.309 MB / 0.6569 GB, free: 25.74 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.798e-05/1.242, allocations: 56.56 kB / 0.6569 GB, free: 25.67 MB / 410.7 MB Notification: Performance of pre-optimization done (n=217): time 5.661e-06/1.242, allocations: 0 / 0.6569 GB, free: 25.67 MB / 410.7 MB Notification: Performance of matching and sorting (n=224): time 0.01523/1.257, allocations: 7.241 MB / 0.664 GB, free: 18.35 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.89e-05/1.257, allocations: 77.36 kB / 0.6641 GB, free: 18.26 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006055/1.263, allocations: 2.103 MB / 0.6661 GB, free: 16.14 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006573/1.264, allocations: 25.7 kB / 0.6661 GB, free: 16.11 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001771/1.266, allocations: 2.169 MB / 0.6683 GB, free: 13.92 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001233/1.267, allocations: 0.7197 MB / 0.669 GB, free: 13.19 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004272/1.267, allocations: 0 / 0.669 GB, free: 13.19 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0002778/1.268, allocations: 403 kB / 0.6693 GB, free: 12.79 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002142/1.27, allocations: 1.157 MB / 0.6705 GB, free: 11.63 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002208/1.272, allocations: 1.721 MB / 0.6721 GB, free: 9.668 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002944/1.275, allocations: 1.583 MB / 0.6737 GB, free: 8.086 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.857e-05/1.275, allocations: 7.938 kB / 0.6737 GB, free: 8.078 MB / 410.7 MB Notification: Performance of matching and sorting (n=319) (initialization): time 0.007161/1.282, allocations: 3.874 MB / 0.6775 GB, free: 4.16 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.708e-05/1.282, allocations: 12 kB / 0.6775 GB, free: 4.148 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.271e-05/1.282, allocations: 20.27 kB / 0.6775 GB, free: 4.129 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00168/1.284, allocations: 0.6475 MB / 0.6781 GB, free: 3.469 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002216/1.286, allocations: 0.5499 MB / 0.6787 GB, free: 2.918 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.3417/1.628, allocations: 9.601 MB / 0.6881 GB, free: 73.3 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003553/1.632, allocations: 58.55 kB / 0.6881 GB, free: 73.3 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008408/1.633, allocations: 96.91 kB / 0.6882 GB, free: 73.3 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 75 * 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 (269): * Single equations (assignments): 264 * 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 {(1,100.0%) 1,(1,100.0%) 8,(3,88.9%) 25,(1,100.0%) 13} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001391/1.634, allocations: 169.3 kB / 0.6884 GB, free: 73.2 MB / 410.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.00999/1.644, allocations: 3.461 MB / 0.6918 GB, free: 72.86 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00124/1.645, allocations: 281.3 kB / 0.692 GB, free: 72.86 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009053/1.654, allocations: 3.675 MB / 0.6956 GB, free: 72.47 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.272e-05/1.654, allocations: 22.09 kB / 0.6956 GB, free: 72.47 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.995e-05/1.655, allocations: 13.56 kB / 0.6956 GB, free: 72.47 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.941e-05/1.655, allocations: 8.484 kB / 0.6957 GB, free: 72.47 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0205/1.675, allocations: 7.673 MB / 0.7031 GB, free: 71.79 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.081e-05/1.675, allocations: 2.156 kB / 0.7031 GB, free: 71.79 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001843/1.677, allocations: 342.2 kB / 0.7035 GB, free: 71.79 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00246/1.679, allocations: 0.8052 MB / 0.7043 GB, free: 71.74 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003676/1.68, allocations: 25.08 kB / 0.7043 GB, free: 71.74 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01427/1.694, allocations: 13.85 MB / 0.7178 GB, free: 64.24 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.041e-05/1.694, allocations: 8.25 kB / 0.7178 GB, free: 64.24 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01051/1.705, allocations: 5.551 MB / 0.7232 GB, free: 63.05 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002256/1.707, allocations: 0.648 MB / 0.7239 GB, free: 62.64 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001383/1.708, allocations: 22.17 kB / 0.7239 GB, free: 62.64 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002529/1.711, allocations: 87.41 kB / 0.724 GB, free: 62.64 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006648/1.712, allocations: 183.5 kB / 0.7241 GB, free: 62.61 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002714/1.712, allocations: 63.58 kB / 0.7242 GB, free: 62.6 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.004152/1.716, allocations: 1.577 MB / 0.7257 GB, free: 61.94 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.51e-07/1.716, allocations: 0 / 0.7257 GB, free: 61.94 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.005511/1.722, allocations: 0.8518 MB / 0.7266 GB, free: 61.93 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 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (154): * Single equations (assignments): 148 * 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 {(3,88.9%) 25,(1,100.0%) 8,(1,100.0%) 1,(1,100.0%) 8,(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.01047/1.732, allocations: 6.922 MB / 0.7333 GB, free: 58.29 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.006028/1.738, allocations: 3.566 MB / 0.7368 GB, free: 56.63 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.099e-05/1.738, allocations: 3.25 kB / 0.7368 GB, free: 56.63 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003984/1.742, allocations: 2.443 MB / 0.7392 GB, free: 55.3 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005049/1.747, allocations: 0.6153 MB / 0.7398 GB, free: 55.16 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02614/1.774, allocations: 8.845 MB / 0.7485 GB, free: 51.84 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005435/1.779, allocations: 3.511 MB / 0.7519 GB, free: 50.5 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.003369/1.783, allocations: 0.6829 MB / 0.7525 GB, free: 50.43 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003106/1.786, allocations: 1.818 MB / 0.7543 GB, free: 48.89 MB / 410.7 MB Notification: Performance of SimCode: time 1.342e-06/1.786, allocations: 0 / 0.7543 GB, free: 48.89 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.134/1.92, allocations: 71.15 MB / 0.8238 GB, free: 9.281 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002193/1.92, allocations: 161.9 kB / 0.824 GB, free: 9.094 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.362/6.282, allocations: 0 / 0.824 GB, free: 9.094 MB / 426.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