Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter_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.SMR_Inverter_MultiPhase,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMR_Inverter_MultiPhase",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter_MultiPhase,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMR_Inverter_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.0009678/0.0009678, allocations: 98.95 kB / 16.95 MB, free: 6.453 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.00123/0.00123, allocations: 182.8 kB / 17.84 MB, free: 6.004 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.605/1.605, allocations: 205.4 MB / 224 MB, free: 13.15 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.0004764/0.0004767, allocations: 12 kB / 280.9 MB, free: 3.625 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1052/0.1057, allocations: 47.58 MB / 328.5 MB, free: 3.98 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter_MultiPhase): time 0.0257/0.1314, allocations: 20.85 MB / 349.3 MB, free: 15.06 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01613/0.1476, allocations: 6.135 MB / 355.4 MB, free: 8.902 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004973/0.1526, allocations: 131.4 kB / 355.6 MB, free: 8.773 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006079/0.1587, allocations: 1.114 MB / 356.7 MB, free: 7.652 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008859/0.1676, allocations: 1.755 MB / 358.4 MB, free: 5.887 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004547/0.1722, allocations: 0.9553 MB / 359.4 MB, free: 4.93 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.01322/0.1854, allocations: 8.009 MB / 367.4 MB, free: 12.88 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01156/0.197, allocations: 4.975 MB / 372.4 MB, free: 7.848 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006683/0.2038, allocations: 2.584 MB / 375 MB, free: 5.254 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007334/0.2112, allocations: 3.385 MB / 378.3 MB, free: 1.855 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002288/0.2135, allocations: 448 kB / 378.8 MB, free: 1.418 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003605/0.2171, allocations: 0.6326 MB / 379.4 MB, free: 0.7852 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.2268/0.4439, allocations: 1.627 MB / 381 MB, free: 18.64 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004312/0.4483, allocations: 1.525 MB / 382.6 MB, free: 18.61 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01838/0.4667, allocations: 11.64 MB / 394.2 MB, free: 15.85 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.167e-06/0.4668, allocations: 0 / 394.2 MB, free: 15.85 MB / 318.1 MB Notification: Performance of FrontEnd: time 3.656e-06/0.4668, allocations: 0 / 394.2 MB, free: 15.85 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0005627/0.4673, allocations: 0 / 394.2 MB, free: 15.85 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: 1854 * Number of variables: 1854 Notification: Performance of Generate backend data structure: time 0.02769/0.495, allocations: 7.493 MB / 401.7 MB, free: 11.93 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.764e-05/0.4951, allocations: 13.19 kB / 401.7 MB, free: 11.93 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004245/0.4994, allocations: 0.9531 MB / 402.7 MB, free: 11.67 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01052/0.5099, allocations: 1.68 MB / 404.3 MB, free: 10.98 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01029/0.5202, allocations: 4.307 MB / 408.7 MB, free: 9.645 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005071/0.5208, allocations: 0.5169 MB / 409.2 MB, free: 9.629 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002584/0.5234, allocations: 0.6845 MB / 409.9 MB, free: 9.617 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02311/0.5465, allocations: 9.403 MB / 419.3 MB, free: 7.559 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002038/0.5468, allocations: 18.42 kB / 419.3 MB, free: 7.551 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001052/0.5478, allocations: 283.2 kB / 419.6 MB, free: 7.551 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002868/0.5481, allocations: 329.2 kB / 419.9 MB, free: 7.52 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02027/0.5684, allocations: 8.029 MB / 427.9 MB, free: 1.695 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07124/0.6397, allocations: 28.93 MB / 456.8 MB, free: 4.777 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01682/0.6566, allocations: 16.58 MB / 473.4 MB, free: 2.328 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006186/0.6628, allocations: 2.959 MB / 476.4 MB, free: 15.36 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01728/0.6801, allocations: 7.749 MB / 484.1 MB, free: 7.57 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.363e-05/0.6802, allocations: 64.61 kB / 484.2 MB, free: 7.496 MB / 382.1 MB Notification: Performance of pre-optimization done (n=259): time 9.278e-06/0.6803, allocations: 4 kB / 484.2 MB, free: 7.492 MB / 382.1 MB Notification: Performance of matching and sorting (n=265): time 0.02853/0.7088, allocations: 11.18 MB / 495.4 MB, free: 12.05 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.599e-05/0.7089, allocations: 81.5 kB / 495.4 MB, free: 11.95 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008445/0.7174, allocations: 3.342 MB / 498.8 MB, free: 8.617 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0007937/0.7182, allocations: 73.7 kB / 498.9 MB, free: 8.539 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003008/0.7213, allocations: 3.038 MB / 0.4901 GB, free: 5.477 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001438/0.7227, allocations: 0.9037 MB / 0.491 GB, free: 4.578 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005001/0.7232, allocations: 72 kB / 0.4911 GB, free: 4.508 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0003353/0.7236, allocations: 449.1 kB / 0.4915 GB, free: 4.062 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003038/0.7266, allocations: 1.393 MB / 0.4929 GB, free: 2.668 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003683/0.7303, allocations: 2.427 MB / 0.4952 GB, free: 15.8 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003492/0.7339, allocations: 1.843 MB / 0.497 GB, free: 13.97 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.94e-05/0.7339, allocations: 8 kB / 0.4971 GB, free: 13.96 MB / 414.1 MB Notification: Performance of matching and sorting (n=436) (initialization): time 0.01004/0.744, allocations: 4.706 MB / 0.5017 GB, free: 9.375 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.924e-05/0.744, allocations: 20.62 kB / 0.5017 GB, free: 9.355 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.469e-05/0.7441, allocations: 32 kB / 0.5017 GB, free: 9.324 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001025/0.7451, allocations: 403.5 kB / 0.5021 GB, free: 8.918 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003326/0.7485, allocations: 0.8012 MB / 0.5029 GB, free: 8.168 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007327/0.7558, allocations: 7.342 MB / 0.51 GB, free: 356 kB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004235/0.7601, allocations: 168 kB / 0.5102 GB, free: 188 kB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000758/0.7609, allocations: 148 kB / 0.5103 GB, free: 40 kB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 146 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (411): * Single equations (assignments): 405 * 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: 4 * 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: 4 {(1,100.0%) 1,(1,100.0%) 5,(1,100.0%) 1,(3,77.8%) 14} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.005629/0.7665, allocations: 2.083 MB / 0.5124 GB, free: 14 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001339/0.7679, allocations: 363.6 kB / 0.5127 GB, free: 13.64 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009309/0.7772, allocations: 4.234 MB / 0.5169 GB, free: 9.328 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.76e-05/0.7773, allocations: 28 kB / 0.5169 GB, free: 9.301 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.499e-05/0.7773, allocations: 12 kB / 0.5169 GB, free: 9.289 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.572e-05/0.7774, allocations: 15.89 kB / 0.5169 GB, free: 9.273 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3/1.077, allocations: 9.877 MB / 0.5266 GB, free: 140.8 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.399e-05/1.077, allocations: 3.781 kB / 0.5266 GB, free: 140.8 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002836/1.08, allocations: 409.3 kB / 0.5269 GB, free: 140.8 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002453/1.083, allocations: 0.8586 MB / 0.5278 GB, free: 140.8 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004548/1.083, allocations: 73.55 kB / 0.5279 GB, free: 140.8 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0145/1.098, allocations: 16.06 MB / 0.5435 GB, free: 130 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.178e-06/1.098, allocations: 3.844 kB / 0.5435 GB, free: 130 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009286/1.107, allocations: 6.044 MB / 0.5494 GB, free: 127.3 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002253/1.109, allocations: 0.7554 MB / 0.5502 GB, free: 126.9 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001319/1.111, allocations: 63.45 kB / 0.5502 GB, free: 126.9 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002341/1.113, allocations: 143.8 kB / 0.5504 GB, free: 126.9 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004491/1.114, allocations: 206.4 kB / 0.5506 GB, free: 126.8 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001917/1.114, allocations: 74.05 kB / 0.5506 GB, free: 126.8 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.004073/1.118, allocations: 2.272 MB / 0.5529 GB, free: 125.9 MB / 430.1 MB Notification: Performance of sort global known variables: time 3.21e-07/1.118, allocations: 0 / 0.5529 GB, free: 125.9 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.005187/1.123, allocations: 1.14 MB / 0.554 GB, free: 125.8 MB / 430.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 14 * Number of states: 14 (smrM.inertiaRotor.w,smrM.stator.core.Phi.re,smrM.stator.core.Phi.im,smrM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.re,smrM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.im,smr3.inertiaRotor.w,smr3.stator.core.Phi.re,smr3.stator.core.Phi.im,smr3.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.re,smr3.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.im,loadInertiaM.phi,loadInertia3.phi,vfController3.x,vfControllerM.x) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (198): * Single equations (assignments): 191 * 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: 7 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 7 {(1,100.0%) 5,(4,93.8%) 33,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 8,(2,100.0%) 12,(2,100.0%) 12} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01058/1.134, allocations: 6.718 MB / 0.5605 GB, free: 122.6 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.00607/1.14, allocations: 4.124 MB / 0.5646 GB, free: 119.2 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 7.013e-06/1.14, allocations: 0 / 0.5646 GB, free: 119.2 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003766/1.144, allocations: 2.867 MB / 0.5674 GB, free: 116.5 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005921/1.15, allocations: 0.9631 MB / 0.5683 GB, free: 115.7 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07289/1.222, allocations: 35.58 MB / 0.6031 GB, free: 79.07 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00345/1.226, allocations: 4.228 MB / 0.6072 GB, free: 74.81 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.002987/1.229, allocations: 0.8326 MB / 0.608 GB, free: 73.97 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002648/1.232, allocations: 2.538 MB / 0.6105 GB, free: 71.43 MB / 430.1 MB Notification: Performance of SimCode: time 1.232e-06/1.232, allocations: 0 / 0.6105 GB, free: 71.43 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.304/1.536, allocations: 94.74 MB / 0.703 GB, free: 138.6 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001431/1.536, allocations: 253 kB / 0.7032 GB, free: 138.3 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.645/6.181, allocations: 0 / 0.7032 GB, free: 138.3 MB / 446.1 MB (rm -f Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter_MultiPhase.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter_MultiPhase.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter_MultiPhase.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter_MultiPhase.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter_MultiPhase_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMR_Inverter_MultiPhase_fmu --startTime=0 --stopTime=1.5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMR_Inverter_MultiPhase.fmu > Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter_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.SMR_Inverter_MultiPhase_res.mat does not exist to compare? outputFormat=mat