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.0009431/0.0009432, allocations: 97.88 kB / 16.93 MB, free: 5.984 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.001133/0.001133, allocations: 179.3 kB / 17.82 MB, free: 5.652 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.393/1.393, 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.0004393/0.0004393, allocations: 8 kB / 280.9 MB, free: 3.648 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1035/0.1039, allocations: 47.58 MB / 328.4 MB, free: 4 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Conveyor): time 0.01183/0.1158, allocations: 10.8 MB / 339.2 MB, free: 9.16 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.008607/0.1244, allocations: 4.498 MB / 343.7 MB, free: 4.648 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001813/0.1263, allocations: 67.69 kB / 343.8 MB, free: 4.582 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002356/0.1286, allocations: 0.8592 MB / 344.7 MB, free: 3.719 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003476/0.1321, allocations: 1.203 MB / 345.9 MB, free: 2.512 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002016/0.1341, allocations: 0.6936 MB / 346.5 MB, free: 1.816 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.005041/0.1392, allocations: 2.784 MB / 349.3 MB, free: 15.02 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002692/0.1419, allocations: 2.202 MB / 351.5 MB, free: 12.79 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001879/0.1438, allocations: 1.281 MB / 352.8 MB, free: 11.5 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001799/0.1456, allocations: 1.513 MB / 354.3 MB, free: 9.98 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003352/0.146, allocations: 208 kB / 354.5 MB, free: 9.777 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001058/0.147, allocations: 399.7 kB / 354.9 MB, free: 9.387 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007129/0.1478, allocations: 0.7475 MB / 355.7 MB, free: 8.637 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008038/0.1486, allocations: 0.7421 MB / 356.4 MB, free: 7.887 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005431/0.154, allocations: 5.504 MB / 361.9 MB, free: 2.367 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.567e-06/0.154, allocations: 0 / 361.9 MB, free: 2.367 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.864e-06/0.154, allocations: 0 / 361.9 MB, free: 2.367 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0001473/0.1542, allocations: 0 / 361.9 MB, free: 2.367 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: 843 * Number of variables: 843 Notification: Performance of Generate backend data structure: time 0.009647/0.1639, allocations: 3.817 MB / 365.7 MB, free: 14.48 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.65e-05/0.1639, allocations: 8.031 kB / 365.7 MB, free: 14.47 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0008351/0.1648, allocations: 459.5 kB / 366.2 MB, free: 14.01 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004099/0.1689, allocations: 0.8309 MB / 367 MB, free: 13.17 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003982/0.1729, allocations: 2.214 MB / 369.2 MB, free: 10.9 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001671/0.173, allocations: 234.4 kB / 369.5 MB, free: 10.67 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004512/0.1735, allocations: 327.8 kB / 369.8 MB, free: 10.35 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006993/0.1805, allocations: 4.229 MB / 374 MB, free: 6.074 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.432e-05/0.1806, allocations: 19.81 kB / 374 MB, free: 6.055 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002986/0.1809, allocations: 132 kB / 374.2 MB, free: 5.926 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001586/0.1811, allocations: 154.4 kB / 374.3 MB, free: 5.773 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006281/0.1873, allocations: 3.594 MB / 377.9 MB, free: 2.172 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.188/0.3753, allocations: 13.42 MB / 391.3 MB, free: 41.95 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005407/0.3808, allocations: 6.941 MB / 398.3 MB, free: 35.64 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005093/0.3859, allocations: 3.285 MB / 401.6 MB, free: 33.23 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001196/0.3871, allocations: 0.9209 MB / 402.5 MB, free: 32.62 MB / 318.1 MB Notification: Performance of pre-optimization done (n=143): time 3.066e-06/0.3872, allocations: 0 / 402.5 MB, free: 32.62 MB / 318.1 MB Notification: Performance of matching and sorting (n=152): time 0.0115/0.3987, allocations: 6.897 MB / 409.4 MB, free: 28.35 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.677e-05/0.3988, allocations: 229.8 kB / 409.6 MB, free: 28.09 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001991/0.4008, allocations: 1.84 MB / 411.4 MB, free: 27.11 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 8.741e-05/0.4009, allocations: 56.98 kB / 411.5 MB, free: 27.05 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008448/0.4017, allocations: 1.452 MB / 412.9 MB, free: 25.79 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002518/0.402, allocations: 0.5139 MB / 413.5 MB, free: 25.35 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.174e-05/0.402, allocations: 35.25 kB / 413.5 MB, free: 25.32 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 8.732e-05/0.4021, allocations: 376.4 kB / 413.9 MB, free: 24.96 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008845/0.403, allocations: 0.6972 MB / 414.6 MB, free: 24.6 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001088/0.4041, allocations: 1.231 MB / 415.8 MB, free: 23.56 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001089/0.4052, allocations: 0.9199 MB / 416.7 MB, free: 22.85 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.452e-06/0.4052, allocations: 4 kB / 416.7 MB, free: 22.84 MB / 318.1 MB Notification: Performance of matching and sorting (n=227) (initialization): time 0.003014/0.4083, allocations: 2.502 MB / 419.2 MB, free: 20.3 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.255e-05/0.4083, allocations: 15.84 kB / 419.2 MB, free: 20.29 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.449e-05/0.4083, allocations: 12 kB / 419.2 MB, free: 20.28 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006059/0.4089, allocations: 292.3 kB / 419.5 MB, free: 19.98 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001325/0.4103, allocations: 399.4 kB / 419.9 MB, free: 19.59 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004044/0.4143, allocations: 5.93 MB / 425.8 MB, free: 13.27 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001355/0.4157, allocations: 96.05 kB / 425.9 MB, free: 13.17 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001067/0.4158, allocations: 72 kB / 426 MB, free: 13.1 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 63 * 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 (204): * Single equations (assignments): 200 * 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%) 5,(1,100.0%) 4,(1,100.0%) 13} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001522/0.4173, allocations: 1.044 MB / 427.1 MB, free: 12.05 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002388/0.4176, allocations: 200 kB / 427.2 MB, free: 11.85 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003204/0.4208, allocations: 2.375 MB / 429.6 MB, free: 9.414 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.809e-06/0.4208, allocations: 12 kB / 429.6 MB, free: 9.402 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.977e-06/0.4208, allocations: 8 kB / 429.6 MB, free: 9.395 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.387e-05/0.4209, allocations: 7.969 kB / 429.7 MB, free: 9.387 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006592/0.4275, allocations: 5.444 MB / 435.1 MB, free: 3.824 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.542e-06/0.4275, allocations: 8.016 kB / 435.1 MB, free: 3.816 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007599/0.4283, allocations: 199.8 kB / 435.3 MB, free: 3.621 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009367/0.4292, allocations: 467.3 kB / 435.8 MB, free: 3.152 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.364e-05/0.4293, allocations: 47.92 kB / 435.8 MB, free: 3.105 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008501/0.4378, allocations: 10.29 MB / 446.1 MB, free: 8.176 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.324e-06/0.4378, allocations: 0 / 446.1 MB, free: 8.176 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005026/0.4429, allocations: 3.416 MB / 449.5 MB, free: 4.641 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001195/0.4441, allocations: 443.4 kB / 449.9 MB, free: 4.188 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002685/0.4444, allocations: 36.12 kB / 450 MB, free: 4.152 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008615/0.4453, allocations: 71.95 kB / 450 MB, free: 4.082 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002993/0.4456, allocations: 109.1 kB / 450.2 MB, free: 3.977 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.328e-05/0.4457, allocations: 47.98 kB / 450.2 MB, free: 3.93 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.001875/0.4475, allocations: 1.263 MB / 451.5 MB, free: 2.676 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4476, allocations: 1.75 kB / 451.5 MB, free: 2.676 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.002258/0.4498, allocations: 0.5886 MB / 452.1 MB, free: 2.09 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * 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 (114): * Single equations (assignments): 107 * 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%) 3,(1,100.0%) 8,(1,100.0%) 13,(2,100.0%) 12} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.006331/0.4562, allocations: 4.708 MB / 456.8 MB, free: 13.29 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.003583/0.4598, allocations: 2.264 MB / 459 MB, free: 10.97 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 5.04e-06/0.4598, allocations: 0 / 459 MB, free: 10.97 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002295/0.4621, allocations: 1.623 MB / 460.6 MB, free: 9.285 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002245/0.4644, allocations: 0.4985 MB / 461.1 MB, free: 8.785 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03456/0.4989, allocations: 26.16 MB / 487.3 MB, free: 13.44 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002127/0.5011, allocations: 2.422 MB / 489.7 MB, free: 10.99 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001605/0.5027, allocations: 425.1 kB / 490.1 MB, free: 10.57 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001365/0.5041, allocations: 1.171 MB / 491.3 MB, free: 9.398 MB / 382.1 MB Notification: Performance of SimCode: time 1.713e-06/0.5041, allocations: 0 / 491.3 MB, free: 9.398 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07922/0.5833, allocations: 50.42 MB / 0.529 GB, free: 6.883 MB / 430.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002385/0.5836, allocations: 273.6 kB / 0.5293 GB, free: 6.516 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.591/3.175, allocations: 0 / 0.5293 GB, free: 6.516 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