Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_DOL.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_DOL,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_DOL",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_DOL,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_DOL",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001135/0.001135, allocations: 93.25 kB / 17 MB, free: 6.844 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001534/0.001534, allocations: 196.1 kB / 17.9 MB, free: 6.062 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.418/1.418, allocations: 227.4 MB / 246 MB, free: 11.98 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003369/0.000337, allocations: 4 kB / 306.8 MB, free: 1.449 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1187/0.1191, allocations: 51.5 MB / 358.3 MB, free: 13.95 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_DOL): time 0.2267/0.3458, allocations: 34.03 MB / 392.4 MB, free: 2.863 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.02458/0.3705, allocations: 9.521 MB / 401.9 MB, free: 11.82 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.009261/0.3798, allocations: 272.6 kB / 402.1 MB, free: 11.76 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.009697/0.3895, allocations: 1.897 MB / 404 MB, free: 10.84 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01597/0.4055, allocations: 3.352 MB / 407.4 MB, free: 8.277 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007977/0.4135, allocations: 1.598 MB / 409 MB, free: 7.078 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0311/0.4446, allocations: 18.97 MB / 428 MB, free: 7.191 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.06002/0.5047, allocations: 24.64 MB / 452.6 MB, free: 14.43 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01769/0.5225, allocations: 6.101 MB / 458.7 MB, free: 8.309 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01498/0.5375, allocations: 6.899 MB / 465.6 MB, free: 1.383 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.005393/0.543, allocations: 0.9375 MB / 466.5 MB, free: 456 kB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.009225/0.5522, allocations: 1.324 MB / 467.9 MB, free: 15.12 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.007713/0.56, allocations: 2.986 MB / 470.9 MB, free: 12.12 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.008518/0.5685, allocations: 3.084 MB / 473.9 MB, free: 9.027 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0384/0.6069, allocations: 27.09 MB / 0.4893 GB, free: 13.87 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.037e-06/0.607, allocations: 0 / 0.4893 GB, free: 13.87 MB / 414.1 MB Notification: Performance of FrontEnd: time 3.667e-06/0.607, allocations: 0 / 0.4893 GB, free: 13.87 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.00108/0.6081, allocations: 0 / 0.4893 GB, free: 13.87 MB / 414.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3921 * Number of variables: 3921 Notification: Performance of Generate backend data structure: time 0.05318/0.6613, allocations: 15.79 MB / 0.5047 GB, free: 13.96 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.267e-05/0.6614, allocations: 8.031 kB / 0.5047 GB, free: 13.95 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.01103/0.6724, allocations: 2.286 MB / 0.5069 GB, free: 11.65 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04668/0.7191, allocations: 8.332 MB / 0.5151 GB, free: 3.289 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02407/0.7433, allocations: 9.77 MB / 0.5246 GB, free: 9.441 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001423/0.7447, allocations: 1.067 MB / 0.5257 GB, free: 8.375 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.007411/0.7521, allocations: 1.406 MB / 0.527 GB, free: 6.969 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.5464/1.299, allocations: 22.66 MB / 0.5492 GB, free: 109.8 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004677/1.299, allocations: 23.41 kB / 0.5492 GB, free: 109.8 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003485/1.303, allocations: 0.5824 MB / 0.5498 GB, free: 109.4 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001045/1.304, allocations: 0.7721 MB / 0.5505 GB, free: 109.3 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04648/1.35, allocations: 20.94 MB / 0.571 GB, free: 100.6 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1147/1.465, allocations: 73.73 MB / 0.643 GB, free: 29.41 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0326/1.497, allocations: 42.69 MB / 0.6847 GB, free: 13.74 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.01044/1.508, allocations: 5.283 MB / 0.6898 GB, free: 8.445 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02776/1.536, allocations: 13.11 MB / 0.7026 GB, free: 11.32 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.922e-05/1.536, allocations: 90.78 kB / 0.7027 GB, free: 11.23 MB / 494.1 MB Notification: Performance of pre-optimization done (n=504): time 6.062e-06/1.536, allocations: 3.938 kB / 0.7027 GB, free: 11.22 MB / 494.1 MB Notification: Performance of matching and sorting (n=512): time 0.3635/1.899, allocations: 28.96 MB / 0.731 GB, free: 145.2 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000119/1.9, allocations: 129.5 kB / 0.7311 GB, free: 145.1 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01486/1.915, allocations: 5.728 MB / 0.7367 GB, free: 143 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.001326/1.916, allocations: 112.7 kB / 0.7368 GB, free: 142.9 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.004792/1.921, allocations: 6.155 MB / 0.7428 GB, free: 138.3 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.002408/1.923, allocations: 1.752 MB / 0.7445 GB, free: 137 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005131/1.924, allocations: 151.3 kB / 0.7447 GB, free: 136.9 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0003541/1.924, allocations: 0.608 MB / 0.7453 GB, free: 136.4 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005218/1.929, allocations: 3.651 MB / 0.7488 GB, free: 135 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007028/1.936, allocations: 6.5 MB / 0.7552 GB, free: 130 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007609/1.944, allocations: 5.033 MB / 0.7601 GB, free: 127.8 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.893e-05/1.944, allocations: 27.41 kB / 0.7601 GB, free: 127.8 MB / 494.1 MB Notification: Performance of matching and sorting (n=968) (initialization): time 0.02191/1.966, allocations: 12.14 MB / 0.772 GB, free: 122.8 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.777e-05/1.966, allocations: 51.34 kB / 0.772 GB, free: 122.8 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001856/1.966, allocations: 93.06 kB / 0.7721 GB, free: 122.8 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004083/1.97, allocations: 1.601 MB / 0.7737 GB, free: 122.4 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006467/1.977, allocations: 1.665 MB / 0.7753 GB, free: 122.2 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01953/1.996, allocations: 18.21 MB / 0.7931 GB, free: 105.3 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007183/2.004, allocations: 439.4 kB / 0.7935 GB, free: 105 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001914/2.006, allocations: 367.7 kB / 0.7939 GB, free: 104.6 MB / 494.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 423 * Number of states: 0 () * Number of discrete variables: 6 (booleanStepQS[1].y,booleanStepQS[2].y,booleanStepQS[3].y,idealCloser.control[1],idealCloser.control[2],idealCloser.control[3]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (868): * Single equations (assignments): 858 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * 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%) 1,(12,54.2%) 64,(1,100.0%) 5,(1,100.0%) 1,(1,100.0%) 13} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.01242/2.018, allocations: 5.182 MB / 0.7989 GB, free: 100.2 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002044/2.02, allocations: 0.5979 MB / 0.7995 GB, free: 99.59 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01632/2.036, allocations: 9.453 MB / 0.8087 GB, free: 90.17 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.008814/2.045, allocations: 5.928 MB / 0.8145 GB, free: 84.21 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.972e-05/2.045, allocations: 23.98 kB / 0.8145 GB, free: 84.19 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.914e-05/2.045, allocations: 23.91 kB / 0.8146 GB, free: 84.17 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03701/2.083, allocations: 21.14 MB / 0.8352 GB, free: 62.93 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.347e-05/2.083, allocations: 4 kB / 0.8352 GB, free: 62.92 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003409/2.086, allocations: 0.8627 MB / 0.8361 GB, free: 62.06 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004134/2.09, allocations: 1.63 MB / 0.8377 GB, free: 60.41 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008023/2.091, allocations: 135.9 kB / 0.8378 GB, free: 60.27 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02101/2.112, allocations: 21.32 MB / 0.8586 GB, free: 38.06 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.246e-06/2.112, allocations: 11.94 kB / 0.8586 GB, free: 38.05 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02005/2.132, allocations: 13.83 MB / 0.8721 GB, free: 23.86 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003882/2.136, allocations: 1.368 MB / 0.8735 GB, free: 22.46 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001616/2.138, allocations: 108 kB / 0.8736 GB, free: 22.36 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003409/2.141, allocations: 295.7 kB / 0.8738 GB, free: 22.07 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009071/2.142, allocations: 416.4 kB / 0.8742 GB, free: 21.66 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003267/2.142, allocations: 152 kB / 0.8744 GB, free: 21.51 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.006022/2.148, allocations: 3.849 MB / 0.8781 GB, free: 17.69 MB / 494.1 MB Notification: Performance of sort global known variables: time 4.91e-07/2.148, allocations: 0 / 0.8781 GB, free: 17.69 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.01096/2.159, allocations: 2.349 MB / 0.8804 GB, free: 15.35 MB / 494.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 27 * Number of states: 10 (imc.inertiaRotor.w,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,quadraticLoadTorque.phi,loadInertiaQS.w,quadraticLoadTorqueQS.phi,imcQS.rotorCage.port_p.reference.gamma) * Number of discrete variables: 6 (idealCloser.control[1],idealCloser.control[2],idealCloser.control[3],booleanStepQS[1].y,booleanStepQS[2].y,booleanStepQS[3].y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (441): * Single equations (assignments): 430 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * 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%) 1,(1,100.0%) 5,(1,100.0%) 8,(1,100.0%) 13,(2,100.0%) 12,(1,100.0%) 1,(12,52.8%) 64} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.352/2.511, allocations: 14.62 MB / 0.8947 GB, free: 136.6 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.02017/2.532, allocations: 9.903 MB / 0.9044 GB, free: 134.9 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.416e-05/2.532, allocations: 4.75 kB / 0.9044 GB, free: 134.9 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.01175/2.543, allocations: 5.479 MB / 0.9097 GB, free: 132.3 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01148/2.555, allocations: 1.584 MB / 0.9113 GB, free: 131.8 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1687/2.724, allocations: 74.77 MB / 0.9843 GB, free: 78.23 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01727/2.741, allocations: 8.857 MB / 0.9929 GB, free: 71.23 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.009364/2.75, allocations: 2.539 MB / 0.9954 GB, free: 68.68 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.009947/2.76, allocations: 5.174 MB / 1 GB, free: 63.51 MB / 494.1 MB Notification: Performance of SimCode: time 4.118e-06/2.76, allocations: 0 / 1 GB, free: 63.51 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5904/3.351, allocations: 181.8 MB / 1.178 GB, free: 77.32 MB / 0.4982 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001836/3.351, allocations: 267.4 kB / 1.178 GB, free: 76.96 MB / 0.4982 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.286/9.637, allocations: 0 / 1.178 GB, free: 76.96 MB / 0.4982 GB (rm -f Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_DOL.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_DOL.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_DOL.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_DOL.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_DOL_res.mat --tempDir=temp_Modelica_trunk_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_DOL_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_DOL.fmu > Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_DOL.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_DOL_res.mat does not exist to compare? outputFormat=mat