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.001058/0.001058, allocations: 102.4 kB / 16.94 MB, free: 6.441 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.001207/0.001208, allocations: 184.2 kB / 17.83 MB, free: 6.004 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.26/1.26, allocations: 205.4 MB / 224 MB, free: 13.17 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.0004127/0.0004127, allocations: 15.28 kB / 280.9 MB, free: 3.645 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07904/0.07946, allocations: 47.57 MB / 328.4 MB, free: 4 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize): time 0.01035/0.08984, allocations: 10.31 MB / 338.7 MB, free: 9.645 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.007264/0.09719, allocations: 4.077 MB / 342.8 MB, free: 5.555 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001283/0.09851, allocations: 63.69 kB / 342.9 MB, free: 5.492 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001927/0.1005, allocations: 0.7463 MB / 343.6 MB, free: 4.742 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003047/0.1035, allocations: 1.122 MB / 344.7 MB, free: 3.617 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001625/0.1052, allocations: 0.5845 MB / 345.3 MB, free: 3.031 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.004421/0.1096, allocations: 2.761 MB / 348.1 MB, free: 268 kB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003089/0.1127, allocations: 2.173 MB / 350.3 MB, free: 14.05 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002302/0.115, allocations: 1.238 MB / 351.5 MB, free: 12.81 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0022/0.1172, allocations: 1.478 MB / 353 MB, free: 11.32 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004313/0.1177, allocations: 208 kB / 353.2 MB, free: 11.12 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001102/0.1188, allocations: 371.8 kB / 353.5 MB, free: 10.76 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006605/0.1195, allocations: 0.7398 MB / 354.3 MB, free: 10.02 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007954/0.1203, allocations: 0.7382 MB / 355 MB, free: 9.27 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005127/0.1254, allocations: 5.481 MB / 360.5 MB, free: 3.773 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.276e-06/0.1254, allocations: 4 kB / 360.5 MB, free: 3.77 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.054e-06/0.1254, allocations: 0 / 360.5 MB, free: 3.77 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0001517/0.1256, allocations: 0 / 360.5 MB, free: 3.77 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.009756/0.1353, allocations: 3.747 MB / 364.3 MB, free: 15.95 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.943e-05/0.1354, allocations: 11.97 kB / 364.3 MB, free: 15.93 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001092/0.1365, allocations: 446.9 kB / 364.7 MB, free: 15.49 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004457/0.141, allocations: 0.8154 MB / 365.5 MB, free: 14.67 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004639/0.1457, allocations: 2.214 MB / 367.7 MB, free: 12.4 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002124/0.1459, allocations: 242.2 kB / 368 MB, free: 12.16 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006799/0.1466, allocations: 319.8 kB / 368.3 MB, free: 11.85 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007649/0.1542, allocations: 4.199 MB / 372.5 MB, free: 7.598 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.335e-05/0.1544, allocations: 11.94 kB / 372.5 MB, free: 7.586 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003162/0.1547, allocations: 131.9 kB / 372.6 MB, free: 7.457 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001454/0.1548, allocations: 146.2 kB / 372.8 MB, free: 7.312 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00633/0.1612, allocations: 3.647 MB / 376.4 MB, free: 3.656 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1705/0.3317, allocations: 13.52 MB / 389.9 MB, free: 42.46 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005316/0.3371, allocations: 6.851 MB / 396.8 MB, free: 36.25 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005483/0.3426, allocations: 3.232 MB / 400 MB, free: 34.19 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.115e-05/0.3427, allocations: 47.53 kB / 400.1 MB, free: 34.14 MB / 318.1 MB Notification: Performance of pre-optimization done (n=130): time 3.467e-06/0.3427, allocations: 0 / 400.1 MB, free: 34.14 MB / 318.1 MB Notification: Performance of matching and sorting (n=150): time 0.01122/0.3539, allocations: 6.761 MB / 406.8 MB, free: 29.92 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.087e-05/0.354, allocations: 66.75 kB / 406.9 MB, free: 29.86 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002065/0.356, allocations: 1.803 MB / 408.7 MB, free: 28.88 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001023/0.3562, allocations: 58.89 kB / 408.7 MB, free: 28.83 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005896/0.3568, allocations: 1.401 MB / 410.2 MB, free: 27.6 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002514/0.357, allocations: 0.5126 MB / 410.7 MB, free: 27.16 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.438e-05/0.3571, allocations: 35.38 kB / 410.7 MB, free: 27.13 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 7.941e-05/0.3572, allocations: 372.6 kB / 411.1 MB, free: 26.77 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009631/0.3581, allocations: 0.7856 MB / 411.8 MB, free: 26.36 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00107/0.3592, allocations: 1.221 MB / 413.1 MB, free: 25.37 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00116/0.3604, allocations: 1 MB / 414.1 MB, free: 24.82 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.562e-06/0.3604, allocations: 3.812 kB / 414.1 MB, free: 24.82 MB / 318.1 MB Notification: Performance of matching and sorting (n=222) (initialization): time 0.003442/0.3639, allocations: 2.695 MB / 416.8 MB, free: 22.7 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.063e-05/0.3639, allocations: 8 kB / 416.8 MB, free: 22.69 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.718e-05/0.3639, allocations: 16 kB / 416.8 MB, free: 22.67 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001116/0.365, allocations: 0.4971 MB / 417.3 MB, free: 22.17 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001346/0.3664, allocations: 403.4 kB / 417.7 MB, free: 21.78 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005969/0.3724, allocations: 6.54 MB / 424.2 MB, free: 14.97 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001314/0.3737, allocations: 81.11 kB / 424.3 MB, free: 14.89 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000112/0.3738, allocations: 75.98 kB / 424.4 MB, free: 14.82 MB / 318.1 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.001422/0.3753, allocations: 1.048 MB / 425.4 MB, free: 13.76 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000309/0.3756, allocations: 193.7 kB / 425.6 MB, free: 13.57 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003483/0.3791, allocations: 2.562 MB / 428.2 MB, free: 10.94 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.21e-05/0.3791, allocations: 16 kB / 428.2 MB, free: 10.93 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.598e-06/0.3791, allocations: 8 kB / 428.2 MB, free: 10.92 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.309e-05/0.3791, allocations: 7.969 kB / 428.2 MB, free: 10.91 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007268/0.3864, allocations: 5.589 MB / 433.8 MB, free: 5.219 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.705e-06/0.3865, allocations: 0 / 433.8 MB, free: 5.219 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009594/0.3874, allocations: 235.9 kB / 434 MB, free: 4.988 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001113/0.3886, allocations: 492.9 kB / 434.5 MB, free: 4.496 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.578e-05/0.3887, allocations: 43.98 kB / 434.5 MB, free: 4.453 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009592/0.3983, allocations: 10.57 MB / 445.1 MB, free: 9.246 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.136e-06/0.3983, allocations: 1.094 kB / 445.1 MB, free: 9.246 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00596/0.4043, allocations: 3.752 MB / 448.9 MB, free: 5.379 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00116/0.4055, allocations: 462.5 kB / 449.3 MB, free: 4.906 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000317/0.4058, allocations: 35.95 kB / 449.4 MB, free: 4.871 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009041/0.4067, allocations: 75.95 kB / 449.4 MB, free: 4.797 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002868/0.407, allocations: 117.1 kB / 449.5 MB, free: 4.68 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.865e-05/0.4071, allocations: 39.98 kB / 449.6 MB, free: 4.641 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.001845/0.409, allocations: 1.25 MB / 450.8 MB, free: 3.398 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.409, allocations: 0 / 450.8 MB, free: 3.398 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.002213/0.4112, allocations: 0.5859 MB / 451.4 MB, free: 2.812 MB / 334.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 (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.005857/0.4171, allocations: 4.74 MB / 456.2 MB, free: 13.96 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.00403/0.4211, allocations: 2.442 MB / 458.6 MB, free: 11.49 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 5.27e-06/0.4212, allocations: 0 / 458.6 MB, free: 11.49 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002648/0.4238, allocations: 1.77 MB / 460.4 MB, free: 9.66 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00246/0.4263, allocations: 488.4 kB / 460.8 MB, free: 9.184 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03782/0.4642, allocations: 26.17 MB / 487 MB, free: 13.92 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002025/0.4663, allocations: 2.425 MB / 489.4 MB, free: 11.46 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001555/0.4678, allocations: 421 kB / 489.9 MB, free: 11.05 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001306/0.4692, allocations: 1.128 MB / 491 MB, free: 9.922 MB / 382.1 MB Notification: Performance of SimCode: time 8.12e-07/0.4692, allocations: 0 / 491 MB, free: 9.922 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07599/0.5452, allocations: 50.59 MB / 0.5289 GB, free: 7.242 MB / 430.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000211/0.5454, allocations: 228.8 kB / 0.5291 GB, free: 7 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.939/3.484, allocations: 0 / 0.5291 GB, free: 7 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