Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Steinmetz.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_Steinmetz,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMC_Steinmetz",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Steinmetz,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMC_Steinmetz",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.0009367/0.0009367, allocations: 172.2 kB / 14.1 MB, free: 1.223 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.323/1.323, allocations: 205.2 MB / 219.8 MB, free: 14.27 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.0008245/0.0008247, allocations: 94.62 kB / 268 MB, free: 14.1 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.338e-05/2.351e-05, allocations: 4 kB / 322.6 MB, free: 17.25 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07323/0.07327, allocations: 47.57 MB / 370.1 MB, free: 1.609 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2931/0.3665, allocations: 109.6 MB / 479.7 MB, free: 224 kB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002252/0.3667, allocations: 87.25 kB / 479.8 MB, free: 176 kB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3461/0.7129, allocations: 80.55 MB / 0.5472 GB, free: 90.37 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.252e-06/0.7129, allocations: 0 / 0.5472 GB, free: 90.37 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0001906/0.7131, allocations: 77.89 kB / 0.5473 GB, free: 90.36 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: 844 * Number of variables: 844 Notification: Performance of Generate backend data structure: time 0.007934/0.721, allocations: 3.205 MB / 0.5504 GB, free: 89.15 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.45e-05/0.7211, allocations: 8.5 kB / 0.5504 GB, free: 89.15 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000983/0.7221, allocations: 460 kB / 0.5508 GB, free: 89.09 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003668/0.7258, allocations: 0.7365 MB / 0.5516 GB, free: 88.89 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006691/0.7325, allocations: 3.315 MB / 0.5548 GB, free: 88.37 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001297/0.7326, allocations: 245.5 kB / 0.555 GB, free: 88.36 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004433/0.7331, allocations: 316.7 kB / 0.5553 GB, free: 88.36 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005667/0.7387, allocations: 4.141 MB / 0.5594 GB, free: 87.95 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.346e-05/0.7388, allocations: 11.72 kB / 0.5594 GB, free: 87.94 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002719/0.7391, allocations: 135.8 kB / 0.5595 GB, free: 87.94 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.38e-05/0.7392, allocations: 148.5 kB / 0.5597 GB, free: 87.93 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004451/0.7437, allocations: 3.34 MB / 0.5629 GB, free: 87.9 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01608/0.7597, allocations: 13.9 MB / 0.5765 GB, free: 81.28 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004509/0.7643, allocations: 6.603 MB / 0.5829 GB, free: 75.4 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001591/0.7659, allocations: 1.359 MB / 0.5843 GB, free: 74.88 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005452/0.7714, allocations: 3.799 MB / 0.588 GB, free: 72.79 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.585e-05/0.7714, allocations: 56.66 kB / 0.588 GB, free: 72.73 MB / 410.7 MB Notification: Performance of pre-optimization done (n=144): time 3.376e-06/0.7715, allocations: 0 / 0.588 GB, free: 72.73 MB / 410.7 MB Notification: Performance of matching and sorting (n=147): time 0.00607/0.7775, allocations: 4.334 MB / 0.5923 GB, free: 70.43 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.452e-05/0.7776, allocations: 71.88 kB / 0.5923 GB, free: 70.36 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001792/0.7794, allocations: 1.518 MB / 0.5938 GB, free: 69.75 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 7.921e-05/0.7795, allocations: 49.58 kB / 0.5939 GB, free: 69.7 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005653/0.78, allocations: 1.418 MB / 0.5952 GB, free: 68.62 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002336/0.7803, allocations: 0.5017 MB / 0.5957 GB, free: 68.23 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.449e-05/0.7804, allocations: 37.03 kB / 0.5958 GB, free: 68.2 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 7.986e-05/0.7804, allocations: 372.5 kB / 0.5961 GB, free: 67.87 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008083/0.7813, allocations: 0.6676 MB / 0.5968 GB, free: 67.6 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009618/0.7822, allocations: 1.138 MB / 0.5979 GB, free: 66.75 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001001/0.7832, allocations: 0.8835 MB / 0.5988 GB, free: 66.38 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.071e-06/0.7833, allocations: 3.688 kB / 0.5988 GB, free: 66.38 MB / 410.7 MB Notification: Performance of matching and sorting (n=225) (initialization): time 0.003045/0.7863, allocations: 2.517 MB / 0.6012 GB, free: 65.26 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.135e-05/0.7863, allocations: 9.531 kB / 0.6012 GB, free: 65.26 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.65e-05/0.7864, allocations: 15.53 kB / 0.6012 GB, free: 65.26 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007324/0.7871, allocations: 382.4 kB / 0.6016 GB, free: 65.12 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001233/0.7883, allocations: 389.2 kB / 0.602 GB, free: 65.08 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004984/0.7933, allocations: 7.851 MB / 0.6096 GB, free: 58.41 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001321/0.7947, allocations: 78.11 kB / 0.6097 GB, free: 58.38 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001062/0.7948, allocations: 70.42 kB / 0.6098 GB, free: 58.37 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 64 * Number of states: 0 () * Number of discrete variables: 2 (booleanStep.y,greaterThreshold.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (192): * Single equations (assignments): 187 * 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%) 7,(3,100.0%) 9,(1,100.0%) 13} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002454/0.7951, allocations: 212.6 kB / 0.61 GB, free: 58.18 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002079/0.7953, allocations: 198.4 kB / 0.6102 GB, free: 58.07 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003263/0.7985, allocations: 2.345 MB / 0.6125 GB, free: 56.92 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.476e-06/0.7986, allocations: 21.19 kB / 0.6125 GB, free: 56.92 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.326e-06/0.7986, allocations: 7.531 kB / 0.6125 GB, free: 56.92 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.1e-05/0.7986, allocations: 6.281 kB / 0.6125 GB, free: 56.92 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006414/0.805, allocations: 5.183 MB / 0.6176 GB, free: 54.14 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.209e-06/0.805, allocations: 4 kB / 0.6176 GB, free: 54.14 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007861/0.8058, allocations: 195.2 kB / 0.6177 GB, free: 53.98 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001105/0.8069, allocations: 0.5501 MB / 0.6183 GB, free: 53.51 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.592e-05/0.807, allocations: 39.8 kB / 0.6183 GB, free: 53.47 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008012/0.8151, allocations: 12.23 MB / 0.6303 GB, free: 41.14 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.284e-06/0.8151, allocations: 0 / 0.6303 GB, free: 41.14 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004081/0.8192, allocations: 3.399 MB / 0.6336 GB, free: 37.92 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007955/0.82, allocations: 432.2 kB / 0.634 GB, free: 37.52 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002199/0.8202, allocations: 39.8 kB / 0.634 GB, free: 37.48 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008161/0.8211, allocations: 66.78 kB / 0.6341 GB, free: 37.43 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002475/0.8213, allocations: 118 kB / 0.6342 GB, free: 37.36 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.795e-05/0.8214, allocations: 47.75 kB / 0.6343 GB, free: 37.31 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.001445/0.8228, allocations: 1.158 MB / 0.6354 GB, free: 36.27 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.7e-07/0.8229, allocations: 0 / 0.6354 GB, free: 36.27 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.001953/0.8248, allocations: 0.625 MB / 0.636 GB, free: 35.64 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 9 (aimc.inertiaRotor.w,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,quadraticLoadTorque.phi,cRun.v,cStart.v) * Number of discrete variables: 2 (booleanStep.y,greaterThreshold.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (94): * Single equations (assignments): 88 * 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%) 1,(1,100.0%) 7,(1,100.0%) 13,(3,100.0%) 9,(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.004282/0.8291, allocations: 4.624 MB / 0.6405 GB, free: 31.26 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.002648/0.8318, allocations: 2.352 MB / 0.6428 GB, free: 28.98 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.715e-06/0.8318, allocations: 4.125 kB / 0.6428 GB, free: 28.98 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001814/0.8336, allocations: 1.773 MB / 0.6445 GB, free: 27.25 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001918/0.8355, allocations: 0.5019 MB / 0.645 GB, free: 26.86 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007651/0.8432, allocations: 5.631 MB / 0.6505 GB, free: 21.92 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001449/0.8447, allocations: 2.377 MB / 0.6529 GB, free: 20.04 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.001188/0.8459, allocations: 394.5 kB / 0.6532 GB, free: 19.77 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001096/0.847, allocations: 1.137 MB / 0.6543 GB, free: 18.72 MB / 410.7 MB Notification: Performance of SimCode: time 5.71e-07/0.847, allocations: 0 / 0.6543 GB, free: 18.72 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2439/1.091, allocations: 54.07 MB / 0.7071 GB, free: 89.2 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001244/1.091, allocations: 194 kB / 0.7073 GB, free: 88.98 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.11/4.201, allocations: 0 / 0.7073 GB, free: 88.98 MB / 426.7 MB (rm -f Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Steinmetz.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Steinmetz.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Steinmetz.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Steinmetz.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Steinmetz_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMC_Steinmetz_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMC_Steinmetz.fmu > Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Steinmetz.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Steinmetz_res.mat does not exist to compare? outputFormat=mat