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.001029/0.00103, allocations: 88.95 kB / 16.31 MB, free: 5.66 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.001268/0.001269, allocations: 183.3 kB / 17.21 MB, free: 5.578 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.4/1.4, allocations: 223.2 MB / 241.2 MB, free: 5.414 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002612/0.0002612, allocations: 6.812 kB / 300.9 MB, free: 6.07 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1131/0.1134, allocations: 50.43 MB / 351.4 MB, free: 11.52 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_DOL): time 0.03686/0.1503, allocations: 33.47 MB / 384.8 MB, free: 9.941 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.02327/0.1736, allocations: 9.294 MB / 394.1 MB, free: 0.6211 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006834/0.1805, allocations: 263.1 kB / 394.4 MB, free: 372 kB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00792/0.1884, allocations: 1.887 MB / 396.3 MB, free: 14.46 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01465/0.2031, allocations: 3.343 MB / 399.6 MB, free: 11.11 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007007/0.2101, allocations: 1.568 MB / 401.2 MB, free: 9.551 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.02804/0.2382, allocations: 18.78 MB / 420 MB, free: 6.715 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.51/0.7483, allocations: 24.62 MB / 444.6 MB, free: 5.785 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0116/0.7599, allocations: 6.097 MB / 450.7 MB, free: 5.777 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01302/0.773, allocations: 6.884 MB / 457.6 MB, free: 5.773 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.005006/0.778, allocations: 0.9359 MB / 458.5 MB, free: 5.773 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.008413/0.7865, allocations: 1.307 MB / 459.8 MB, free: 5.773 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.006607/0.7931, allocations: 2.977 MB / 462.8 MB, free: 5.773 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.007896/0.801, allocations: 3.079 MB / 465.9 MB, free: 5.742 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.03465/0.8357, allocations: 27.05 MB / 492.9 MB, free: 2.289 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.112e-06/0.8358, allocations: 0 / 492.9 MB, free: 2.289 MB / 366.1 MB Notification: Performance of FrontEnd: time 3.166e-06/0.8358, allocations: 0 / 492.9 MB, free: 2.289 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.001093/0.8369, allocations: 0 / 492.9 MB, free: 2.289 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.05116/0.8881, allocations: 15.75 MB / 0.4967 GB, free: 4.219 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.462e-05/0.8881, allocations: 8.031 kB / 0.4967 GB, free: 4.211 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.01071/0.8989, allocations: 2.291 MB / 0.499 GB, free: 2.844 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04666/0.9456, allocations: 8.287 MB / 0.5071 GB, free: 11.14 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02532/0.9709, allocations: 9.752 MB / 0.5166 GB, free: 5.512 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001403/0.9724, allocations: 1.064 MB / 0.5176 GB, free: 4.461 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.006847/0.9792, allocations: 1.407 MB / 0.519 GB, free: 3.066 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.06563/1.045, allocations: 22.67 MB / 0.5412 GB, free: 12.35 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006866/1.046, allocations: 22.14 kB / 0.5412 GB, free: 12.33 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00642/1.052, allocations: 0.582 MB / 0.5417 GB, free: 11.76 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0009897/1.053, allocations: 0.7755 MB / 0.5425 GB, free: 10.98 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.05427/1.107, allocations: 20.94 MB / 0.5629 GB, free: 6.047 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4245/1.532, allocations: 73.1 MB / 0.6343 GB, free: 95.44 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03267/1.565, allocations: 42.39 MB / 0.6757 GB, free: 54.2 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.01043/1.575, allocations: 5.256 MB / 0.6809 GB, free: 51.5 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02855/1.604, allocations: 12.82 MB / 0.6934 GB, free: 43.04 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001256/1.604, allocations: 85.16 kB / 0.6935 GB, free: 42.97 MB / 462.1 MB Notification: Performance of pre-optimization done (n=504): time 1.272e-05/1.604, allocations: 0 / 0.6935 GB, free: 42.97 MB / 462.1 MB Notification: Performance of matching and sorting (n=512): time 0.07055/1.674, allocations: 28.94 MB / 0.7217 GB, free: 15.28 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.289e-05/1.675, allocations: 137.3 kB / 0.7219 GB, free: 15.12 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01043/1.685, allocations: 5.708 MB / 0.7274 GB, free: 9.434 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.001222/1.686, allocations: 111.3 kB / 0.7275 GB, free: 9.32 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003707/1.69, allocations: 6.144 MB / 0.7335 GB, free: 3.141 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.002407/1.692, allocations: 1.758 MB / 0.7352 GB, free: 1.398 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000562/1.693, allocations: 152 kB / 0.7354 GB, free: 1.25 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.000365/1.693, allocations: 0.6006 MB / 0.736 GB, free: 0.6445 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006412/1.7, allocations: 3.657 MB / 0.7396 GB, free: 12.99 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009489/1.709, allocations: 6.498 MB / 0.7459 GB, free: 5.191 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00925/1.719, allocations: 5.041 MB / 0.7508 GB, free: 140 kB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.922e-05/1.719, allocations: 28 kB / 0.7508 GB, free: 112 kB / 478.1 MB Notification: Performance of matching and sorting (n=968) (initialization): time 0.02946/1.748, allocations: 12.12 MB / 0.7627 GB, free: 3.926 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001736/1.748, allocations: 47.95 kB / 0.7627 GB, free: 3.879 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002306/1.749, allocations: 96 kB / 0.7628 GB, free: 3.785 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005355/1.754, allocations: 1.599 MB / 0.7644 GB, free: 2.172 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007739/1.762, allocations: 1.669 MB / 0.766 GB, free: 0.5 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.3434/2.105, allocations: 18.2 MB / 0.7838 GB, free: 141.7 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00684/2.112, allocations: 436.8 kB / 0.7842 GB, free: 141.7 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001736/2.114, allocations: 369 kB / 0.7845 GB, free: 141.7 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.01144/2.125, allocations: 5.188 MB / 0.7896 GB, free: 140.2 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001769/2.127, allocations: 0.5932 MB / 0.7902 GB, free: 140.2 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01624/2.143, allocations: 9.447 MB / 0.7994 GB, free: 136.4 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.009475/2.153, allocations: 5.922 MB / 0.8052 GB, free: 134.1 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.484e-05/2.153, allocations: 18.72 kB / 0.8052 GB, free: 134.1 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.524e-05/2.153, allocations: 23.95 kB / 0.8052 GB, free: 134.1 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05142/2.204, allocations: 21.14 MB / 0.8259 GB, free: 124.6 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.605e-05/2.205, allocations: 7.562 kB / 0.8259 GB, free: 124.6 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004353/2.209, allocations: 0.8598 MB / 0.8267 GB, free: 124.4 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004809/2.214, allocations: 1.628 MB / 0.8283 GB, free: 122.8 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001287/2.215, allocations: 128.1 kB / 0.8284 GB, free: 122.6 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02386/2.239, allocations: 21.35 MB / 0.8493 GB, free: 100.7 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.843e-06/2.239, allocations: 7.938 kB / 0.8493 GB, free: 100.7 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02521/2.264, allocations: 13.83 MB / 0.8628 GB, free: 86.75 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00457/2.269, allocations: 1.367 MB / 0.8641 GB, free: 85.36 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00289/2.272, allocations: 108 kB / 0.8642 GB, free: 85.26 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005887/2.278, allocations: 295.7 kB / 0.8645 GB, free: 84.97 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002751/2.281, allocations: 415 kB / 0.8649 GB, free: 84.56 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.00158/2.282, allocations: 156 kB / 0.8651 GB, free: 84.41 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.01073/2.293, allocations: 3.836 MB / 0.8688 GB, free: 80.6 MB / 494.1 MB Notification: Performance of sort global known variables: time 4.01e-07/2.293, allocations: 0 / 0.8688 GB, free: 80.6 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.01399/2.307, allocations: 2.345 MB / 0.8711 GB, free: 78.26 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%) 13,(1,100.0%) 5,(1,100.0%) 8,(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.02514/2.332, allocations: 14.61 MB / 0.8854 GB, free: 63.31 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.01841/2.351, allocations: 9.916 MB / 0.8951 GB, free: 53.3 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.706e-05/2.351, allocations: 0 / 0.8951 GB, free: 53.3 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.01225/2.363, allocations: 5.489 MB / 0.9004 GB, free: 47.73 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01386/2.377, allocations: 1.559 MB / 0.9019 GB, free: 46.2 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4743/2.851, allocations: 74.52 MB / 0.9747 GB, free: 153.4 MB / 0.4982 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.02114/2.872, allocations: 8.851 MB / 0.9834 GB, free: 150.4 MB / 0.4982 GB Notification: Performance of simCode: alias equations: time 0.01221/2.885, allocations: 2.535 MB / 0.9858 GB, free: 150.2 MB / 0.4982 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01152/2.896, allocations: 5.158 MB / 0.9909 GB, free: 145.4 MB / 0.4982 GB Notification: Performance of SimCode: time 1.543e-06/2.896, allocations: 0 / 0.9909 GB, free: 145.4 MB / 0.4982 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5621/3.458, allocations: 181.4 MB / 1.168 GB, free: 131.6 MB / 0.4982 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001939/3.459, allocations: 263.9 kB / 1.168 GB, free: 131.3 MB / 0.4982 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.361/9.819, allocations: 0 / 1.168 GB, free: 131.3 MB / 0.4982 GB (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