Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.QuasiStatic.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.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Conveyor,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_Conveyor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Conveyor,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_QuasiStatic_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.0009702/0.0009701, allocations: 99.25 kB / 17 MB, free: 6.055 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001165/0.001165, allocations: 194.3 kB / 17.9 MB, free: 5.641 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.43/1.43, allocations: 227.3 MB / 246 MB, free: 11.89 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002383/0.0002383, allocations: 8 kB / 306.8 MB, free: 1.441 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1356/0.1359, allocations: 51.49 MB / 358.3 MB, free: 13.95 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Conveyor): time 0.2714/0.4074, allocations: 30.32 MB / 388.7 MB, free: 5.402 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.02244/0.4298, allocations: 9.289 MB / 398 MB, free: 14.59 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01007/0.4399, allocations: 231 kB / 398.2 MB, free: 14.54 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.008856/0.4488, allocations: 1.789 MB / 400 MB, free: 13.71 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01895/0.4678, allocations: 3.134 MB / 403.1 MB, free: 11.61 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.008623/0.4765, allocations: 1.554 MB / 404.7 MB, free: 10.46 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.02735/0.5038, allocations: 15.99 MB / 420.6 MB, free: 14.45 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0371/0.541, allocations: 17.73 MB / 438.4 MB, free: 12.61 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01097/0.552, allocations: 4.843 MB / 443.2 MB, free: 7.75 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01286/0.5649, allocations: 5.538 MB / 448.8 MB, free: 2.191 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.004273/0.5692, allocations: 0.7344 MB / 449.5 MB, free: 1.457 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00885/0.5781, allocations: 1.128 MB / 450.6 MB, free: 336 kB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005246/0.5834, allocations: 2.386 MB / 453 MB, free: 13.93 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00685/0.5903, allocations: 2.422 MB / 455.4 MB, free: 11.5 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02751/0.6178, allocations: 21.28 MB / 476.7 MB, free: 6.16 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.077e-06/0.6179, allocations: 4 kB / 476.7 MB, free: 6.156 MB / 382.1 MB Notification: Performance of FrontEnd: time 3.767e-06/0.6179, allocations: 0 / 476.7 MB, free: 6.156 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0008244/0.6187, allocations: 4 kB / 476.7 MB, free: 6.152 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3019 * Number of variables: 3019 Notification: Performance of Generate backend data structure: time 0.03943/0.6581, allocations: 12.6 MB / 489.3 MB, free: 9.441 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.994e-05/0.6582, allocations: 12.03 kB / 489.3 MB, free: 9.43 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.007355/0.6656, allocations: 1.554 MB / 490.9 MB, free: 7.863 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03734/0.703, allocations: 6.767 MB / 497.6 MB, free: 1.074 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02194/0.7249, allocations: 7.819 MB / 0.4936 GB, free: 9.18 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001167/0.7262, allocations: 0.8108 MB / 0.4944 GB, free: 8.367 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005549/0.7317, allocations: 1.082 MB / 0.4955 GB, free: 7.285 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.059/0.7908, allocations: 17.33 MB / 0.5124 GB, free: 5.891 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0007361/0.7915, allocations: 15.89 kB / 0.5124 GB, free: 5.875 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00498/0.7965, allocations: 456 kB / 0.5128 GB, free: 5.43 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000859/0.7974, allocations: 0.6397 MB / 0.5135 GB, free: 4.789 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04447/0.8419, allocations: 16.28 MB / 0.5294 GB, free: 4.488 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.6441/1.486, allocations: 56.08 MB / 0.5841 GB, free: 90.53 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02461/1.511, allocations: 33.65 MB / 0.617 GB, free: 58.72 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.008096/1.519, allocations: 4.464 MB / 0.6214 GB, free: 55.77 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02491/1.544, allocations: 12.47 MB / 0.6335 GB, free: 43.35 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004971/1.549, allocations: 3.086 MB / 0.6365 GB, free: 40.2 MB / 446.1 MB Notification: Performance of pre-optimization done (n=434): time 7.815e-06/1.549, allocations: 0 / 0.6365 GB, free: 40.2 MB / 446.1 MB Notification: Performance of matching and sorting (n=452): time 0.06251/1.611, allocations: 25.25 MB / 0.6612 GB, free: 14.79 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001309/1.612, allocations: 411.4 kB / 0.6616 GB, free: 14.3 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009751/1.621, allocations: 4.572 MB / 0.6661 GB, free: 9.723 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.001045/1.622, allocations: 101.7 kB / 0.6662 GB, free: 9.617 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.004697/1.627, allocations: 4.773 MB / 0.6708 GB, free: 4.812 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.00268/1.63, allocations: 1.54 MB / 0.6723 GB, free: 3.285 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001455/1.631, allocations: 120 kB / 0.6724 GB, free: 3.168 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0009456/1.632, allocations: 0.5384 MB / 0.673 GB, free: 2.621 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006284/1.639, allocations: 2.819 MB / 0.6757 GB, free: 15.8 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00805/1.647, allocations: 4.991 MB / 0.6806 GB, free: 9.836 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0076/1.654, allocations: 3.846 MB / 0.6844 GB, free: 5.984 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.03e-05/1.654, allocations: 20 kB / 0.6844 GB, free: 5.965 MB / 462.1 MB Notification: Performance of matching and sorting (n=772) (initialization): time 0.02103/1.675, allocations: 9.535 MB / 0.6937 GB, free: 12.38 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.965e-05/1.676, allocations: 34.03 kB / 0.6937 GB, free: 12.34 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001224/1.676, allocations: 64 kB / 0.6938 GB, free: 12.28 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004303/1.68, allocations: 1.49 MB / 0.6952 GB, free: 10.78 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00572/1.686, allocations: 1.334 MB / 0.6965 GB, free: 9.441 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02317/1.709, allocations: 16.3 MB / 0.7124 GB, free: 8.484 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006014/1.715, allocations: 359.5 kB / 0.7128 GB, free: 8.133 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001502/1.717, allocations: 280 kB / 0.7131 GB, free: 7.859 MB / 494.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 297 * 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 (688): * Single equations (assignments): 682 * 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: 5 * 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: 5 {(1,100.0%) 4,(1,100.0%) 5,(1,100.0%) 13,(1,100.0%) 4,(14,41.8%) 44} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.01079/1.727, allocations: 3.909 MB / 0.7169 GB, free: 3.938 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002099/1.729, allocations: 0.5016 MB / 0.7174 GB, free: 3.43 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.3031/2.033, allocations: 7.946 MB / 0.7251 GB, free: 160.1 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.35e-05/2.033, allocations: 49.83 kB / 0.7252 GB, free: 160 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.238e-05/2.033, allocations: 17.34 kB / 0.7252 GB, free: 160 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001156/2.033, allocations: 25.69 kB / 0.7252 GB, free: 160 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04426/2.077, allocations: 17.45 MB / 0.7423 GB, free: 153.8 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.593e-05/2.077, allocations: 9.078 kB / 0.7423 GB, free: 153.8 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003827/2.081, allocations: 0.7563 MB / 0.743 GB, free: 153.8 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00468/2.086, allocations: 1.575 MB / 0.7445 GB, free: 153.4 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001099/2.087, allocations: 110.5 kB / 0.7446 GB, free: 153.3 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02242/2.109, allocations: 19.53 MB / 0.7637 GB, free: 139.2 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.633e-06/2.109, allocations: 4.781 kB / 0.7637 GB, free: 139.2 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01915/2.128, allocations: 11.44 MB / 0.7749 GB, free: 133.4 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003364/2.132, allocations: 1.159 MB / 0.776 GB, free: 132.6 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001367/2.133, allocations: 94.28 kB / 0.7761 GB, free: 132.5 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002825/2.136, allocations: 244.6 kB / 0.7764 GB, free: 132.3 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008304/2.137, allocations: 337.9 kB / 0.7767 GB, free: 132.1 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002767/2.137, allocations: 131.6 kB / 0.7768 GB, free: 132 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.005383/2.143, allocations: 3.105 MB / 0.7798 GB, free: 129.4 MB / 494.1 MB Notification: Performance of sort global known variables: time 4.11e-07/2.143, allocations: 0 / 0.7798 GB, free: 129.4 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.00866/2.151, allocations: 1.895 MB / 0.7817 GB, free: 127.5 MB / 494.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 19 * Number of states: 11 (imcQS.rotorCage.port_p.reference.gamma,massQS.s,massQS.v,imc.stator.zeroInductor.i0,imc.stator.core.Phi.re,imc.stator.core.Phi.im,imc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.re,imc.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 (396): * Single equations (assignments): 387 * 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: 7 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 7 {(1,100.0%) 3,(14,41.8%) 44,(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.01979/2.171, allocations: 12.49 MB / 0.7939 GB, free: 115.6 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.01464/2.186, allocations: 8.038 MB / 0.8017 GB, free: 107.5 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.208e-05/2.186, allocations: 4 kB / 0.8017 GB, free: 107.5 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.008163/2.194, allocations: 4.65 MB / 0.8063 GB, free: 102.8 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008915/2.203, allocations: 1.29 MB / 0.8075 GB, free: 101.5 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1394/2.342, allocations: 58.23 MB / 0.8644 GB, free: 40.4 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01196/2.354, allocations: 6.837 MB / 0.8711 GB, free: 33.53 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.007142/2.362, allocations: 1.858 MB / 0.8729 GB, free: 31.66 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.007166/2.369, allocations: 4.069 MB / 0.8769 GB, free: 27.59 MB / 494.1 MB Notification: Performance of SimCode: time 2.124e-06/2.369, allocations: 0 / 0.8769 GB, free: 27.59 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5117/2.881, allocations: 149 MB / 1.022 GB, free: 49.65 MB / 494.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001889/2.881, allocations: 310.8 kB / 1.023 GB, free: 49.29 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 5.768/8.649, allocations: 0 / 1.023 GB, free: 49.29 MB / 494.1 MB (rm -f Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Conveyor.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Conveyor.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Conveyor.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Conveyor.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Conveyor_res.mat --tempDir=temp_Modelica_trunk_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_Conveyor_fmu --startTime=0 --stopTime=20 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_Conveyor.fmu > Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Conveyor.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Conveyor_res.mat does not exist to compare? outputFormat=mat