Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Conveyor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Conveyor,fileNamePrefix="Modelica_trunk_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_trunk_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 trunk/package.mo): time 0.0009446/0.0009446, allocations: 102 kB / 17 MB, free: 6.418 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001171/0.001171, allocations: 191.8 kB / 17.9 MB, free: 5.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.382/1.382, allocations: 227.4 MB / 246 MB, free: 10.27 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000303/0.0003032, allocations: 4 kB / 306.8 MB, free: 1.254 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1083/0.1086, allocations: 51.5 MB / 358.3 MB, free: 13.75 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Conveyor): time 0.01411/0.1227, allocations: 12.38 MB / 370.7 MB, free: 1.324 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.2005/0.3233, allocations: 4.796 MB / 375.5 MB, free: 9.52 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002209/0.3256, allocations: 76.59 kB / 375.6 MB, free: 9.52 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003768/0.3294, allocations: 0.8637 MB / 376.4 MB, free: 9.41 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005217/0.3346, allocations: 1.146 MB / 377.6 MB, free: 9.094 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002785/0.3374, allocations: 0.7265 MB / 378.3 MB, free: 9.016 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.006372/0.3438, allocations: 4.135 MB / 382.4 MB, free: 8.066 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003839/0.3477, allocations: 2.243 MB / 384.7 MB, free: 7.629 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003106/0.3508, allocations: 1.317 MB / 386 MB, free: 7.34 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003711/0.3546, allocations: 1.682 MB / 387.7 MB, free: 6.988 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000916/0.3555, allocations: 207.3 kB / 387.9 MB, free: 6.988 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002402/0.3579, allocations: 450.3 kB / 388.3 MB, free: 6.973 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00103/0.359, allocations: 0.7776 MB / 389.1 MB, free: 6.84 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001525/0.3605, allocations: 0.7468 MB / 389.9 MB, free: 6.578 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006443/0.367, allocations: 5.596 MB / 395.4 MB, free: 2.973 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.26e-06/0.367, allocations: 1.375 kB / 395.4 MB, free: 2.973 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.535e-06/0.367, allocations: 4 kB / 395.5 MB, free: 2.969 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0001371/0.3671, allocations: 0 / 395.5 MB, free: 2.969 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.009358/0.3765, allocations: 3.856 MB / 399.3 MB, free: 496 kB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.49e-05/0.3766, allocations: 10.25 kB / 399.3 MB, free: 496 kB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0008587/0.3774, allocations: 467.5 kB / 399.8 MB, free: 144 kB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004174/0.3816, allocations: 0.8326 MB / 400.6 MB, free: 15.74 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004384/0.386, allocations: 2.314 MB / 402.9 MB, free: 14.08 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001736/0.3862, allocations: 239.7 kB / 403.2 MB, free: 13.97 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006039/0.3868, allocations: 317.2 kB / 403.5 MB, free: 13.87 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008187/0.395, allocations: 4.268 MB / 407.7 MB, free: 9.762 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.132e-05/0.3951, allocations: 8 kB / 407.7 MB, free: 9.754 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003111/0.3954, allocations: 139.8 kB / 407.9 MB, free: 9.621 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001653/0.3956, allocations: 154.4 kB / 408 MB, free: 9.469 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006839/0.4025, allocations: 3.609 MB / 411.6 MB, free: 5.852 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02363/0.4261, allocations: 13.55 MB / 425.2 MB, free: 8.055 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007039/0.4332, allocations: 7.216 MB / 432.4 MB, free: 15.89 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003139/0.4364, allocations: 1.585 MB / 434 MB, free: 14.32 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007863/0.4443, allocations: 4.341 MB / 438.3 MB, free: 9.875 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001444/0.4458, allocations: 0.865 MB / 439.2 MB, free: 8.973 MB / 350.1 MB Notification: Performance of pre-optimization done (n=132): time 3.316e-06/0.4458, allocations: 4 kB / 439.2 MB, free: 8.969 MB / 350.1 MB Notification: Performance of matching and sorting (n=140): time 0.01426/0.4601, allocations: 6.762 MB / 446 MB, free: 2.012 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001331/0.4603, allocations: 222.9 kB / 446.2 MB, free: 1.742 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003095/0.4634, allocations: 1.918 MB / 448.1 MB, free: 15.78 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001764/0.4636, allocations: 53.7 kB / 448.1 MB, free: 15.72 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001359/0.4649, allocations: 1.487 MB / 449.6 MB, free: 14.22 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004258/0.4654, allocations: 490 kB / 450.1 MB, free: 13.75 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.608e-05/0.4655, allocations: 36 kB / 450.1 MB, free: 13.71 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001854/0.4657, allocations: 377.8 kB / 450.5 MB, free: 13.34 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001143/0.4668, allocations: 0.6715 MB / 451.2 MB, free: 12.66 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001452/0.4683, allocations: 1.221 MB / 452.4 MB, free: 11.22 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00135/0.4696, allocations: 0.8942 MB / 453.3 MB, free: 10.32 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.102e-05/0.4697, allocations: 4 kB / 453.3 MB, free: 10.32 MB / 366.1 MB Notification: Performance of matching and sorting (n=219) (initialization): time 0.004201/0.4739, allocations: 2.505 MB / 455.8 MB, free: 7.777 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.722e-05/0.4739, allocations: 12 kB / 455.8 MB, free: 7.766 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.454e-05/0.4739, allocations: 12 kB / 455.8 MB, free: 7.754 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008321/0.4748, allocations: 335.5 kB / 456.2 MB, free: 7.414 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001342/0.4761, allocations: 383.4 kB / 456.5 MB, free: 7.039 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006689/0.4828, allocations: 6.277 MB / 462.8 MB, free: 372 kB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001857/0.4847, allocations: 96.11 kB / 462.9 MB, free: 276 kB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001754/0.4849, allocations: 79.98 kB / 463 MB, free: 196 kB / 366.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 (193): * Single equations (assignments): 189 * 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%) 8,(1,100.0%) 13} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002238/0.4872, allocations: 1.038 MB / 464 MB, free: 15.14 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004457/0.4876, allocations: 197.6 kB / 464.2 MB, free: 14.95 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004309/0.4919, allocations: 2.348 MB / 466.6 MB, free: 12.54 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.633e-05/0.492, allocations: 12 kB / 466.6 MB, free: 12.52 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.372e-05/0.492, allocations: 8 kB / 466.6 MB, free: 12.52 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.673e-05/0.492, allocations: 7.969 kB / 466.6 MB, free: 12.51 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009649/0.5017, allocations: 5.226 MB / 471.8 MB, free: 7.18 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.426e-06/0.5017, allocations: 4 kB / 471.8 MB, free: 7.176 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008032/0.5025, allocations: 183.7 kB / 472 MB, free: 6.996 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001336/0.5039, allocations: 0.5038 MB / 472.5 MB, free: 6.477 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001115/0.504, allocations: 39.94 kB / 472.5 MB, free: 6.438 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01199/0.516, allocations: 10.61 MB / 483.2 MB, free: 11.17 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.95e-06/0.5161, allocations: 3.953 kB / 483.2 MB, free: 11.17 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005799/0.5219, allocations: 3.225 MB / 486.4 MB, free: 7.863 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001258/0.5232, allocations: 442.4 kB / 486.8 MB, free: 7.41 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003018/0.5235, allocations: 36 kB / 486.9 MB, free: 7.375 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008505/0.5243, allocations: 71.89 kB / 486.9 MB, free: 7.305 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003093/0.5247, allocations: 109.1 kB / 487 MB, free: 7.195 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.777e-05/0.5248, allocations: 39.98 kB / 487.1 MB, free: 7.156 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.002288/0.527, allocations: 1.316 MB / 488.4 MB, free: 5.816 MB / 398.1 MB Notification: Performance of sort global known variables: time 2.2e-07/0.5271, allocations: 0 / 488.4 MB, free: 5.816 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.002639/0.5297, allocations: 0.5937 MB / 489 MB, free: 5.223 MB / 398.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 (99): * Single equations (assignments): 92 * 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%) 8,(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.006386/0.5361, allocations: 4.164 MB / 493.1 MB, free: 1.121 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.003811/0.5399, allocations: 2.214 MB / 495.4 MB, free: 14.86 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 6.042e-06/0.54, allocations: 0 / 495.4 MB, free: 14.86 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002369/0.5424, allocations: 1.615 MB / 497 MB, free: 13.18 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002791/0.5452, allocations: 0.537 MB / 497.5 MB, free: 12.66 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03601/0.5812, allocations: 17.08 MB / 0.5025 GB, free: 10.46 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002364/0.5836, allocations: 2.368 MB / 0.5048 GB, free: 8.059 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.001601/0.5852, allocations: 401.2 kB / 0.5052 GB, free: 7.664 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00155/0.5868, allocations: 1.19 MB / 0.5064 GB, free: 6.477 MB / 430.1 MB Notification: Performance of SimCode: time 1.463e-06/0.5868, allocations: 0 / 0.5064 GB, free: 6.477 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2752/0.862, allocations: 51.25 MB / 0.5564 GB, free: 136.4 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001623/0.8622, allocations: 287.9 kB / 0.5567 GB, free: 136.1 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.001/3.863, allocations: 4 kB / 0.5567 GB, free: 136 MB / 446.1 MB (rm -f Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Conveyor.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Conveyor.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Conveyor.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Conveyor.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Conveyor_res.mat --tempDir=temp_Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_Conveyor_fmu --startTime=0 --stopTime=20 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_Conveyor.fmu > Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Conveyor.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Conveyor_res.mat does not exist to compare? outputFormat=mat