Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_DOL.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.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_DOL,fileNamePrefix="Modelica_4_0_0_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_4_0_0_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 4.0.0+maint.om/package.mo): time 0.000944/0.0009441, allocations: 94.14 kB / 16.3 MB, free: 5.996 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.0009238/0.000924, allocations: 178.4 kB / 17.2 MB, free: 5.914 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.374/1.374, allocations: 223.2 MB / 241.1 MB, free: 5.254 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003595/0.0003596, allocations: 5.938 kB / 300.8 MB, free: 5.559 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1172/0.1176, allocations: 50.42 MB / 351.3 MB, free: 11.34 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_DOL): time 0.03845/0.156, allocations: 30.64 MB / 381.9 MB, free: 12.59 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.02676/0.1829, allocations: 9.652 MB / 391.6 MB, free: 2.918 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.008741/0.1916, allocations: 251.1 kB / 391.8 MB, free: 2.672 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.008793/0.2005, allocations: 2.072 MB / 393.9 MB, free: 0.5898 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01458/0.2151, allocations: 3.476 MB / 397.4 MB, free: 13.11 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.008018/0.2231, allocations: 1.618 MB / 399 MB, free: 11.5 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.02326/0.2464, allocations: 13.65 MB / 412.6 MB, free: 13.84 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.4528/0.6992, allocations: 24.41 MB / 437 MB, free: 7.023 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01385/0.7132, allocations: 5.664 MB / 442.7 MB, free: 7.02 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01311/0.7263, allocations: 6.247 MB / 448.9 MB, free: 7.016 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.004993/0.7314, allocations: 0.9317 MB / 449.9 MB, free: 7.016 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007633/0.739, allocations: 1.236 MB / 451.1 MB, free: 7.016 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.006932/0.746, allocations: 2.891 MB / 454 MB, free: 7.012 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.007581/0.7536, allocations: 3.076 MB / 457.1 MB, free: 6.98 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.03789/0.7915, allocations: 27.2 MB / 484.3 MB, free: 7.711 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.591e-06/0.7916, allocations: 0 / 484.3 MB, free: 7.711 MB / 366.1 MB Notification: Performance of FrontEnd: time 4.308e-06/0.7916, allocations: 0 / 484.3 MB, free: 7.711 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.001362/0.793, allocations: 0 / 484.3 MB, free: 7.711 MB / 366.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.05876/0.8518, allocations: 15.67 MB / 499.9 MB, free: 9.703 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.323e-05/0.8518, allocations: 8.031 kB / 500 MB, free: 9.695 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0129/0.8647, allocations: 2.291 MB / 0.4905 GB, free: 8.328 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04826/0.913, allocations: 8.208 MB / 0.4985 GB, free: 0.7109 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02637/0.9394, allocations: 9.777 MB / 0.508 GB, free: 11.05 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001386/0.9409, allocations: 1.061 MB / 0.5091 GB, free: 10.45 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.006586/0.9475, allocations: 1.399 MB / 0.5104 GB, free: 9.516 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.07237/1.02, allocations: 22.55 MB / 0.5325 GB, free: 5.695 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0009202/1.021, allocations: 16.75 kB / 0.5325 GB, free: 5.68 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.006815/1.028, allocations: 0.5789 MB / 0.533 GB, free: 5.113 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001002/1.029, allocations: 0.7871 MB / 0.5338 GB, free: 4.324 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.05548/1.084, allocations: 20.94 MB / 0.5543 GB, free: 15.38 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3734/1.458, allocations: 73.03 MB / 0.6256 GB, free: 96.88 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02942/1.487, allocations: 42.39 MB / 0.667 GB, free: 60.79 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02544/1.513, allocations: 12.45 MB / 0.6791 GB, free: 52.54 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.921e-05/1.513, allocations: 96.53 kB / 0.6792 GB, free: 52.45 MB / 462.1 MB Notification: Performance of pre-optimization done (n=514): time 6.963e-06/1.513, allocations: 0 / 0.6792 GB, free: 52.45 MB / 462.1 MB Notification: Performance of matching and sorting (n=522): time 0.05856/1.571, allocations: 27.38 MB / 0.706 GB, free: 34.26 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.826e-05/1.571, allocations: 129.4 kB / 0.7061 GB, free: 34.11 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008775/1.58, allocations: 5.649 MB / 0.7116 GB, free: 28.48 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.001196/1.581, allocations: 105.7 kB / 0.7117 GB, free: 28.38 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003567/1.585, allocations: 6.13 MB / 0.7177 GB, free: 22.21 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.002467/1.587, allocations: 1.779 MB / 0.7194 GB, free: 20.45 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008373/1.588, allocations: 156 kB / 0.7196 GB, free: 20.29 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0005568/1.589, allocations: 0.6124 MB / 0.7202 GB, free: 19.68 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00606/1.595, allocations: 3.696 MB / 0.7238 GB, free: 15.98 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007405/1.602, allocations: 6.513 MB / 0.7301 GB, free: 8.172 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007703/1.61, allocations: 5.072 MB / 0.7351 GB, free: 3.086 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.822e-05/1.61, allocations: 28 kB / 0.7351 GB, free: 3.059 MB / 462.1 MB Notification: Performance of matching and sorting (n=976) (initialization): time 0.0281/1.638, allocations: 12.21 MB / 0.747 GB, free: 6.777 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.000155/1.638, allocations: 47.98 kB / 0.7471 GB, free: 6.73 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001905/1.639, allocations: 92 kB / 0.7472 GB, free: 6.641 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005176/1.644, allocations: 1.601 MB / 0.7487 GB, free: 5.027 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007454/1.651, allocations: 1.692 MB / 0.7504 GB, free: 3.332 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02647/1.678, allocations: 18.62 MB / 0.7686 GB, free: 72 kB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.2861/1.964, allocations: 422.5 kB / 0.769 GB, free: 143.9 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001599/1.966, allocations: 372.7 kB / 0.7693 GB, free: 143.9 MB / 494.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 421 * 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 (876): * Single equations (assignments): 866 * 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,52.8%) 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.01081/1.976, allocations: 5.191 MB / 0.7744 GB, free: 143.8 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001905/1.978, allocations: 0.5944 MB / 0.775 GB, free: 143.8 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01874/1.997, allocations: 9.566 MB / 0.7843 GB, free: 143.3 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01003/2.007, allocations: 5.978 MB / 0.7902 GB, free: 142.9 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.972e-05/2.007, allocations: 21.86 kB / 0.7902 GB, free: 142.9 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.95e-05/2.007, allocations: 28.72 kB / 0.7902 GB, free: 142.9 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04399/2.051, allocations: 21.31 MB / 0.811 GB, free: 134.2 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.364e-05/2.051, allocations: 5.812 kB / 0.811 GB, free: 134.2 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003713/2.055, allocations: 0.886 MB / 0.8119 GB, free: 134.1 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004369/2.06, allocations: 1.626 MB / 0.8135 GB, free: 133.7 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006872/2.06, allocations: 126 kB / 0.8136 GB, free: 133.6 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02206/2.082, allocations: 21.78 MB / 0.8349 GB, free: 118.5 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.122e-06/2.082, allocations: 11.31 kB / 0.8349 GB, free: 118.5 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02103/2.103, allocations: 14.9 MB / 0.8494 GB, free: 105.1 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00434/2.108, allocations: 1.371 MB / 0.8508 GB, free: 104 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001861/2.11, allocations: 108 kB / 0.8509 GB, free: 103.9 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004135/2.114, allocations: 303.2 kB / 0.8512 GB, free: 103.6 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001111/2.115, allocations: 419.2 kB / 0.8516 GB, free: 103.2 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003743/2.115, allocations: 156 kB / 0.8517 GB, free: 103.1 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.007104/2.122, allocations: 3.797 MB / 0.8554 GB, free: 99.3 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.323e-06/2.122, allocations: 0 / 0.8554 GB, free: 99.3 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.01317/2.136, allocations: 2.347 MB / 0.8577 GB, free: 96.96 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 (451): * Single equations (assignments): 440 * 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%) 5,(1,100.0%) 8,(1,100.0%) 1,(1,100.0%) 13,(2,100.0%) 12,(1,100.0%) 1,(12,54.2%) 64} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.02326/2.159, allocations: 16.9 MB / 0.8742 GB, free: 79.66 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0149/2.174, allocations: 10.03 MB / 0.884 GB, free: 69.54 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.349e-05/2.174, allocations: 7.906 kB / 0.884 GB, free: 69.53 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.008094/2.182, allocations: 5.535 MB / 0.8894 GB, free: 63.92 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007148/2.189, allocations: 1.473 MB / 0.8909 GB, free: 62.48 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4438/2.633, allocations: 137.4 MB / 1.025 GB, free: 99.16 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.02071/2.654, allocations: 9.081 MB / 1.034 GB, free: 96.2 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.01172/2.666, allocations: 2.541 MB / 1.036 GB, free: 95.96 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01176/2.677, allocations: 5.131 MB / 1.041 GB, free: 91.57 MB / 494.1 MB Notification: Performance of SimCode: time 1.543e-06/2.677, allocations: 0 / 1.041 GB, free: 91.57 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5413/3.219, allocations: 181.1 MB / 1.218 GB, free: 99.14 MB / 494.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001916/3.219, allocations: 256.4 kB / 1.219 GB, free: 98.81 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.341/9.56, allocations: 0 / 1.219 GB, free: 98.81 MB / 494.1 MB (rm -f Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_DOL.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_DOL.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_DOL.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_DOL.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_DOL_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_DOL_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_DOL.fmu > Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_DOL.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_DOL_res.mat does not exist to compare? outputFormat=mat