Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Conveyor.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_Conveyor,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMC_Conveyor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Conveyor,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMC_Conveyor",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.00114/0.00114, allocations: 98.59 kB / 16.96 MB, free: 6.035 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.001414/0.001414, allocations: 177 kB / 17.84 MB, free: 5.68 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.739/1.739, allocations: 205.4 MB / 224 MB, free: 13.16 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.000467/0.000467, allocations: 12 kB / 280.9 MB, free: 3.625 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1181/0.1186, allocations: 47.59 MB / 328.5 MB, free: 3.973 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Conveyor): time 0.01326/0.1319, allocations: 11.77 MB / 340.2 MB, free: 8.156 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.01016/0.1422, allocations: 4.399 MB / 344.6 MB, free: 3.742 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003141/0.1454, allocations: 67.69 kB / 344.7 MB, free: 3.676 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00332/0.1487, allocations: 0.8432 MB / 345.5 MB, free: 2.828 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004749/0.1535, allocations: 1.135 MB / 346.7 MB, free: 1.688 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002692/0.1562, allocations: 0.6821 MB / 347.4 MB, free: 1.004 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.007111/0.1633, allocations: 4.039 MB / 351.4 MB, free: 12.95 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005021/0.1684, allocations: 2.21 MB / 353.6 MB, free: 10.7 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003391/0.1718, allocations: 1.307 MB / 354.9 MB, free: 9.387 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003969/0.1758, allocations: 1.685 MB / 356.6 MB, free: 7.695 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001281/0.1771, allocations: 208 kB / 356.8 MB, free: 7.492 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002504/0.1796, allocations: 431.7 kB / 357.2 MB, free: 7.07 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001639/0.1813, allocations: 0.7746 MB / 358 MB, free: 6.293 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001997/0.1833, allocations: 0.7421 MB / 358.7 MB, free: 5.543 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007469/0.1908, allocations: 5.547 MB / 364.3 MB, free: 15.98 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.325e-06/0.1909, allocations: 0 / 364.3 MB, free: 15.98 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.986e-06/0.1909, allocations: 4 kB / 364.3 MB, free: 15.98 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0002749/0.1912, allocations: 0 / 364.3 MB, free: 15.98 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 843 * Number of variables: 843 Notification: Performance of Generate backend data structure: time 0.01254/0.2037, allocations: 3.821 MB / 368.1 MB, free: 12.08 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.155e-05/0.2038, allocations: 12.03 kB / 368.1 MB, free: 12.07 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002076/0.2059, allocations: 463.5 kB / 368.6 MB, free: 11.61 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005361/0.2113, allocations: 0.8231 MB / 369.4 MB, free: 10.78 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006637/0.2179, allocations: 2.191 MB / 371.6 MB, free: 8.531 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003297/0.2183, allocations: 242.4 kB / 371.8 MB, free: 8.293 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001408/0.2197, allocations: 327.8 kB / 372.2 MB, free: 7.973 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01352/0.2333, allocations: 4.257 MB / 376.4 MB, free: 3.668 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001899/0.2335, allocations: 4 kB / 376.4 MB, free: 3.664 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001089/0.2346, allocations: 128 kB / 376.5 MB, free: 3.539 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002055/0.2348, allocations: 158.4 kB / 376.7 MB, free: 3.383 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.2569/0.4918, allocations: 3.596 MB / 380.3 MB, free: 47.17 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03001/0.5218, allocations: 13.47 MB / 393.8 MB, free: 40.51 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006474/0.5283, allocations: 6.956 MB / 400.7 MB, free: 33.86 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002283/0.5307, allocations: 1.39 MB / 402.1 MB, free: 33.18 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006743/0.5375, allocations: 3.848 MB / 405.9 MB, free: 30.39 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001151/0.5387, allocations: 0.8478 MB / 406.8 MB, free: 29.83 MB / 318.1 MB Notification: Performance of pre-optimization done (n=131): time 3.277e-06/0.5387, allocations: 0 / 406.8 MB, free: 29.83 MB / 318.1 MB Notification: Performance of matching and sorting (n=139): time 0.01184/0.5505, allocations: 6.548 MB / 413.3 MB, free: 25.67 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.21e-05/0.5507, allocations: 222 kB / 413.6 MB, free: 25.41 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002617/0.5533, allocations: 1.891 MB / 415.5 MB, free: 24.34 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001489/0.5534, allocations: 53.7 kB / 415.5 MB, free: 24.28 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00121/0.5547, allocations: 1.477 MB / 417 MB, free: 22.8 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003655/0.555, allocations: 491.3 kB / 417.5 MB, free: 22.32 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.793e-05/0.5551, allocations: 36 kB / 417.5 MB, free: 22.29 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001068/0.5552, allocations: 369.9 kB / 417.9 MB, free: 21.92 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008962/0.5561, allocations: 0.652 MB / 418.5 MB, free: 21.27 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001061/0.5572, allocations: 1.21 MB / 419.7 MB, free: 19.84 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001082/0.5583, allocations: 0.8769 MB / 420.6 MB, free: 18.96 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.464e-06/0.5583, allocations: 8.547 kB / 420.6 MB, free: 18.95 MB / 318.1 MB Notification: Performance of matching and sorting (n=219) (initialization): time 0.003394/0.5617, allocations: 2.417 MB / 423 MB, free: 16.49 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.625e-05/0.5618, allocations: 12 kB / 423 MB, free: 16.48 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.318e-05/0.5618, allocations: 16 kB / 423 MB, free: 16.46 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006515/0.5625, allocations: 284.7 kB / 423.3 MB, free: 16.18 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001218/0.5637, allocations: 388.4 kB / 423.7 MB, free: 15.8 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004127/0.5678, allocations: 5.854 MB / 429.6 MB, free: 9.555 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001585/0.5694, allocations: 99.92 kB / 429.7 MB, free: 9.457 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001369/0.5696, allocations: 68 kB / 429.7 MB, free: 9.391 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 67 * Number of states: 0 () * Number of discrete variables: 5 ($whenCondition1,$PRE.dutyCycle.nextTimeEvent,dutyCycle.nextTimeEvent,$PRE.dutyCycle.nextTimeEventScaled,dutyCycle.nextTimeEventScaled) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (196): * Single equations (assignments): 192 * 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: 3 * 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: 3 {(1,100.0%) 4,(1,100.0%) 5,(1,100.0%) 13} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001887/0.5715, allocations: 1.038 MB / 430.8 MB, free: 8.344 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003672/0.5719, allocations: 197.6 kB / 431 MB, free: 8.148 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003326/0.5752, allocations: 2.254 MB / 433.2 MB, free: 5.828 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.033e-05/0.5752, allocations: 12 kB / 433.2 MB, free: 5.816 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.035e-05/0.5752, allocations: 8 kB / 433.2 MB, free: 5.809 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.393e-05/0.5753, allocations: 7.969 kB / 433.2 MB, free: 5.801 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00693/0.5822, allocations: 5.099 MB / 438.3 MB, free: 0.6055 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.374e-06/0.5822, allocations: 4 kB / 438.3 MB, free: 0.6016 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007149/0.5829, allocations: 183.9 kB / 438.5 MB, free: 432 kB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00104/0.584, allocations: 467.7 kB / 439 MB, free: 15.95 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.463e-05/0.5841, allocations: 35.98 kB / 439 MB, free: 15.92 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0095/0.5936, allocations: 10.18 MB / 449.2 MB, free: 5.078 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.906e-06/0.5936, allocations: 0 / 449.2 MB, free: 5.078 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005092/0.5987, allocations: 3.127 MB / 452.3 MB, free: 1.867 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001088/0.5999, allocations: 430.5 kB / 452.7 MB, free: 1.426 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003169/0.6002, allocations: 43.94 kB / 452.8 MB, free: 1.383 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008706/0.6011, allocations: 63.95 kB / 452.8 MB, free: 1.32 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000264/0.6014, allocations: 105.2 kB / 452.9 MB, free: 1.219 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.969e-05/0.6014, allocations: 36 kB / 453 MB, free: 1.184 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.002115/0.6036, allocations: 1.305 MB / 454.3 MB, free: 15.89 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.493e-06/0.6036, allocations: 0 / 454.3 MB, free: 15.89 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.002444/0.606, allocations: 0.5768 MB / 454.9 MB, free: 15.32 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 7 (aimc.stator.core.Phi.re,aimc.stator.core.Phi.im,aimc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.re,aimc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.im,vfController.x,mass.s,mass.v) * Number of discrete variables: 3 ($whenCondition1,dutyCycle.nextTimeEvent,dutyCycle.nextTimeEventScaled) * Number of discrete states: 2 (dutyCycle.nextTimeEvent,dutyCycle.nextTimeEventScaled) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (102): * Single equations (assignments): 95 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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 {(1,100.0%) 5,(1,100.0%) 13,(1,100.0%) 3,(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.00597/0.612, allocations: 4.049 MB / 458.9 MB, free: 11.21 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.00356/0.6156, allocations: 2.157 MB / 461.1 MB, free: 8.992 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 7.715e-06/0.6156, allocations: 4 kB / 461.1 MB, free: 8.988 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002383/0.618, allocations: 1.575 MB / 462.7 MB, free: 7.352 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002721/0.6207, allocations: 0.522 MB / 463.2 MB, free: 6.828 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03453/0.6553, allocations: 16.83 MB / 480 MB, free: 4.914 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002075/0.6574, allocations: 2.356 MB / 482.4 MB, free: 2.523 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.001569/0.659, allocations: 413 kB / 482.8 MB, free: 2.117 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001493/0.6605, allocations: 1.167 MB / 483.9 MB, free: 0.9492 MB / 366.1 MB Notification: Performance of SimCode: time 8.92e-07/0.6605, allocations: 0 / 483.9 MB, free: 0.9492 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08514/0.7457, allocations: 50.29 MB / 0.5217 GB, free: 14.56 MB / 430.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.00021/0.7459, allocations: 275.6 kB / 0.522 GB, free: 14.2 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.38/4.126, allocations: 0 / 0.522 GB, free: 14.2 MB / 430.1 MB (rm -f Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Conveyor.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Conveyor.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Conveyor.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Conveyor.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Conveyor_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMC_Conveyor_fmu --startTime=0 --stopTime=20 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMC_Conveyor.fmu > Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Conveyor.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_Conveyor_res.mat does not exist to compare? outputFormat=mat