Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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.InductionMachines.IMC_Conveyor,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_Conveyor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Conveyor,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_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.0008576/0.0008576, allocations: 88.39 kB / 16.31 MB, free: 6.457 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.0009183/0.0009185, allocations: 183.1 kB / 17.21 MB, free: 6.324 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.389/1.389, allocations: 223.3 MB / 241.2 MB, free: 5.434 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002728/0.0002728, allocations: 5.875 kB / 300.9 MB, free: 6.023 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1037/0.104, allocations: 50.43 MB / 351.4 MB, free: 11.61 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Conveyor): time 0.01292/0.117, allocations: 11.82 MB / 363.2 MB, free: 15.73 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01213/0.1291, allocations: 4.48 MB / 367.7 MB, free: 11.24 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002968/0.1322, allocations: 71.69 kB / 367.7 MB, free: 11.17 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003544/0.1357, allocations: 0.851 MB / 368.6 MB, free: 10.32 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004808/0.1406, allocations: 1.127 MB / 369.7 MB, free: 9.184 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002997/0.1436, allocations: 0.6884 MB / 370.4 MB, free: 8.5 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.006892/0.1505, allocations: 4.038 MB / 374.4 MB, free: 4.445 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004597/0.1552, allocations: 2.246 MB / 376.7 MB, free: 2.16 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002967/0.1582, allocations: 1.311 MB / 378 MB, free: 0.8438 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003402/0.1616, allocations: 1.669 MB / 379.7 MB, free: 15.17 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00105/0.1627, allocations: 208 kB / 379.9 MB, free: 14.96 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002175/0.1649, allocations: 427.7 kB / 380.3 MB, free: 14.55 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001445/0.1663, allocations: 0.7823 MB / 381.1 MB, free: 13.76 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001773/0.1681, allocations: 0.7459 MB / 381.8 MB, free: 13.01 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007432/0.1756, allocations: 5.551 MB / 387.4 MB, free: 7.441 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.024e-05/0.1756, allocations: 0 / 387.4 MB, free: 7.441 MB / 318.1 MB Notification: Performance of FrontEnd: time 4.429e-06/0.1756, allocations: 0 / 387.4 MB, free: 7.441 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0003064/0.1759, allocations: 0 / 387.4 MB, free: 7.441 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.01209/0.188, allocations: 3.832 MB / 391.2 MB, free: 3.535 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.114e-05/0.1881, allocations: 12.03 kB / 391.2 MB, free: 3.523 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001809/0.1899, allocations: 451.5 kB / 391.6 MB, free: 3.07 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005213/0.1952, allocations: 0.827 MB / 392.5 MB, free: 2.238 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005842/0.201, allocations: 2.304 MB / 394.8 MB, free: 15.88 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003009/0.2014, allocations: 234.4 kB / 395 MB, free: 15.64 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00133/0.2027, allocations: 323.8 kB / 395.3 MB, free: 15.33 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01099/0.2137, allocations: 4.268 MB / 399.6 MB, free: 11.02 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001076/0.2139, allocations: 3.906 kB / 399.6 MB, free: 11.01 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006166/0.2145, allocations: 132 kB / 399.7 MB, free: 10.88 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000183/0.2147, allocations: 154.4 kB / 399.9 MB, free: 10.73 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00824/0.2229, allocations: 3.605 MB / 403.5 MB, free: 7.117 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02603/0.249, allocations: 13.48 MB / 417 MB, free: 9.301 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007646/0.2567, allocations: 6.935 MB / 423.9 MB, free: 1.469 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002859/0.2596, allocations: 1.394 MB / 425.3 MB, free: 80 kB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2176/0.4773, allocations: 3.853 MB / 429.1 MB, free: 60.54 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001347/0.4787, allocations: 0.8519 MB / 430 MB, free: 60.42 MB / 350.1 MB Notification: Performance of pre-optimization done (n=132): time 3.066e-06/0.4787, allocations: 0 / 430 MB, free: 60.42 MB / 350.1 MB Notification: Performance of matching and sorting (n=140): time 0.01337/0.4921, allocations: 6.591 MB / 436.6 MB, free: 58.75 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.504e-05/0.4922, allocations: 226.3 kB / 436.8 MB, free: 58.5 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002978/0.4952, allocations: 1.886 MB / 438.7 MB, free: 57.88 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001199/0.4953, allocations: 52.73 kB / 438.7 MB, free: 57.83 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001107/0.4964, allocations: 1.471 MB / 440.2 MB, free: 56.72 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003584/0.4968, allocations: 496.7 kB / 440.7 MB, free: 56.35 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.779e-05/0.4969, allocations: 35.34 kB / 440.7 MB, free: 56.32 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001043/0.497, allocations: 371.8 kB / 441.1 MB, free: 55.99 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001122/0.4981, allocations: 0.6653 MB / 441.8 MB, free: 55.73 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001238/0.4994, allocations: 1.204 MB / 443 MB, free: 54.82 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001077/0.5004, allocations: 0.8832 MB / 443.8 MB, free: 54.4 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.315e-06/0.5005, allocations: 3.969 kB / 443.8 MB, free: 54.4 MB / 350.1 MB Notification: Performance of matching and sorting (n=219) (initialization): time 0.003308/0.5038, allocations: 2.423 MB / 446.3 MB, free: 53.28 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.537e-05/0.5038, allocations: 11.88 kB / 446.3 MB, free: 53.28 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.09e-05/0.5038, allocations: 17.34 kB / 446.3 MB, free: 53.28 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006461/0.5045, allocations: 288 kB / 446.6 MB, free: 53.18 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001297/0.5058, allocations: 382.8 kB / 447 MB, free: 53.14 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0044/0.5102, allocations: 5.839 MB / 452.8 MB, free: 48.16 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001851/0.5121, allocations: 98.89 kB / 452.9 MB, free: 48.12 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000167/0.5123, allocations: 78.11 kB / 453 MB, free: 48.11 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 66 * 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.001977/0.5143, allocations: 1.039 MB / 454 MB, free: 47.52 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004131/0.5147, allocations: 193.6 kB / 454.2 MB, free: 47.42 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003479/0.5182, allocations: 2.262 MB / 456.5 MB, free: 46.05 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.157e-05/0.5182, allocations: 15.03 kB / 456.5 MB, free: 46.05 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.271e-05/0.5182, allocations: 8.391 kB / 456.5 MB, free: 46.05 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.516e-05/0.5183, allocations: 15.81 kB / 456.5 MB, free: 46.04 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00675/0.525, allocations: 5.113 MB / 461.6 MB, free: 41.6 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.602e-06/0.5251, allocations: 0 / 461.6 MB, free: 41.6 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000716/0.5258, allocations: 188.5 kB / 461.8 MB, free: 41.42 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009994/0.5268, allocations: 461.3 kB / 462.2 MB, free: 40.96 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.596e-05/0.5269, allocations: 35.98 kB / 462.3 MB, free: 40.92 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007145/0.534, allocations: 10.19 MB / 472.5 MB, free: 30.1 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.775e-06/0.5341, allocations: 4.031 kB / 472.5 MB, free: 30.1 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00428/0.5384, allocations: 3.13 MB / 475.6 MB, free: 26.89 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009847/0.5394, allocations: 434.5 kB / 476 MB, free: 26.45 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002386/0.5396, allocations: 36 kB / 476.1 MB, free: 26.41 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007367/0.5404, allocations: 67.95 kB / 476.1 MB, free: 26.34 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002273/0.5406, allocations: 101.1 kB / 476.2 MB, free: 26.25 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.115e-05/0.5407, allocations: 44.11 kB / 476.3 MB, free: 26.2 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.00157/0.5423, allocations: 1.299 MB / 477.6 MB, free: 24.91 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.21e-07/0.5423, allocations: 1.688 kB / 477.6 MB, free: 24.91 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.002162/0.5444, allocations: 0.5845 MB / 478.2 MB, free: 24.33 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * 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.00492/0.5494, allocations: 4.047 MB / 482.2 MB, free: 20.38 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.003003/0.5524, allocations: 2.167 MB / 484.4 MB, free: 18.16 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 5.58e-06/0.5524, allocations: 4 kB / 484.4 MB, free: 18.15 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001903/0.5543, allocations: 1.579 MB / 485.9 MB, free: 16.51 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00229/0.5566, allocations: 0.5169 MB / 486.5 MB, free: 16 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02801/0.5847, allocations: 16.81 MB / 0.4915 GB, free: 14.11 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002098/0.5868, allocations: 2.356 MB / 0.4938 GB, free: 11.72 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.00151/0.5883, allocations: 413 kB / 0.4942 GB, free: 11.32 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001532/0.5899, allocations: 1.167 MB / 0.4953 GB, free: 10.15 MB / 366.1 MB Notification: Performance of SimCode: time 8.82e-07/0.5899, allocations: 0 / 0.4953 GB, free: 10.15 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07979/0.6697, allocations: 50.35 MB / 0.5445 GB, free: 8.27 MB / 414.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002148/0.6699, allocations: 292.4 kB / 0.5448 GB, free: 7.918 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.023/3.693, allocations: 4 kB / 0.5448 GB, free: 7.914 MB / 414.1 MB (rm -f Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Conveyor.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Conveyor.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Conveyor.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Conveyor.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Conveyor_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_Conveyor_fmu --startTime=0 --stopTime=20 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_Conveyor.fmu > Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Conveyor.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Conveyor_res.mat does not exist to compare? outputFormat=mat