Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) 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 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize,fileNamePrefix="Modelica_3_2_3_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_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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001015/0.001015, allocations: 91.28 kB / 16.95 MB, free: 6.113 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001146/0.001146, allocations: 181.5 kB / 17.84 MB, free: 5.73 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.715/1.715, allocations: 205.4 MB / 224 MB, free: 13.15 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0004634/0.0004635, allocations: 16 kB / 280.9 MB, free: 3.629 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09327/0.09375, allocations: 47.58 MB / 328.5 MB, free: 3.98 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize): time 0.0117/0.1055, allocations: 11.27 MB / 339.7 MB, free: 8.664 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.00791/0.1135, allocations: 3.982 MB / 343.7 MB, free: 4.668 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001594/0.1151, allocations: 63.75 kB / 343.8 MB, free: 4.605 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002059/0.1172, allocations: 0.7224 MB / 344.5 MB, free: 3.879 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00323/0.1204, allocations: 1.057 MB / 345.6 MB, free: 2.816 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001616/0.122, allocations: 0.5924 MB / 346.1 MB, free: 2.223 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.004877/0.1269, allocations: 4.055 MB / 350.2 MB, free: 14.14 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002678/0.1296, allocations: 2.173 MB / 352.4 MB, free: 11.93 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00218/0.1318, allocations: 1.28 MB / 353.7 MB, free: 10.65 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002103/0.1339, allocations: 1.646 MB / 355.3 MB, free: 8.996 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003455/0.1343, allocations: 208 kB / 355.5 MB, free: 8.793 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001034/0.1353, allocations: 391.8 kB / 355.9 MB, free: 8.41 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006758/0.136, allocations: 0.7745 MB / 356.7 MB, free: 7.633 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008514/0.1369, allocations: 0.7382 MB / 357.4 MB, free: 6.887 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005066/0.1419, allocations: 5.52 MB / 362.9 MB, free: 1.355 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.751e-06/0.142, allocations: 4 kB / 362.9 MB, free: 1.352 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.774e-06/0.142, allocations: 0 / 362.9 MB, free: 1.352 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0001319/0.1421, allocations: 0 / 362.9 MB, free: 1.352 MB / 302.1 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.008953/0.1511, allocations: 3.747 MB / 366.7 MB, free: 13.53 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.551e-05/0.1511, allocations: 8.031 kB / 366.7 MB, free: 13.52 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007828/0.1519, allocations: 462.8 kB / 367.1 MB, free: 13.06 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00396/0.1559, allocations: 0.8154 MB / 367.9 MB, free: 12.24 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003896/0.1598, allocations: 2.194 MB / 370.1 MB, free: 9.988 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001729/0.16, allocations: 238.2 kB / 370.4 MB, free: 9.754 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004797/0.1605, allocations: 315.8 kB / 370.7 MB, free: 9.445 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007142/0.1676, allocations: 4.238 MB / 374.9 MB, free: 5.156 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.451e-05/0.1677, allocations: 11.89 kB / 374.9 MB, free: 5.145 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002787/0.168, allocations: 131.9 kB / 375.1 MB, free: 5.016 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001372/0.1682, allocations: 150.2 kB / 375.2 MB, free: 4.867 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006005/0.1742, allocations: 3.644 MB / 378.9 MB, free: 1.215 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2408/0.4151, allocations: 13.56 MB / 392.4 MB, free: 41.53 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005665/0.4208, allocations: 6.85 MB / 399.3 MB, free: 34.95 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002134/0.423, allocations: 1.431 MB / 400.7 MB, free: 34.25 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00617/0.4291, allocations: 3.642 MB / 404.3 MB, free: 31.66 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.629e-05/0.4292, allocations: 45.44 kB / 404.4 MB, free: 31.61 MB / 318.1 MB Notification: Performance of pre-optimization done (n=124): time 4.899e-06/0.4292, allocations: 0 / 404.4 MB, free: 31.61 MB / 318.1 MB Notification: Performance of matching and sorting (n=144): time 0.01272/0.4419, allocations: 6.728 MB / 411.1 MB, free: 27.41 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.79e-05/0.442, allocations: 71.14 kB / 411.2 MB, free: 27.35 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003085/0.4451, allocations: 1.843 MB / 413 MB, free: 26.36 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001329/0.4453, allocations: 60.05 kB / 413.1 MB, free: 26.3 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007471/0.446, allocations: 1.417 MB / 414.5 MB, free: 25.06 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003232/0.4464, allocations: 0.489 MB / 415 MB, free: 24.64 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.095e-05/0.4465, allocations: 35.72 kB / 415 MB, free: 24.61 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001123/0.4466, allocations: 373.7 kB / 415.4 MB, free: 24.25 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001049/0.4476, allocations: 0.7661 MB / 416.2 MB, free: 23.64 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001199/0.4488, allocations: 1.219 MB / 417.4 MB, free: 22.23 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001152/0.45, allocations: 0.9785 MB / 418.3 MB, free: 21.25 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.915e-06/0.45, allocations: 4 kB / 418.4 MB, free: 21.25 MB / 318.1 MB Notification: Performance of matching and sorting (n=218) (initialization): time 0.003772/0.4538, allocations: 2.67 MB / 421 MB, free: 18.56 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.54e-05/0.4538, allocations: 12 kB / 421 MB, free: 18.55 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.064e-05/0.4539, allocations: 12 kB / 421 MB, free: 18.54 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001187/0.4551, allocations: 0.5056 MB / 421.6 MB, free: 18.03 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001334/0.4564, allocations: 391.4 kB / 421.9 MB, free: 17.64 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006969/0.4634, allocations: 6.397 MB / 428.3 MB, free: 10.98 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001848/0.4653, allocations: 84.02 kB / 428.4 MB, free: 10.89 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002239/0.4655, allocations: 75.98 kB / 428.5 MB, free: 10.82 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 62 * 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 (180): * Single equations (assignments): 178 * 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.002145/0.4677, allocations: 1.04 MB / 429.5 MB, free: 9.77 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006227/0.4683, allocations: 193.7 kB / 429.7 MB, free: 9.578 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004008/0.4723, allocations: 2.518 MB / 432.2 MB, free: 6.992 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.156e-05/0.4724, allocations: 16 kB / 432.2 MB, free: 6.977 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.506e-05/0.4724, allocations: 8 kB / 432.3 MB, free: 6.969 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.618e-05/0.4724, allocations: 7.969 kB / 432.3 MB, free: 6.961 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008276/0.4807, allocations: 5.541 MB / 437.8 MB, free: 1.328 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.446e-06/0.4807, allocations: 4.031 kB / 437.8 MB, free: 1.324 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009021/0.4816, allocations: 215.7 kB / 438 MB, free: 1.113 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001103/0.4828, allocations: 0.5032 MB / 438.5 MB, free: 0.6016 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001069/0.4829, allocations: 35.98 kB / 438.6 MB, free: 0.5664 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01021/0.4931, allocations: 10.45 MB / 449 MB, free: 5.477 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.989e-06/0.4932, allocations: 7.969 kB / 449 MB, free: 5.469 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006266/0.4994, allocations: 3.567 MB / 452.6 MB, free: 1.812 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001324/0.5008, allocations: 462.5 kB / 453 MB, free: 1.34 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006435/0.5014, allocations: 32 kB / 453.1 MB, free: 1.309 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001287/0.5027, allocations: 75.94 kB / 453.1 MB, free: 1.234 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003088/0.5031, allocations: 113.1 kB / 453.2 MB, free: 1.125 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001015/0.5032, allocations: 39.98 kB / 453.3 MB, free: 1.086 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.002452/0.5056, allocations: 1.27 MB / 454.6 MB, free: 15.82 MB / 350.1 MB Notification: Performance of sort global known variables: time 9.02e-07/0.5056, allocations: 0 / 454.6 MB, free: 15.82 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.00266/0.5083, allocations: 0.5893 MB / 455.1 MB, free: 15.24 MB / 350.1 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 (102): * Single equations (assignments): 97 * 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%) 1,(1,100.0%) 12,(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.006402/0.5147, allocations: 4.182 MB / 459.3 MB, free: 10.96 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.004157/0.5189, allocations: 2.41 MB / 461.7 MB, free: 8.523 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 5.861e-06/0.519, allocations: 0 / 461.7 MB, free: 8.523 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002473/0.5214, allocations: 1.721 MB / 463.5 MB, free: 6.742 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003037/0.5245, allocations: 0.5065 MB / 464 MB, free: 6.234 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03753/0.5621, allocations: 17.43 MB / 481.4 MB, free: 3.797 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003028/0.5651, allocations: 2.366 MB / 483.8 MB, free: 1.402 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.001662/0.5668, allocations: 416.8 kB / 484.2 MB, free: 0.9922 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001753/0.5686, allocations: 1.152 MB / 485.3 MB, free: 15.86 MB / 382.1 MB Notification: Performance of SimCode: time 2.034e-06/0.5686, allocations: 0 / 485.3 MB, free: 15.86 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07954/0.6482, allocations: 50.93 MB / 0.5237 GB, free: 12.84 MB / 430.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001665/0.6484, allocations: 230.5 kB / 0.5239 GB, free: 12.6 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.252/3.9, allocations: 0 / 0.5239 GB, free: 12.6 MB / 430.1 MB (rm -f Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMC_Initialize_fmu --startTime=0 --stopTime=1.5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMC_Initialize.fmu > Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize_res.mat does not exist to compare? outputFormat=mat