Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_DOL_MultiPhase.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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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.AIMC_DOL_MultiPhase,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMC_DOL_MultiPhase",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_DOL_MultiPhase,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMC_DOL_MultiPhase",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.0009238/0.0009237, allocations: 97.41 kB / 16.94 MB, free: 5.98 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.001222/0.001222, allocations: 179.8 kB / 17.83 MB, free: 5.648 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.355/1.355, allocations: 205.4 MB / 224 MB, free: 13.16 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0004583/0.0004585, allocations: 20 kB / 280.9 MB, free: 3.637 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1042/0.1047, allocations: 47.57 MB / 328.4 MB, free: 3.992 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_DOL_MultiPhase): time 0.02103/0.1258, allocations: 18.92 MB / 347.3 MB, free: 1.008 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0146/0.1404, allocations: 6.337 MB / 353.7 MB, free: 10.66 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004493/0.145, allocations: 127.4 kB / 353.8 MB, free: 10.53 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004539/0.1496, allocations: 1.205 MB / 355 MB, free: 9.32 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008087/0.1577, allocations: 1.943 MB / 357 MB, free: 7.371 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004145/0.1618, allocations: 0.9474 MB / 357.9 MB, free: 6.422 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.01298/0.1748, allocations: 6.676 MB / 364.6 MB, free: 15.73 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.008764/0.1837, allocations: 5.644 MB / 370.2 MB, free: 10.03 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006126/0.1898, allocations: 3.044 MB / 373.3 MB, free: 6.977 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006701/0.1966, allocations: 3.68 MB / 376.9 MB, free: 3.281 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001756/0.1984, allocations: 0.5117 MB / 377.5 MB, free: 2.77 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002893/0.2013, allocations: 0.6717 MB / 378.1 MB, free: 2.098 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002069/0.2034, allocations: 1.912 MB / 380 MB, free: 184 kB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.1927/0.3961, allocations: 1.83 MB / 381.9 MB, free: 19.21 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01761/0.4137, allocations: 13.87 MB / 395.7 MB, free: 14.89 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.558e-06/0.4138, allocations: 0 / 395.7 MB, free: 14.89 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.955e-06/0.4138, allocations: 0 / 395.7 MB, free: 14.89 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0006279/0.4144, allocations: 0 / 395.7 MB, free: 14.89 MB / 318.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.03177/0.4462, allocations: 8.939 MB / 404.7 MB, free: 10.26 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.282e-05/0.4463, allocations: 9.406 kB / 404.7 MB, free: 10.26 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004604/0.4509, allocations: 1.096 MB / 405.8 MB, free: 9.973 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01225/0.4632, allocations: 2.053 MB / 407.8 MB, free: 9.137 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01417/0.4773, allocations: 5.305 MB / 413.1 MB, free: 7.531 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004702/0.4779, allocations: 0.5916 MB / 413.7 MB, free: 7.512 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002413/0.4803, allocations: 0.7895 MB / 414.5 MB, free: 7.5 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02969/0.51, allocations: 11.21 MB / 425.7 MB, free: 3.375 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002481/0.5103, allocations: 13.17 kB / 425.7 MB, free: 3.367 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00197/0.5122, allocations: 334.2 kB / 426.1 MB, free: 3.301 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003195/0.5126, allocations: 376.9 kB / 426.4 MB, free: 2.945 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02326/0.5358, allocations: 9.873 MB / 436.3 MB, free: 9.449 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07107/0.607, allocations: 34.62 MB / 470.9 MB, free: 6.848 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02037/0.6274, allocations: 19.86 MB / 490.8 MB, free: 0.9727 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0182/0.6456, allocations: 7.968 MB / 498.8 MB, free: 8.984 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.623e-05/0.6457, allocations: 69.27 kB / 498.8 MB, free: 8.906 MB / 398.1 MB Notification: Performance of pre-optimization done (n=343): time 4.598e-06/0.6457, allocations: 0 / 498.8 MB, free: 8.906 MB / 398.1 MB Notification: Performance of matching and sorting (n=351): time 0.03908/0.6848, allocations: 16.25 MB / 0.503 GB, free: 8.426 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.482e-05/0.6849, allocations: 86.17 kB / 0.5031 GB, free: 8.328 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00778/0.6927, allocations: 4.29 MB / 0.5073 GB, free: 4.02 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0008774/0.6936, allocations: 85.7 kB / 0.5074 GB, free: 3.93 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002958/0.6966, allocations: 3.489 MB / 0.5108 GB, free: 432 kB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001869/0.6985, allocations: 1.182 MB / 0.5119 GB, free: 15.25 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00027/0.6988, allocations: 80 kB / 0.512 GB, free: 15.17 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0002919/0.6991, allocations: 470.7 kB / 0.5125 GB, free: 14.7 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003372/0.7024, allocations: 1.927 MB / 0.5143 GB, free: 12.77 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004075/0.7065, allocations: 2.975 MB / 0.5172 GB, free: 9.34 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003911/0.7105, allocations: 2.429 MB / 0.5196 GB, free: 6.926 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.759e-05/0.7105, allocations: 8 kB / 0.5196 GB, free: 6.918 MB / 430.1 MB Notification: Performance of matching and sorting (n=518) (initialization): time 0.01145/0.7219, allocations: 6.326 MB / 0.5258 GB, free: 0.7344 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.603e-05/0.722, allocations: 20 kB / 0.5258 GB, free: 0.7148 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.566e-05/0.7221, allocations: 32 kB / 0.5258 GB, free: 0.6836 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00221/0.7243, allocations: 0.8555 MB / 0.5267 GB, free: 15.8 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003775/0.7281, allocations: 0.8648 MB / 0.5275 GB, free: 14.99 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2126/0.9408, allocations: 15.54 MB / 0.5427 GB, free: 151.7 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004295/0.9451, allocations: 188.9 kB / 0.5429 GB, free: 151.7 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000695/0.9458, allocations: 166.5 kB / 0.543 GB, free: 151.7 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 142 * 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.006204/0.952, allocations: 2.591 MB / 0.5456 GB, free: 151.6 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001202/0.9532, allocations: 467.2 kB / 0.546 GB, free: 151.6 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009462/0.9627, allocations: 5.994 MB / 0.5519 GB, free: 150.5 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.076e-05/0.9628, allocations: 36.28 kB / 0.5519 GB, free: 150.5 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.235e-05/0.9628, allocations: 19.62 kB / 0.5519 GB, free: 150.5 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.108e-05/0.9628, allocations: 20.11 kB / 0.5519 GB, free: 150.5 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0206/0.9834, allocations: 13.56 MB / 0.5652 GB, free: 144.7 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.31e-05/0.9835, allocations: 3.969 kB / 0.5652 GB, free: 144.7 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001628/0.9851, allocations: 437.2 kB / 0.5656 GB, free: 144.7 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003101/0.9882, allocations: 1.432 MB / 0.567 GB, free: 144.2 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002396/0.9885, allocations: 92.52 kB / 0.5671 GB, free: 144.2 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02039/1.009, allocations: 24.73 MB / 0.5913 GB, free: 121.6 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.618e-06/1.009, allocations: 11.53 kB / 0.5913 GB, free: 121.6 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01141/1.02, allocations: 9.117 MB / 0.6002 GB, free: 112.3 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002797/1.023, allocations: 0.9765 MB / 0.6011 GB, free: 111.5 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001138/1.024, allocations: 95.59 kB / 0.6012 GB, free: 111.5 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002261/1.027, allocations: 191.9 kB / 0.6014 GB, free: 111.3 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006825/1.027, allocations: 338 kB / 0.6017 GB, free: 110.9 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001969/1.027, allocations: 99.97 kB / 0.6018 GB, free: 110.8 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.004148/1.032, allocations: 2.93 MB / 0.6047 GB, free: 107.9 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.51e-07/1.032, allocations: 0 / 0.6047 GB, free: 107.9 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.005654/1.037, allocations: 1.451 MB / 0.6061 GB, free: 106.5 MB / 446.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%) 1,(1,100.0%) 8,(1,100.0%) 13,(2,100.0%) 12} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01154/1.049, allocations: 10.87 MB / 0.6167 GB, free: 95.3 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.007462/1.056, allocations: 5.926 MB / 0.6225 GB, free: 89.22 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.074e-05/1.056, allocations: 6 kB / 0.6225 GB, free: 89.22 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005364/1.062, allocations: 4.31 MB / 0.6267 GB, free: 84.79 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005697/1.068, allocations: 1.162 MB / 0.6278 GB, free: 83.63 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1038/1.171, allocations: 67.17 MB / 0.6934 GB, free: 13.7 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004613/1.176, allocations: 5.253 MB / 0.6986 GB, free: 8.414 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.00371/1.18, allocations: 1.035 MB / 0.6996 GB, free: 7.375 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003975/1.184, allocations: 3.065 MB / 0.7026 GB, free: 4.309 MB / 446.1 MB Notification: Performance of SimCode: time 1.042e-06/1.184, allocations: 0 / 0.7026 GB, free: 4.309 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3611/1.545, allocations: 121.7 MB / 0.8214 GB, free: 51.48 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001419/1.545, allocations: 225.3 kB / 0.8216 GB, free: 51.25 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.317/5.862, allocations: 0 / 0.8216 GB, free: 51.25 MB / 446.1 MB (rm -f Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_DOL_MultiPhase.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_DOL_MultiPhase.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_DOL_MultiPhase.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_DOL_MultiPhase.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_DOL_MultiPhase_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMC_DOL_MultiPhase_fmu --startTime=0 --stopTime=1.5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMC_DOL_MultiPhase.fmu > Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_DOL_MultiPhase.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_DOL_MultiPhase_res.mat does not exist to compare? outputFormat=mat