Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter_MultiPhase.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter_MultiPhase,fileNamePrefix="Modelica_3_2_3_cpp_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_cpp_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/Complex 3.2.3+maint.om/package.mo): time 0.001549/0.001554, allocations: 188.9 kB / 16.4 MB, free: 5.625 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.094/2.094, allocations: 205.4 MB / 222.5 MB, free: 13.85 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001184/0.001184, allocations: 98.8 kB / 270.9 MB, free: 13.38 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003966/0.0003964, allocations: 8 kB / 327.1 MB, free: 15 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1016/0.102, allocations: 47.58 MB / 374.6 MB, free: 15.33 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter_MultiPhase): time 0.2893/0.3914, allocations: 18.94 MB / 393.6 MB, free: 9.996 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.01583/0.4073, allocations: 6.36 MB / 399.9 MB, free: 9.469 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005213/0.4125, allocations: 133.2 kB / 400.1 MB, free: 9.43 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.005472/0.418, allocations: 1.163 MB / 401.2 MB, free: 8.996 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01081/0.4289, allocations: 1.909 MB / 403.1 MB, free: 8.277 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.005449/0.4343, allocations: 0.9661 MB / 404.1 MB, free: 7.703 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.01434/0.4487, allocations: 5.528 MB / 409.6 MB, free: 4.711 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01075/0.4595, allocations: 4.979 MB / 414.6 MB, free: 2.621 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006135/0.4657, allocations: 2.54 MB / 417.2 MB, free: 1.219 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007402/0.4731, allocations: 3.089 MB / 420.3 MB, free: 15.26 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001985/0.4752, allocations: 442.8 kB / 420.7 MB, free: 15.26 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004416/0.4796, allocations: 0.6007 MB / 421.3 MB, free: 14.83 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.003036/0.4827, allocations: 1.579 MB / 422.9 MB, free: 13.25 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.003607/0.4863, allocations: 1.533 MB / 424.4 MB, free: 11.7 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01916/0.5055, allocations: 11.56 MB / 436 MB, free: 132 kB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.617e-06/0.5056, allocations: 7.938 kB / 436 MB, free: 124 kB / 298.7 MB Notification: Performance of FrontEnd: time 3.547e-06/0.5056, allocations: 0 / 436 MB, free: 124 kB / 298.7 MB Notification: Performance of Transformations before backend: time 0.0003889/0.506, allocations: 0 / 436 MB, free: 124 kB / 298.7 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.03097/0.537, allocations: 7.476 MB / 443.4 MB, free: 8.551 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.988e-05/0.537, allocations: 8.031 kB / 443.4 MB, free: 8.543 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003587/0.5406, allocations: 0.9509 MB / 444.4 MB, free: 7.578 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0144/0.5551, allocations: 1.673 MB / 446.1 MB, free: 5.895 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01343/0.5685, allocations: 4.358 MB / 450.4 MB, free: 1.461 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007748/0.5693, allocations: 0.5176 MB / 450.9 MB, free: 0.9414 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002584/0.5719, allocations: 0.6872 MB / 451.6 MB, free: 260 kB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03113/0.6031, allocations: 9.345 MB / 461 MB, free: 6.844 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002559/0.6034, allocations: 7.984 kB / 461 MB, free: 6.836 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001455/0.6048, allocations: 288 kB / 461.3 MB, free: 6.555 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000487/0.6054, allocations: 326.2 kB / 461.6 MB, free: 6.234 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02722/0.6326, allocations: 8.031 MB / 469.6 MB, free: 14.19 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08389/0.7165, allocations: 28.85 MB / 498.5 MB, free: 0.707 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02765/0.7442, allocations: 16.58 MB / 0.503 GB, free: 14.25 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01951/0.7638, allocations: 6.557 MB / 0.5094 GB, free: 7.539 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.885e-05/0.7639, allocations: 64.78 kB / 0.5094 GB, free: 7.465 MB / 394.7 MB Notification: Performance of pre-optimization done (n=281): time 5.35e-06/0.7639, allocations: 0 / 0.5094 GB, free: 7.465 MB / 394.7 MB Notification: Performance of matching and sorting (n=289): time 0.04387/0.8078, allocations: 11.96 MB / 0.5211 GB, free: 11.21 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.109e-05/0.8079, allocations: 81.69 kB / 0.5212 GB, free: 11.11 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007593/0.8155, allocations: 3.258 MB / 0.5244 GB, free: 7.859 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005747/0.8161, allocations: 77.7 kB / 0.5245 GB, free: 7.777 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002827/0.819, allocations: 2.806 MB / 0.5272 GB, free: 4.941 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001544/0.8205, allocations: 0.9897 MB / 0.5282 GB, free: 3.938 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003305/0.8209, allocations: 72 kB / 0.5282 GB, free: 3.867 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0003242/0.8212, allocations: 450.3 kB / 0.5287 GB, free: 3.418 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004387/0.8256, allocations: 1.471 MB / 0.5301 GB, free: 1.945 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.2771/1.103, allocations: 2.463 MB / 0.5325 GB, free: 119.3 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005945/1.109, allocations: 1.929 MB / 0.5344 GB, free: 119.3 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.631e-05/1.109, allocations: 17.19 kB / 0.5344 GB, free: 119.3 MB / 410.7 MB Notification: Performance of matching and sorting (n=451) (initialization): time 0.01344/1.122, allocations: 4.658 MB / 0.5389 GB, free: 117.4 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.301e-05/1.122, allocations: 20.84 kB / 0.539 GB, free: 117.4 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.792e-05/1.123, allocations: 30.47 kB / 0.539 GB, free: 117.4 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001718/1.124, allocations: 429.8 kB / 0.5394 GB, free: 117.3 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006575/1.131, allocations: 0.8298 MB / 0.5402 GB, free: 117.2 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009576/1.141, allocations: 7.711 MB / 0.5477 GB, free: 110.7 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004388/1.145, allocations: 165.5 kB / 0.5479 GB, free: 110.7 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007687/1.146, allocations: 155.5 kB / 0.5481 GB, free: 110.6 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 139 * 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 (423): * Single equations (assignments): 417 * 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%) 5,(1,100.0%) 1,(1,100.0%) 1,(3,88.9%) 17} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.005839/1.152, allocations: 2.086 MB / 0.5501 GB, free: 109.5 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001065/1.153, allocations: 370 kB / 0.5504 GB, free: 109.5 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01252/1.165, allocations: 4.506 MB / 0.5548 GB, free: 107.5 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.167e-05/1.165, allocations: 28.25 kB / 0.5549 GB, free: 107.5 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.536e-05/1.165, allocations: 12.56 kB / 0.5549 GB, free: 107.5 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.992e-05/1.165, allocations: 15.48 kB / 0.5549 GB, free: 107.5 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02528/1.191, allocations: 10.65 MB / 0.5653 GB, free: 102.7 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.708e-05/1.191, allocations: 11.47 kB / 0.5653 GB, free: 102.7 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003834/1.195, allocations: 461.2 kB / 0.5657 GB, free: 102.7 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003369/1.198, allocations: 0.8508 MB / 0.5666 GB, free: 102.4 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000361/1.198, allocations: 78.41 kB / 0.5667 GB, free: 102.4 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02146/1.22, allocations: 16.27 MB / 0.5825 GB, free: 89.41 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.155e-06/1.22, allocations: 10.78 kB / 0.5826 GB, free: 89.41 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01479/1.235, allocations: 6.832 MB / 0.5892 GB, free: 82.71 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002254/1.237, allocations: 0.7571 MB / 0.59 GB, free: 82.03 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007657/1.238, allocations: 67.98 kB / 0.59 GB, free: 81.96 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002949/1.241, allocations: 151.9 kB / 0.5902 GB, free: 81.82 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000679/1.241, allocations: 221.5 kB / 0.5904 GB, free: 81.6 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002409/1.242, allocations: 83.98 kB / 0.5905 GB, free: 81.52 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.004363/1.246, allocations: 2.207 MB / 0.5926 GB, free: 79.32 MB / 410.7 MB Notification: Performance of sort global known variables: time 4.11e-07/1.246, allocations: 2.25 kB / 0.5926 GB, free: 79.32 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.005553/1.252, allocations: 1.152 MB / 0.5937 GB, free: 78.18 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 19 * 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 (221): * Single equations (assignments): 214 * 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 {(4,93.8%) 33,(1,100.0%) 5,(1,100.0%) 1,(2,100.0%) 12,(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.02238/1.274, allocations: 8.533 MB / 0.6021 GB, free: 69.36 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.01034/1.284, allocations: 4.326 MB / 0.6063 GB, free: 64.93 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 8.886e-06/1.285, allocations: 0 / 0.6063 GB, free: 64.93 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.007055/1.292, allocations: 2.981 MB / 0.6092 GB, free: 61.86 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006563/1.298, allocations: 0.9326 MB / 0.6101 GB, free: 60.93 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1075/1.406, allocations: 56.27 MB / 0.6651 GB, free: 2.211 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007392/1.413, allocations: 4.256 MB / 0.6692 GB, free: 13.93 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006364/1.42, allocations: 2.569 MB / 0.6717 GB, free: 11.36 MB / 426.7 MB Notification: Performance of SimCode: time 1.513e-06/1.42, allocations: 3.938 kB / 0.6717 GB, free: 11.36 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.729/7.148, allocations: 319.7 MB / 0.984 GB, free: 53.94 MB / 458.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter_MultiPhase.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter_MultiPhase.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter_MultiPhase.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter_MultiPhase.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter_MultiPhase_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMR_Inverter_MultiPhase_fmu --startTime=0 --stopTime=1.5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMR_Inverter_MultiPhase.fmu > Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter_MultiPhase.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter_MultiPhase_res.mat does not exist to compare? outputFormat=mat