Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD.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_YD,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMC_YD",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMC_YD",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.0009338/0.0009338, allocations: 179.8 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.311/1.311, allocations: 205.4 MB / 223.1 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.0008003/0.0008002, allocations: 88.16 kB / 271.5 MB, free: 8.371 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002517/0.0002517, allocations: 12 kB / 328.3 MB, free: 15.43 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2405/0.2408, allocations: 47.57 MB / 375.9 MB, free: 45.64 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1281/0.3689, allocations: 110.4 MB / 486.3 MB, free: 2.164 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002388/0.3692, allocations: 95.94 kB / 486.4 MB, free: 2.07 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.379/0.7483, allocations: 88.21 MB / 0.5612 GB, free: 55.45 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.245e-06/0.7483, allocations: 0 / 0.5612 GB, free: 55.45 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0002454/0.7486, allocations: 91.94 kB / 0.5613 GB, free: 55.36 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: 945 * Number of variables: 945 Notification: Performance of Generate backend data structure: time 0.009198/0.7578, allocations: 4.062 MB / 0.5652 GB, free: 51.23 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.093e-05/0.7578, allocations: 11.97 kB / 0.5652 GB, free: 51.22 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001188/0.759, allocations: 0.506 MB / 0.5657 GB, free: 50.7 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0037/0.7627, allocations: 0.7952 MB / 0.5665 GB, free: 49.9 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007358/0.7701, allocations: 3.692 MB / 0.5701 GB, free: 46.16 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001497/0.7703, allocations: 271.2 kB / 0.5704 GB, free: 45.89 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004996/0.7708, allocations: 356 kB / 0.5707 GB, free: 45.54 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007109/0.7779, allocations: 4.953 MB / 0.5756 GB, free: 40.46 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.929e-05/0.778, allocations: 11.84 kB / 0.5756 GB, free: 40.45 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003194/0.7783, allocations: 156 kB / 0.5757 GB, free: 40.3 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001112/0.7784, allocations: 155.1 kB / 0.5759 GB, free: 40.14 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005838/0.7843, allocations: 4.163 MB / 0.5799 GB, free: 35.98 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02005/0.8043, allocations: 15.98 MB / 0.5955 GB, free: 19.63 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005479/0.8099, allocations: 7.79 MB / 0.6031 GB, free: 10.95 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006133/0.816, allocations: 4.066 MB / 0.6071 GB, free: 6.793 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.765e-05/0.8161, allocations: 52.56 kB / 0.6072 GB, free: 6.734 MB / 378.7 MB Notification: Performance of pre-optimization done (n=167): time 2.945e-06/0.8161, allocations: 0 / 0.6072 GB, free: 6.734 MB / 378.7 MB Notification: Performance of matching and sorting (n=170): time 0.0146/0.8307, allocations: 8.242 MB / 0.6152 GB, free: 14.29 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.478e-05/0.8308, allocations: 73.41 kB / 0.6153 GB, free: 14.2 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002785/0.8336, allocations: 1.898 MB / 0.6171 GB, free: 12.27 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000123/0.8337, allocations: 53.7 kB / 0.6172 GB, free: 12.21 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001137/0.8348, allocations: 1.604 MB / 0.6187 GB, free: 10.59 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004549/0.8353, allocations: 0.5661 MB / 0.6193 GB, free: 10.02 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000101/0.8354, allocations: 36 kB / 0.6193 GB, free: 9.98 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001821/0.8356, allocations: 381.9 kB / 0.6197 GB, free: 9.602 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001531/0.8371, allocations: 0.9526 MB / 0.6206 GB, free: 8.648 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001745/0.8389, allocations: 1.419 MB / 0.622 GB, free: 7.039 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001778/0.8407, allocations: 1.169 MB / 0.6232 GB, free: 5.875 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.704e-06/0.8407, allocations: 8 kB / 0.6232 GB, free: 5.867 MB / 394.7 MB Notification: Performance of matching and sorting (n=243) (initialization): time 0.005374/0.8461, allocations: 3.343 MB / 0.6264 GB, free: 2.48 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.339e-05/0.8461, allocations: 12 kB / 0.6264 GB, free: 2.469 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.886e-05/0.8462, allocations: 12 kB / 0.6265 GB, free: 2.457 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001734/0.8479, allocations: 0.7366 MB / 0.6272 GB, free: 1.707 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00143/0.8493, allocations: 383.4 kB / 0.6275 GB, free: 1.332 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01094/0.8603, allocations: 10.63 MB / 0.6379 GB, free: 6.168 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001897/0.8622, allocations: 100.1 kB / 0.638 GB, free: 6.07 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001835/0.8624, allocations: 75.98 kB / 0.6381 GB, free: 5.996 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 61 * Number of states: 0 () * Number of discrete variables: 6 (booleanStep[1].y,booleanStep[2].y,booleanStep[3].y,booleanStepYD[1].y,booleanStepYD[2].y,booleanStepYD[3].y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (193): * Single equations (assignments): 188 * 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%) 8,(9,33.3%) 19,(1,100.0%) 1,(1,100.0%) 13} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002297/0.8647, allocations: 1.208 MB / 0.6393 GB, free: 4.777 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004691/0.8652, allocations: 233.2 kB / 0.6395 GB, free: 4.547 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005349/0.8706, allocations: 3.25 MB / 0.6427 GB, free: 1.23 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.598e-05/0.8706, allocations: 16 kB / 0.6427 GB, free: 1.215 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.932e-05/0.8706, allocations: 16 kB / 0.6427 GB, free: 1.199 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.627e-05/0.8707, allocations: 7.969 kB / 0.6427 GB, free: 1.191 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2251/1.096, allocations: 6.667 MB / 0.6492 GB, free: 86.39 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.426e-06/1.096, allocations: 6.266 kB / 0.6492 GB, free: 86.39 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008289/1.097, allocations: 192.6 kB / 0.6494 GB, free: 86.39 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001981/1.099, allocations: 0.9071 MB / 0.6503 GB, free: 86.34 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001135/1.099, allocations: 45.33 kB / 0.6503 GB, free: 86.34 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01233/1.111, allocations: 15.11 MB / 0.6651 GB, free: 78.48 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.064e-06/1.111, allocations: 0 / 0.6651 GB, free: 78.48 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006377/1.118, allocations: 4.732 MB / 0.6697 GB, free: 77.82 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001362/1.119, allocations: 0.5296 MB / 0.6702 GB, free: 77.73 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002801/1.119, allocations: 40.66 kB / 0.6703 GB, free: 77.73 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009732/1.12, allocations: 90.83 kB / 0.6703 GB, free: 77.73 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004526/1.121, allocations: 157.2 kB / 0.6705 GB, free: 77.73 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001425/1.121, allocations: 46.41 kB / 0.6705 GB, free: 77.73 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.002241/1.123, allocations: 1.462 MB / 0.672 GB, free: 77.58 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.61e-07/1.123, allocations: 2.438 kB / 0.672 GB, free: 77.58 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.00253/1.126, allocations: 0.7338 MB / 0.6727 GB, free: 77.58 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 7 (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,loadInertia.w,quadraticLoadTorque.phi) * Number of discrete variables: 6 (booleanStep[1].y,booleanStep[2].y,booleanStep[3].y,booleanStepYD[1].y,booleanStepYD[2].y,booleanStepYD[3].y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (100): * Single equations (assignments): 94 * 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%) 13,(1,100.0%) 1,(1,100.0%) 8,(9,33.3%) 19,(1,100.0%) 8,(2,100.0%) 12} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.007209/1.133, allocations: 5.927 MB / 0.6785 GB, free: 76.04 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.004899/1.138, allocations: 3.166 MB / 0.6816 GB, free: 75.39 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 6.232e-06/1.138, allocations: 1.312 kB / 0.6816 GB, free: 75.39 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003391/1.141, allocations: 2.299 MB / 0.6838 GB, free: 74.17 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00266/1.144, allocations: 0.5989 MB / 0.6844 GB, free: 74.02 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03203/1.176, allocations: 29.47 MB / 0.7132 GB, free: 53.52 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002155/1.178, allocations: 2.751 MB / 0.7159 GB, free: 52.36 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0017/1.18, allocations: 478.3 kB / 0.7163 GB, free: 52.3 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001295/1.181, allocations: 1.324 MB / 0.7176 GB, free: 51.19 MB / 410.7 MB Notification: Performance of SimCode: time 8.42e-07/1.181, allocations: 0 / 0.7176 GB, free: 51.19 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08473/1.266, allocations: 64.75 MB / 0.7808 GB, free: 15.12 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002102/1.266, allocations: 216.9 kB / 0.7811 GB, free: 14.88 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.43/4.697, allocations: 2.344 kB / 0.7811 GB, free: 14.88 MB / 426.7 MB (rm -f Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMC_YD_fmu --startTime=0 --stopTime=2.5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMC_YD.fmu > Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD_res.mat does not exist to compare? outputFormat=mat