Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.ComparisonPolyphase.IMC_DOL_Polyphase.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.FundamentalWave.Examples.BasicMachines.InductionMachines.ComparisonPolyphase.IMC_DOL_Polyphase,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_InductionMachines_ComparisonPolyphase_IMC_DOL_Polyphase",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.ComparisonPolyphase.IMC_DOL_Polyphase,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_InductionMachines_ComparisonPolyphase_IMC_DOL_Polyphase",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.001075/0.001075, allocations: 93.88 kB / 16.3 MB, free: 6.457 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.001248/0.001249, allocations: 183.5 kB / 17.2 MB, free: 6.34 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.369/1.369, allocations: 223.2 MB / 241.1 MB, free: 5.387 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002571/0.0002572, allocations: 6.75 kB / 300.8 MB, free: 6.004 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1017/0.102, allocations: 50.43 MB / 351.3 MB, free: 11.57 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.ComparisonPolyphase.IMC_DOL_Polyphase): time 0.0216/0.1237, allocations: 18.98 MB / 370.2 MB, free: 8.52 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01265/0.1364, allocations: 6.289 MB / 376.5 MB, free: 2.215 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003362/0.1398, allocations: 135.4 kB / 376.7 MB, free: 2.082 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003747/0.1435, allocations: 1.216 MB / 377.9 MB, free: 0.8594 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006261/0.1498, allocations: 1.955 MB / 379.8 MB, free: 14.9 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003279/0.1531, allocations: 0.9225 MB / 380.8 MB, free: 13.98 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.01069/0.1638, allocations: 6.667 MB / 387.4 MB, free: 7.309 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.009459/0.1734, allocations: 5.74 MB / 393.2 MB, free: 1.504 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005811/0.1792, allocations: 3.048 MB / 396.2 MB, free: 14.45 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006125/0.1854, allocations: 3.665 MB / 399.9 MB, free: 10.77 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002042/0.1875, allocations: 0.5078 MB / 400.4 MB, free: 10.26 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003363/0.1908, allocations: 0.6716 MB / 401.1 MB, free: 9.586 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003284/0.1941, allocations: 1.904 MB / 403 MB, free: 7.676 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004199/0.1984, allocations: 1.829 MB / 404.8 MB, free: 5.836 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01632/0.2147, allocations: 13.9 MB / 418.7 MB, free: 7.895 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.735e-06/0.2147, allocations: 4 kB / 418.7 MB, free: 7.891 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.024e-06/0.2147, allocations: 0 / 418.7 MB, free: 7.891 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0004742/0.2152, allocations: 0 / 418.7 MB, free: 7.891 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2135 * Number of variables: 2135 Notification: Performance of Generate backend data structure: time 0.3589/0.5741, allocations: 8.938 MB / 427.6 MB, free: 26.41 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.826e-05/0.5742, allocations: 8.312 kB / 427.6 MB, free: 26.41 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004037/0.5782, allocations: 1.103 MB / 428.7 MB, free: 26.32 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01162/0.5899, allocations: 2.051 MB / 430.8 MB, free: 25.85 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01186/0.6018, allocations: 5.521 MB / 436.3 MB, free: 24.99 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005804/0.6024, allocations: 0.589 MB / 436.9 MB, free: 24.97 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002148/0.6045, allocations: 0.7858 MB / 437.7 MB, free: 24.96 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02826/0.6328, allocations: 11.23 MB / 448.9 MB, free: 24.48 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003181/0.6332, allocations: 12.56 kB / 448.9 MB, free: 24.47 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001878/0.6351, allocations: 333.9 kB / 449.3 MB, free: 24.47 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003399/0.6354, allocations: 372.2 kB / 449.6 MB, free: 24.45 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01921/0.6547, allocations: 9.897 MB / 459.5 MB, free: 21.59 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05938/0.7141, allocations: 34.56 MB / 494.1 MB, free: 3.984 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01997/0.7341, allocations: 19.87 MB / 0.5019 GB, free: 14.11 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01813/0.7523, allocations: 7.939 MB / 0.5097 GB, free: 6.145 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.345e-05/0.7524, allocations: 72.45 kB / 0.5097 GB, free: 6.066 MB / 398.1 MB Notification: Performance of pre-optimization done (n=343): time 5.15e-06/0.7524, allocations: 0 / 0.5097 GB, free: 6.066 MB / 398.1 MB Notification: Performance of matching and sorting (n=351): time 0.03801/0.7904, allocations: 16.3 MB / 0.5256 GB, free: 5.543 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.727e-05/0.7905, allocations: 90.16 kB / 0.5257 GB, free: 5.441 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007605/0.7981, allocations: 4.278 MB / 0.5299 GB, free: 1.145 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0007502/0.7989, allocations: 85.7 kB / 0.53 GB, free: 1.055 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003051/0.802, allocations: 3.498 MB / 0.5334 GB, free: 13.55 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001469/0.8035, allocations: 1.167 MB / 0.5345 GB, free: 12.39 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003997/0.8039, allocations: 84 kB / 0.5346 GB, free: 12.31 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0002805/0.8042, allocations: 478.6 kB / 0.5351 GB, free: 11.83 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003834/0.808, allocations: 1.921 MB / 0.537 GB, free: 9.902 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00496/0.813, allocations: 2.97 MB / 0.5399 GB, free: 6.484 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004322/0.8174, allocations: 2.429 MB / 0.5422 GB, free: 4.074 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.656e-05/0.8174, allocations: 8 kB / 0.5422 GB, free: 4.066 MB / 430.1 MB Notification: Performance of matching and sorting (n=518) (initialization): time 0.01161/0.8291, allocations: 6.316 MB / 0.5484 GB, free: 13.89 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.388e-05/0.8292, allocations: 23.98 kB / 0.5484 GB, free: 13.86 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.914e-05/0.8292, allocations: 32 kB / 0.5485 GB, free: 13.83 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002244/0.8315, allocations: 0.8593 MB / 0.5493 GB, free: 12.95 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00363/0.8351, allocations: 0.8602 MB / 0.5501 GB, free: 12.14 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01449/0.8497, allocations: 15.55 MB / 0.5653 GB, free: 11.74 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003528/0.8532, allocations: 188 kB / 0.5655 GB, free: 11.55 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005648/0.8538, allocations: 170.3 kB / 0.5657 GB, free: 11.39 MB / 462.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 141 * Number of states: 0 () * Number of discrete variables: 8 (idealCloserM.control[1],idealCloserM.control[2],idealCloserM.control[3],idealCloserM.control[4],idealCloserM.control[5],idealCloser3.control[1],idealCloser3.control[2],idealCloser3.control[3]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (452): * Single equations (assignments): 443 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 7 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 7 {(1,100.0%) 5,(1,100.0%) 1,(1,100.0%) 1,(3,100.0%) 23,(1,100.0%) 2,(1,100.0%) 2,(4,68.8%) 25} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.004916/0.8587, allocations: 2.604 MB / 0.5682 GB, free: 8.832 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001135/0.8599, allocations: 462.4 kB / 0.5687 GB, free: 8.375 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0113/0.8712, allocations: 6.002 MB / 0.5745 GB, free: 2.328 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.004e-05/0.8713, allocations: 35.98 kB / 0.5745 GB, free: 2.293 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.43e-05/0.8713, allocations: 20 kB / 0.5746 GB, free: 2.273 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.166e-05/0.8714, allocations: 20.02 kB / 0.5746 GB, free: 2.254 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02676/0.8982, allocations: 13.56 MB / 0.5878 GB, free: 4.625 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.818e-05/0.8982, allocations: 4 kB / 0.5878 GB, free: 4.621 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002161/0.9004, allocations: 445.7 kB / 0.5883 GB, free: 4.207 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003825/0.9043, allocations: 1.438 MB / 0.5897 GB, free: 2.758 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007431/0.905, allocations: 99.95 kB / 0.5898 GB, free: 2.66 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2396/1.145, allocations: 24.73 MB / 0.6139 GB, free: 150.3 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.231e-05/1.145, allocations: 12.84 kB / 0.6139 GB, free: 150.3 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01526/1.16, allocations: 9.124 MB / 0.6228 GB, free: 145.9 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002988/1.163, allocations: 0.9752 MB / 0.6238 GB, free: 145.5 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001397/1.164, allocations: 83.44 kB / 0.6239 GB, free: 145.5 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002984/1.167, allocations: 189.9 kB / 0.624 GB, free: 145.4 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009809/1.168, allocations: 341.8 kB / 0.6244 GB, free: 145.4 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003512/1.169, allocations: 103.5 kB / 0.6245 GB, free: 145.3 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.004826/1.174, allocations: 2.925 MB / 0.6273 GB, free: 144.2 MB / 478.1 MB Notification: Performance of sort global known variables: time 5.11e-07/1.174, allocations: 0 / 0.6273 GB, free: 144.2 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.006268/1.18, allocations: 1.454 MB / 0.6287 GB, free: 144.1 MB / 478.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 21 * Number of states: 12 (aimcM.inertiaRotor.w,aimcM.stator.core.Phi.re,aimcM.stator.core.Phi.im,aimcM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[5].Phi.re,aimcM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[5].Phi.im,quadraticLoadTorqueM.phi,aimc3.inertiaRotor.w,aimc3.stator.core.Phi.re,aimc3.stator.core.Phi.im,aimc3.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.re,aimc3.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.im,quadraticLoadTorque3.phi) * Number of discrete variables: 8 (idealCloserM.control[1],idealCloserM.control[2],idealCloserM.control[3],idealCloserM.control[4],idealCloserM.control[5],idealCloser3.control[1],idealCloser3.control[2],idealCloser3.control[3]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (221): * Single equations (assignments): 212 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 9 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 9 {(6,72.2%) 46,(3,100.0%) 23,(1,100.0%) 1,(2,100.0%) 12,(1,100.0%) 5,(1,100.0%) 13,(1,100.0%) 1,(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.0134/1.193, allocations: 10.88 MB / 0.6394 GB, free: 138.2 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.008494/1.202, allocations: 5.945 MB / 0.6452 GB, free: 133.8 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 9.928e-06/1.202, allocations: 4.438 kB / 0.6452 GB, free: 133.8 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.006416/1.208, allocations: 4.308 MB / 0.6494 GB, free: 129.9 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00591/1.214, allocations: 1.161 MB / 0.6505 GB, free: 128.8 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1004/1.315, allocations: 66.97 MB / 0.7159 GB, free: 59.1 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007117/1.322, allocations: 5.249 MB / 0.721 GB, free: 53.82 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.004207/1.326, allocations: 1.042 MB / 0.722 GB, free: 52.78 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004833/1.331, allocations: 3.065 MB / 0.725 GB, free: 49.71 MB / 478.1 MB Notification: Performance of SimCode: time 2.013e-06/1.331, allocations: 0 / 0.725 GB, free: 49.71 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.404/1.735, allocations: 121.7 MB / 0.8439 GB, free: 99.04 MB / 478.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001928/1.735, allocations: 283.2 kB / 0.8442 GB, free: 98.68 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.818/6.553, allocations: 0 / 0.8442 GB, free: 98.68 MB / 478.1 MB (rm -f Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.ComparisonPolyphase.IMC_DOL_Polyphase.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.ComparisonPolyphase.IMC_DOL_Polyphase.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.ComparisonPolyphase.IMC_DOL_Polyphase.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.ComparisonPolyphase.IMC_DOL_Polyphase.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.ComparisonPolyphase.IMC_DOL_Polyphase_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_InductionMachines_ComparisonPolyphase_IMC_DOL_Polyphase_fmu --startTime=0 --stopTime=1.5 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_InductionMachines_ComparisonPolyphase_IMC_DOL_Polyphase.fmu > Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.ComparisonPolyphase.IMC_DOL_Polyphase.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.ComparisonPolyphase.IMC_DOL_Polyphase_res.mat does not exist to compare? outputFormat=mat