Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_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_cpp_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_cpp_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.002224/0.002229, allocations: 179 kB / 8.364 MB, free: 0.7109 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.158/2.158, allocations: 205.3 MB / 214.1 MB, free: 14.14 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001159/0.001159, allocations: 84.92 kB / 262.1 MB, free: 13.88 MB / 219.1 MB Notification: Performance of FrontEnd - loaded program: time 2.939e-05/2.967e-05, allocations: 4 kB / 314.9 MB, free: 9.066 MB / 267.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4897/0.4898, allocations: 47.56 MB / 362.4 MB, free: 45.74 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2673/0.7572, allocations: 108.9 MB / 471.4 MB, free: 9.234 MB / 363.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004204/0.7576, allocations: 83.95 kB / 471.4 MB, free: 9.152 MB / 363.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.5979/1.356, allocations: 79.51 MB / 0.538 GB, free: 93.41 MB / 395.1 MB Notification: Performance of FrontEnd: time 2.495e-06/1.356, allocations: 3.938 kB / 0.538 GB, free: 93.4 MB / 395.1 MB Notification: Performance of Transformations before backend: time 0.0003555/1.356, allocations: 77.25 kB / 0.5381 GB, free: 93.39 MB / 395.1 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.01307/1.369, allocations: 3.208 MB / 0.5412 GB, free: 91.79 MB / 395.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.752e-05/1.369, allocations: 11.28 kB / 0.5413 GB, free: 91.79 MB / 395.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006037/1.375, allocations: 0.7379 MB / 0.542 GB, free: 91.53 MB / 395.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01167/1.387, allocations: 3.299 MB / 0.5452 GB, free: 89.89 MB / 395.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001874/1.387, allocations: 111.1 kB / 0.5453 GB, free: 89.89 MB / 395.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001118/1.388, allocations: 191.6 kB / 0.5455 GB, free: 89.89 MB / 395.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0094/1.398, allocations: 3.153 MB / 0.5486 GB, free: 88.49 MB / 395.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01136/1.409, allocations: 3.675 MB / 0.5522 GB, free: 86.8 MB / 395.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001309/1.409, allocations: 3.906 kB / 0.5522 GB, free: 86.8 MB / 395.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004971/1.41, allocations: 7.719 kB / 0.5522 GB, free: 86.79 MB / 395.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001833/1.41, allocations: 145.2 kB / 0.5523 GB, free: 86.78 MB / 395.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0388/1.449, allocations: 13.27 MB / 0.5653 GB, free: 75.29 MB / 395.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01357/1.462, allocations: 6.532 MB / 0.5716 GB, free: 67.95 MB / 395.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004828/1.467, allocations: 1.295 MB / 0.5729 GB, free: 66.66 MB / 395.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0155/1.483, allocations: 3.699 MB / 0.5765 GB, free: 62.92 MB / 395.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.617e-05/1.483, allocations: 47.88 kB / 0.5766 GB, free: 62.87 MB / 395.1 MB Notification: Performance of pre-optimization done (n=144): time 6.171e-06/1.483, allocations: 4 kB / 0.5766 GB, free: 62.86 MB / 395.1 MB Notification: Performance of matching and sorting (n=147): time 0.02049/1.504, allocations: 4.467 MB / 0.5809 GB, free: 58.29 MB / 395.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.368e-05/1.504, allocations: 68.72 kB / 0.581 GB, free: 58.21 MB / 395.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004207/1.508, allocations: 1.243 MB / 0.5822 GB, free: 56.96 MB / 395.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004186/1.508, allocations: 29.7 kB / 0.5822 GB, free: 56.92 MB / 395.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001453/1.51, allocations: 1.384 MB / 0.5836 GB, free: 55.52 MB / 395.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009003/1.511, allocations: 484.6 kB / 0.5841 GB, free: 55.04 MB / 395.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002076/1.511, allocations: 0 / 0.5841 GB, free: 55.04 MB / 395.1 MB Notification: Performance of setup shared object (initialization): time 0.0002033/1.511, allocations: 382.8 kB / 0.5844 GB, free: 54.66 MB / 395.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00247/1.514, allocations: 0.6365 MB / 0.585 GB, free: 54.02 MB / 395.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002879/1.517, allocations: 1.085 MB / 0.5861 GB, free: 52.73 MB / 395.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004391/1.521, allocations: 0.9782 MB / 0.5871 GB, free: 51.76 MB / 395.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.95e-05/1.521, allocations: 4 kB / 0.5871 GB, free: 51.76 MB / 395.1 MB Notification: Performance of matching and sorting (n=225) (initialization): time 0.009102/1.53, allocations: 2.347 MB / 0.5894 GB, free: 49.37 MB / 395.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.61e-05/1.53, allocations: 8 kB / 0.5894 GB, free: 49.36 MB / 395.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.848e-05/1.53, allocations: 16 kB / 0.5894 GB, free: 49.35 MB / 395.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001364/1.532, allocations: 364.4 kB / 0.5897 GB, free: 48.98 MB / 395.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002803/1.535, allocations: 387.4 kB / 0.5901 GB, free: 48.6 MB / 395.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008907/1.544, allocations: 7.552 MB / 0.5975 GB, free: 40.59 MB / 395.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002278/1.546, allocations: 48.02 kB / 0.5975 GB, free: 40.55 MB / 395.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003506/1.546, allocations: 68 kB / 0.5976 GB, free: 40.48 MB / 395.1 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.0004419/1.547, allocations: 148.4 kB / 0.5977 GB, free: 40.33 MB / 395.1 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.006172/1.553, allocations: 2.196 MB / 0.5999 GB, free: 38.07 MB / 395.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007202/1.554, allocations: 173.8 kB / 0.6 GB, free: 37.89 MB / 395.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006497/1.56, allocations: 2.325 MB / 0.6023 GB, free: 35.5 MB / 395.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.234e-05/1.56, allocations: 16 kB / 0.6023 GB, free: 35.48 MB / 395.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.846e-05/1.56, allocations: 8 kB / 0.6023 GB, free: 35.48 MB / 395.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.416e-05/1.56, allocations: 7.969 kB / 0.6023 GB, free: 35.47 MB / 395.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01223/1.573, allocations: 4.748 MB / 0.607 GB, free: 30.63 MB / 395.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.514e-05/1.573, allocations: 8.188 kB / 0.607 GB, free: 30.62 MB / 395.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001723/1.574, allocations: 195.8 kB / 0.6072 GB, free: 30.43 MB / 395.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002286/1.577, allocations: 0.5398 MB / 0.6077 GB, free: 29.88 MB / 395.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002776/1.577, allocations: 19.98 kB / 0.6077 GB, free: 29.86 MB / 395.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01501/1.592, allocations: 11.75 MB / 0.6192 GB, free: 17.43 MB / 395.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.083e-05/1.592, allocations: 12.11 kB / 0.6192 GB, free: 17.42 MB / 395.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008478/1.601, allocations: 3.37 MB / 0.6225 GB, free: 13.92 MB / 395.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001503/1.602, allocations: 414.8 kB / 0.6229 GB, free: 13.49 MB / 395.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006312/1.603, allocations: 11.98 kB / 0.6229 GB, free: 13.48 MB / 395.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001917/1.605, allocations: 47.95 kB / 0.6229 GB, free: 13.43 MB / 395.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000514/1.605, allocations: 125.1 kB / 0.6231 GB, free: 13.31 MB / 395.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001639/1.605, allocations: 47.98 kB / 0.6231 GB, free: 13.26 MB / 395.1 MB Notification: Performance of sorting global known variables: time 0.002165/1.608, allocations: 0.9288 MB / 0.624 GB, free: 12.34 MB / 395.1 MB Notification: Performance of sort global known variables: time 6.92e-07/1.608, allocations: 0 / 0.624 GB, free: 12.34 MB / 395.1 MB Notification: Performance of remove unused functions: time 0.003629/1.611, allocations: 0.5468 MB / 0.6245 GB, free: 11.79 MB / 395.1 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.009193/1.621, allocations: 4.539 MB / 0.629 GB, free: 7.152 MB / 395.1 MB Notification: Performance of simCode: created initialization part: time 0.005001/1.626, allocations: 2.241 MB / 0.6312 GB, free: 4.848 MB / 395.1 MB Notification: Performance of simCode: created event and clocks part: time 8.576e-06/1.626, allocations: 0 / 0.6312 GB, free: 4.848 MB / 395.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003715/1.629, allocations: 1.691 MB / 0.6328 GB, free: 3.102 MB / 395.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003504/1.633, allocations: 393.2 kB / 0.6332 GB, free: 2.719 MB / 395.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01757/1.65, allocations: 5.374 MB / 0.6384 GB, free: 13.27 MB / 411.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004359/1.655, allocations: 2.326 MB / 0.6407 GB, free: 10.92 MB / 411.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003129/1.658, allocations: 1.148 MB / 0.6418 GB, free: 9.773 MB / 411.1 MB Notification: Performance of SimCode: time 1.443e-06/1.658, allocations: 0 / 0.6418 GB, free: 9.773 MB / 411.1 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.32/5.978, allocations: 136.5 MB / 0.7751 GB, free: 9.27 MB / 411.1 MB (rm -f Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Steinmetz.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Steinmetz.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Steinmetz.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Steinmetz.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Steinmetz_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMC_Steinmetz_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMC_Steinmetz.fmu > Modelica_3.2.3_cpp_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_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Steinmetz_res.mat does not exist to compare? outputFormat=mat