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_Initialize.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_Initialize,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMC_Initialize",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMC_Initialize",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.002328/0.002328, allocations: 189 kB / 16.4 MB, free: 5.621 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.061/2.061, allocations: 205.4 MB / 222.5 MB, free: 13.76 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.001131/0.001131, allocations: 94.88 kB / 270.9 MB, free: 13.29 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004079/0.0004081, allocations: 12 kB / 327.1 MB, free: 14.97 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09768/0.09812, allocations: 47.58 MB / 374.6 MB, free: 15.32 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize): time 0.01911/0.1173, allocations: 10.31 MB / 385 MB, free: 4.965 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.01124/0.1286, allocations: 4.073 MB / 389 MB, free: 0.8789 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002406/0.131, allocations: 59.75 kB / 389.1 MB, free: 0.8203 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003672/0.1347, allocations: 0.754 MB / 389.8 MB, free: 64 kB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.2688/0.4036, allocations: 1.105 MB / 391 MB, free: 9.578 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002962/0.4066, allocations: 0.5876 MB / 391.5 MB, free: 9.57 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.007333/0.414, allocations: 2.745 MB / 394.3 MB, free: 9.562 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004912/0.4189, allocations: 2.18 MB / 396.5 MB, free: 9.141 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003448/0.4224, allocations: 1.239 MB / 397.7 MB, free: 9.141 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004321/0.4268, allocations: 1.482 MB / 399.2 MB, free: 9.137 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001368/0.4282, allocations: 204.8 kB / 399.4 MB, free: 9.137 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003174/0.4314, allocations: 373.5 kB / 399.8 MB, free: 9.137 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002016/0.4335, allocations: 0.7409 MB / 400.5 MB, free: 9.137 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002397/0.4359, allocations: 0.7407 MB / 401.2 MB, free: 9.02 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00945/0.4454, allocations: 5.485 MB / 406.7 MB, free: 7.039 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.85e-06/0.4455, allocations: 0 / 406.7 MB, free: 7.039 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.715e-06/0.4455, allocations: 4 kB / 406.7 MB, free: 7.035 MB / 282.7 MB Notification: Performance of Transformations before backend: time 0.0002245/0.4457, allocations: 0 / 406.7 MB, free: 7.035 MB / 282.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 819 * Number of variables: 819 Notification: Performance of Generate backend data structure: time 0.01621/0.4619, allocations: 3.735 MB / 410.5 MB, free: 4.957 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.247e-05/0.462, allocations: 13.62 kB / 410.5 MB, free: 4.953 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002011/0.4641, allocations: 451 kB / 410.9 MB, free: 4.816 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007831/0.4719, allocations: 0.8185 MB / 411.7 MB, free: 4.48 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007433/0.4794, allocations: 2.215 MB / 413.9 MB, free: 3.629 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003119/0.4798, allocations: 237.5 kB / 414.2 MB, free: 3.523 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001416/0.4812, allocations: 315 kB / 414.5 MB, free: 3.418 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01472/0.4959, allocations: 4.212 MB / 418.7 MB, free: 0.6836 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001381/0.4961, allocations: 11.89 kB / 418.7 MB, free: 0.6719 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007502/0.4969, allocations: 131.4 kB / 418.8 MB, free: 0.5469 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001865/0.4971, allocations: 138.2 kB / 419 MB, free: 420 kB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01338/0.5105, allocations: 3.651 MB / 422.6 MB, free: 12.75 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04081/0.5513, allocations: 13.52 MB / 436.1 MB, free: 14.99 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01215/0.5636, allocations: 6.872 MB / 443 MB, free: 7.219 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01072/0.5743, allocations: 3.223 MB / 446.2 MB, free: 3.941 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.388e-05/0.5744, allocations: 54.17 kB / 446.3 MB, free: 3.883 MB / 314.7 MB Notification: Performance of pre-optimization done (n=130): time 4.028e-06/0.5744, allocations: 0 / 446.3 MB, free: 3.883 MB / 314.7 MB Notification: Performance of matching and sorting (n=150): time 0.02573/0.6002, allocations: 6.756 MB / 453 MB, free: 12.94 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.493e-05/0.6003, allocations: 68.72 kB / 453.1 MB, free: 12.86 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004949/0.6053, allocations: 1.806 MB / 454.9 MB, free: 11.05 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003449/0.6057, allocations: 49.7 kB / 455 MB, free: 11 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0015/0.6072, allocations: 1.339 MB / 456.3 MB, free: 9.652 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008694/0.6081, allocations: 0.5134 MB / 456.8 MB, free: 9.145 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001833/0.6083, allocations: 36 kB / 456.9 MB, free: 9.109 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0002461/0.6085, allocations: 374.8 kB / 457.2 MB, free: 8.734 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002537/0.6111, allocations: 0.7847 MB / 458 MB, free: 7.949 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003069/0.6142, allocations: 1.226 MB / 459.2 MB, free: 6.535 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003072/0.6173, allocations: 0.9951 MB / 460.2 MB, free: 5.539 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.84e-05/0.6174, allocations: 4 kB / 460.2 MB, free: 5.535 MB / 330.7 MB Notification: Performance of matching and sorting (n=222) (initialization): time 0.008557/0.6259, allocations: 2.572 MB / 462.8 MB, free: 2.949 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.514e-05/0.626, allocations: 12 kB / 462.8 MB, free: 2.938 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.981e-05/0.6261, allocations: 15.94 kB / 462.8 MB, free: 2.922 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002425/0.6285, allocations: 0.4978 MB / 463.3 MB, free: 2.418 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003264/0.6318, allocations: 399.4 kB / 463.7 MB, free: 2.027 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01499/0.6469, allocations: 6.54 MB / 470.3 MB, free: 11.23 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002636/0.6495, allocations: 83.86 kB / 470.3 MB, free: 11.14 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004148/0.65, allocations: 68 kB / 470.4 MB, free: 11.08 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 60 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (184): * Single equations (assignments): 182 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(8,56.2%) 30} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.003507/0.6535, allocations: 1.058 MB / 471.5 MB, free: 10.01 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007134/0.6543, allocations: 193.7 kB / 471.7 MB, free: 9.82 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008386/0.6627, allocations: 2.566 MB / 474.2 MB, free: 7.195 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.851e-05/0.6627, allocations: 16 kB / 474.2 MB, free: 7.18 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.277e-05/0.6628, allocations: 8 kB / 474.2 MB, free: 7.172 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.111e-05/0.6628, allocations: 7.969 kB / 474.2 MB, free: 7.164 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01693/0.6798, allocations: 5.588 MB / 479.8 MB, free: 1.465 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.711e-05/0.6798, allocations: 4 kB / 479.8 MB, free: 1.461 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002259/0.6821, allocations: 231.9 kB / 480.1 MB, free: 1.234 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002395/0.6845, allocations: 495.9 kB / 480.6 MB, free: 0.7344 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003174/0.6849, allocations: 35.98 kB / 480.6 MB, free: 0.6992 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01788/0.7028, allocations: 10.58 MB / 491.2 MB, free: 5.465 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.258e-06/0.7028, allocations: 0 / 491.2 MB, free: 5.465 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01095/0.7138, allocations: 3.744 MB / 494.9 MB, free: 1.602 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001866/0.7157, allocations: 466.5 kB / 495.4 MB, free: 1.125 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007681/0.7165, allocations: 28 kB / 495.4 MB, free: 1.098 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002248/0.7188, allocations: 79.94 kB / 495.5 MB, free: 1.02 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005781/0.7194, allocations: 113 kB / 495.6 MB, free: 0.9102 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001801/0.7196, allocations: 43.98 kB / 495.6 MB, free: 0.8672 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.003685/0.7233, allocations: 1.241 MB / 496.9 MB, free: 15.64 MB / 378.7 MB Notification: Performance of sort global known variables: time 7.82e-07/0.7233, allocations: 0 / 496.9 MB, free: 15.64 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.004103/0.7274, allocations: 0.5902 MB / 497.5 MB, free: 15.05 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 7 (aimc.inertiaRotor.w,aimc.stator.zeroInductor.i0,aimc.stator.core.Phi.re,aimc.stator.core.Phi.im,aimc.stator.strayReluctance.Phi.re,aimc.stator.strayReluctance.Phi.im,loadInertia.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (108): * Single equations (assignments): 103 * 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: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 5 {(2,100.0%) 12,(1,100.0%) 12,(1,100.0%) 1,(1,100.0%) 8,(1,100.0%) 8} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01211/0.7396, allocations: 4.747 MB / 0.4904 GB, free: 10.18 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.008039/0.7477, allocations: 2.444 MB / 0.4928 GB, free: 7.703 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 9.388e-06/0.7477, allocations: 0 / 0.4928 GB, free: 7.703 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005149/0.7529, allocations: 1.769 MB / 0.4946 GB, free: 5.875 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004176/0.7571, allocations: 482.4 kB / 0.495 GB, free: 5.406 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06915/0.8263, allocations: 26.09 MB / 0.5205 GB, free: 10.22 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004541/0.8309, allocations: 2.367 MB / 0.5228 GB, free: 7.824 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003232/0.8342, allocations: 1.14 MB / 0.5239 GB, free: 6.684 MB / 410.7 MB Notification: Performance of SimCode: time 1.853e-06/0.8343, allocations: 0 / 0.5239 GB, free: 6.684 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.233/5.067, allocations: 108.6 MB / 0.63 GB, free: 46.54 MB / 410.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMC_Initialize_fmu --startTime=0 --stopTime=1.5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMC_Initialize.fmu > Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize.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_Initialize_res.mat does not exist to compare? outputFormat=mat