Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMR_Inverter_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.SynchronousMachines.ComparisonPolyphase.SMR_Inverter_Polyphase,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_ComparisonPolyphase_SMR_Inverter_Polyphase",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMR_Inverter_Polyphase,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_ComparisonPolyphase_SMR_Inverter_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.001056/0.001056, allocations: 94.11 kB / 16.3 MB, free: 5.996 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.001195/0.001195, allocations: 181.3 kB / 17.2 MB, free: 5.914 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.389/1.389, allocations: 223.2 MB / 241.1 MB, free: 5.477 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002942/0.0002943, allocations: 6.594 kB / 300.8 MB, free: 5.926 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1207/0.1211, allocations: 50.43 MB / 351.3 MB, free: 11.62 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMR_Inverter_Polyphase): time 0.02028/0.1414, allocations: 19.02 MB / 370.3 MB, free: 8.539 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01414/0.1555, allocations: 6.316 MB / 376.6 MB, free: 2.207 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005658/0.1613, allocations: 143.4 kB / 376.7 MB, free: 2.066 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005186/0.1665, allocations: 1.158 MB / 377.9 MB, free: 0.9023 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00803/0.1745, allocations: 1.936 MB / 379.8 MB, free: 14.96 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004026/0.1786, allocations: 0.9343 MB / 380.8 MB, free: 14.03 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.01091/0.1895, allocations: 5.51 MB / 386.3 MB, free: 8.512 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01028/0.1998, allocations: 5.09 MB / 391.4 MB, free: 3.355 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006054/0.2059, allocations: 2.526 MB / 393.9 MB, free: 0.8203 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006425/0.2124, allocations: 3.081 MB / 397 MB, free: 13.72 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002388/0.2148, allocations: 440 kB / 397.4 MB, free: 13.29 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003827/0.2186, allocations: 0.6012 MB / 398 MB, free: 12.7 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003052/0.2217, allocations: 1.565 MB / 399.6 MB, free: 11.12 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003589/0.2253, allocations: 1.529 MB / 401.1 MB, free: 9.586 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01691/0.2422, allocations: 11.6 MB / 412.7 MB, free: 13.96 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.699e-06/0.2423, allocations: 3.938 kB / 412.7 MB, free: 13.95 MB / 350.1 MB Notification: Performance of FrontEnd: time 3.246e-06/0.2423, allocations: 0 / 412.7 MB, free: 13.95 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0006958/0.243, allocations: 0 / 412.7 MB, free: 13.95 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: 1854 * Number of variables: 1854 Notification: Performance of Generate backend data structure: time 0.02581/0.2688, allocations: 7.483 MB / 420.2 MB, free: 6.379 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.722e-05/0.2689, allocations: 8.031 kB / 420.2 MB, free: 6.371 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004019/0.2729, allocations: 0.9509 MB / 421.1 MB, free: 5.406 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01018/0.2831, allocations: 1.673 MB / 422.8 MB, free: 3.723 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.2739/0.557, allocations: 4.56 MB / 427.4 MB, free: 27.85 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006705/0.5577, allocations: 0.5233 MB / 427.9 MB, free: 27.84 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002852/0.5606, allocations: 0.6783 MB / 428.6 MB, free: 27.84 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02476/0.5854, allocations: 9.35 MB / 437.9 MB, free: 27.47 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002036/0.5856, allocations: 10.31 kB / 437.9 MB, free: 27.47 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008621/0.5865, allocations: 285 kB / 438.2 MB, free: 27.47 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003642/0.5869, allocations: 334 kB / 438.5 MB, free: 27.46 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01775/0.6046, allocations: 8.051 MB / 446.6 MB, free: 27.39 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05751/0.6622, allocations: 28.85 MB / 475.4 MB, free: 9.18 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01511/0.6773, allocations: 16.57 MB / 492 MB, free: 6.75 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01534/0.6927, allocations: 6.54 MB / 498.6 MB, free: 168 kB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.272e-05/0.6928, allocations: 60.78 kB / 498.6 MB, free: 96 kB / 366.1 MB Notification: Performance of pre-optimization done (n=281): time 7.835e-06/0.6928, allocations: 1.969 kB / 498.6 MB, free: 96 kB / 366.1 MB Notification: Performance of matching and sorting (n=289): time 0.0424/0.7352, allocations: 12.03 MB / 0.4987 GB, free: 3.82 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.598e-05/0.7354, allocations: 77.69 kB / 0.4988 GB, free: 3.73 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009489/0.7449, allocations: 3.266 MB / 0.5019 GB, free: 484 kB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0006773/0.7456, allocations: 73.7 kB / 0.502 GB, free: 404 kB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003599/0.7492, allocations: 2.992 MB / 0.5049 GB, free: 13.42 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001808/0.7511, allocations: 0.9921 MB / 0.5059 GB, free: 12.43 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000556/0.7516, allocations: 68 kB / 0.506 GB, free: 12.37 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0004116/0.7521, allocations: 449.4 kB / 0.5064 GB, free: 11.92 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004206/0.7563, allocations: 1.475 MB / 0.5078 GB, free: 10.45 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005626/0.7619, allocations: 2.459 MB / 0.5102 GB, free: 7.57 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005336/0.7673, allocations: 1.928 MB / 0.5121 GB, free: 5.656 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.086e-05/0.7674, allocations: 12 kB / 0.5121 GB, free: 5.645 MB / 398.1 MB Notification: Performance of matching and sorting (n=451) (initialization): time 0.01451/0.7819, allocations: 4.892 MB / 0.5169 GB, free: 0.8672 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.408e-05/0.7821, allocations: 18.08 kB / 0.5169 GB, free: 0.8516 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.367e-05/0.7822, allocations: 32 kB / 0.517 GB, free: 0.8203 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001634/0.7838, allocations: 431.8 kB / 0.5174 GB, free: 392 kB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003525/0.7873, allocations: 0.8276 MB / 0.5182 GB, free: 15.61 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007879/0.7952, allocations: 7.713 MB / 0.5257 GB, free: 7.41 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003247/0.7985, allocations: 171.7 kB / 0.5259 GB, free: 7.242 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006486/0.7992, allocations: 148.2 kB / 0.526 GB, free: 7.098 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 138 * 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.00507/0.8043, allocations: 2.079 MB / 0.528 GB, free: 5.059 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001306/0.8056, allocations: 367.5 kB / 0.5284 GB, free: 4.695 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00976/0.8154, allocations: 4.531 MB / 0.5328 GB, free: 100 kB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.194e-05/0.8155, allocations: 28 kB / 0.5328 GB, free: 72 kB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.366e-05/0.8155, allocations: 12 kB / 0.5329 GB, free: 60 kB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.314e-05/0.8156, allocations: 16.06 kB / 0.5329 GB, free: 44 kB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02586/0.8414, allocations: 10.65 MB / 0.5433 GB, free: 5.301 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.448e-05/0.8415, allocations: 7.984 kB / 0.5433 GB, free: 5.293 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002204/0.8437, allocations: 464.6 kB / 0.5437 GB, free: 4.863 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00235/0.8461, allocations: 0.8461 MB / 0.5446 GB, free: 4.004 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000382/0.8465, allocations: 75.97 kB / 0.5446 GB, free: 3.93 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01873/0.8653, allocations: 16.29 MB / 0.5605 GB, free: 2.809 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.396e-06/0.8653, allocations: 4 kB / 0.5605 GB, free: 2.805 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01376/0.8791, allocations: 6.828 MB / 0.5672 GB, free: 11.7 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003292/0.8824, allocations: 0.7658 MB / 0.568 GB, free: 10.91 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001605/0.8841, allocations: 68 kB / 0.568 GB, free: 10.85 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002777/0.8869, allocations: 143.9 kB / 0.5682 GB, free: 10.71 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007016/0.8876, allocations: 221.4 kB / 0.5684 GB, free: 10.5 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003073/0.8879, allocations: 87.97 kB / 0.5685 GB, free: 10.41 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.005544/0.8935, allocations: 2.203 MB / 0.5706 GB, free: 8.219 MB / 462.1 MB Notification: Performance of sort global known variables: time 5.21e-07/0.8935, allocations: 1.312 kB / 0.5706 GB, free: 8.219 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.006319/0.8998, allocations: 1.155 MB / 0.5717 GB, free: 7.066 MB / 462.1 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.01299/0.9128, allocations: 8.532 MB / 0.5801 GB, free: 14.32 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.008124/0.921, allocations: 4.329 MB / 0.5843 GB, free: 9.984 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 1.248e-05/0.921, allocations: 0 / 0.5843 GB, free: 9.984 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005226/0.9263, allocations: 2.986 MB / 0.5872 GB, free: 6.953 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006084/0.9324, allocations: 0.926 MB / 0.5881 GB, free: 6.035 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3216/1.254, allocations: 56.21 MB / 0.643 GB, free: 133.3 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004554/1.259, allocations: 4.36 MB / 0.6473 GB, free: 131.8 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.003274/1.262, allocations: 0.8563 MB / 0.6481 GB, free: 131.6 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00325/1.265, allocations: 2.541 MB / 0.6506 GB, free: 129.5 MB / 478.1 MB Notification: Performance of SimCode: time 1.122e-06/1.265, allocations: 3.906 kB / 0.6506 GB, free: 129.5 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1377/1.403, allocations: 95.08 MB / 0.7434 GB, free: 38.69 MB / 478.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000184/1.403, allocations: 284.9 kB / 0.7437 GB, free: 38.33 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.186/5.589, allocations: 0 / 0.7437 GB, free: 38.33 MB / 478.1 MB (rm -f Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMR_Inverter_Polyphase.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMR_Inverter_Polyphase.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMR_Inverter_Polyphase.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMR_Inverter_Polyphase.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMR_Inverter_Polyphase_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_ComparisonPolyphase_SMR_Inverter_Polyphase_fmu --startTime=0 --stopTime=1.5 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_ComparisonPolyphase_SMR_Inverter_Polyphase.fmu > Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMR_Inverter_Polyphase.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMR_Inverter_Polyphase_res.mat does not exist to compare? outputFormat=mat