Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_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.SMPM_Inverter_MultiPhase,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMPM_Inverter_MultiPhase",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter_MultiPhase,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMPM_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.002365/0.002365, allocations: 183.1 kB / 16.4 MB, free: 5.75 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.037/2.037, allocations: 205.4 MB / 222.5 MB, free: 9.109 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.001597/0.001597, allocations: 85.56 kB / 270.9 MB, free: 8.363 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005979/0.0005979, allocations: 8 kB / 327.1 MB, free: 96 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4311/0.4318, allocations: 47.57 MB / 374.6 MB, free: 45.42 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter_MultiPhase): time 0.02847/0.4603, allocations: 20.24 MB / 394.9 MB, free: 28.55 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.01613/0.4765, allocations: 6.889 MB / 401.8 MB, free: 21.64 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004672/0.4812, allocations: 139.4 kB / 401.9 MB, free: 21.5 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.005435/0.4867, allocations: 1.27 MB / 403.2 MB, free: 20.23 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.009148/0.4959, allocations: 2.06 MB / 405.2 MB, free: 18.16 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.005/0.5009, allocations: 1.015 MB / 406.2 MB, free: 17.16 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.01266/0.5136, allocations: 5.842 MB / 412.1 MB, free: 11.3 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00797/0.5216, allocations: 5.094 MB / 417.2 MB, free: 6.156 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004769/0.5264, allocations: 2.658 MB / 419.8 MB, free: 3.488 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00615/0.5326, allocations: 3.229 MB / 423.1 MB, free: 252 kB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001785/0.5344, allocations: 460 kB / 423.5 MB, free: 15.79 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003375/0.5378, allocations: 0.6208 MB / 424.1 MB, free: 15.18 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002506/0.5403, allocations: 1.628 MB / 425.8 MB, free: 13.54 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.003182/0.5435, allocations: 1.599 MB / 427.4 MB, free: 11.93 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01938/0.563, allocations: 11.97 MB / 439.3 MB, free: 15.93 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.559e-06/0.563, allocations: 0 / 439.3 MB, free: 15.93 MB / 330.7 MB Notification: Performance of FrontEnd: time 4.458e-06/0.563, allocations: 0 / 439.3 MB, free: 15.93 MB / 330.7 MB Notification: Performance of Transformations before backend: time 0.0004132/0.5635, allocations: 4 kB / 439.3 MB, free: 15.93 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1932 * Number of variables: 1932 Notification: Performance of Generate backend data structure: time 0.03217/0.5956, allocations: 7.789 MB / 447.1 MB, free: 8.039 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.085e-05/0.5957, allocations: 12.03 kB / 447.1 MB, free: 8.027 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003676/0.5994, allocations: 0.9919 MB / 448.1 MB, free: 7.023 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01484/0.6143, allocations: 1.747 MB / 449.9 MB, free: 5.266 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01436/0.6287, allocations: 4.556 MB / 454.4 MB, free: 0.6367 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007761/0.6295, allocations: 0.5416 MB / 455 MB, free: 96 kB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002619/0.6322, allocations: 0.7069 MB / 455.7 MB, free: 15.38 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03174/0.6639, allocations: 9.672 MB / 465.4 MB, free: 5.637 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002691/0.6642, allocations: 15.92 kB / 465.4 MB, free: 5.621 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001466/0.6657, allocations: 292 kB / 465.7 MB, free: 5.336 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005441/0.6663, allocations: 358.6 kB / 466 MB, free: 4.984 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02958/0.6959, allocations: 8.248 MB / 474.3 MB, free: 12.73 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3595/1.055, allocations: 30.51 MB / 0.4929 GB, free: 90.42 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02276/1.078, allocations: 16.04 MB / 0.5086 GB, free: 78.44 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01744/1.096, allocations: 6.818 MB / 0.5153 GB, free: 76.79 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.208e-05/1.096, allocations: 67.92 kB / 0.5153 GB, free: 76.72 MB / 378.7 MB Notification: Performance of pre-optimization done (n=303): time 7.073e-06/1.096, allocations: 1.688 kB / 0.5153 GB, free: 76.72 MB / 378.7 MB Notification: Performance of matching and sorting (n=313): time 0.03975/1.136, allocations: 12.56 MB / 0.5276 GB, free: 70.35 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.352e-05/1.136, allocations: 86.33 kB / 0.5277 GB, free: 70.28 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006535/1.142, allocations: 3.466 MB / 0.5311 GB, free: 68.45 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005326/1.143, allocations: 76.23 kB / 0.5311 GB, free: 68.38 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001949/1.145, allocations: 2.959 MB / 0.534 GB, free: 65.74 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001209/1.146, allocations: 1.072 MB / 0.5351 GB, free: 64.81 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003002/1.146, allocations: 79.44 kB / 0.5351 GB, free: 64.75 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0002161/1.147, allocations: 461.9 kB / 0.5356 GB, free: 64.32 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003953/1.151, allocations: 1.551 MB / 0.5371 GB, free: 63.51 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004351/1.155, allocations: 2.666 MB / 0.5397 GB, free: 60.46 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00481/1.16, allocations: 2.047 MB / 0.5417 GB, free: 58.4 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.414e-05/1.16, allocations: 12 kB / 0.5417 GB, free: 58.39 MB / 378.7 MB Notification: Performance of matching and sorting (n=493) (initialization): time 0.01166/1.172, allocations: 4.965 MB / 0.5466 GB, free: 53.35 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.74e-05/1.172, allocations: 24.78 kB / 0.5466 GB, free: 53.32 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.546e-05/1.172, allocations: 33.41 kB / 0.5466 GB, free: 53.29 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00155/1.173, allocations: 445.9 kB / 0.547 GB, free: 52.84 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006193/1.179, allocations: 0.9048 MB / 0.5479 GB, free: 51.93 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008433/1.188, allocations: 7.719 MB / 0.5555 GB, free: 43.7 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004509/1.192, allocations: 179.9 kB / 0.5556 GB, free: 43.52 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004325/1.193, allocations: 172 kB / 0.5558 GB, free: 43.35 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 156 * 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 (465): * Single equations (assignments): 459 * 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.005053/1.198, allocations: 2.148 MB / 0.5579 GB, free: 41.19 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009997/1.199, allocations: 399.1 kB / 0.5583 GB, free: 40.8 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01178/1.211, allocations: 4.739 MB / 0.5629 GB, free: 35.95 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.042e-05/1.211, allocations: 32 kB / 0.5629 GB, free: 35.92 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.989e-05/1.211, allocations: 15.94 kB / 0.5629 GB, free: 35.91 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.002e-05/1.211, allocations: 23.83 kB / 0.563 GB, free: 35.88 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02546/1.236, allocations: 11.26 MB / 0.574 GB, free: 24.46 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.773e-05/1.236, allocations: 4 kB / 0.574 GB, free: 24.46 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003942/1.24, allocations: 0.4918 MB / 0.5744 GB, free: 23.96 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003338/1.244, allocations: 0.8563 MB / 0.5753 GB, free: 23.09 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002879/1.244, allocations: 83.91 kB / 0.5754 GB, free: 23.01 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0217/1.266, allocations: 16.4 MB / 0.5914 GB, free: 5.68 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.664e-06/1.266, allocations: 7.938 kB / 0.5914 GB, free: 5.672 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01646/1.282, allocations: 7.34 MB / 0.5986 GB, free: 14.02 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002914/1.285, allocations: 0.8046 MB / 0.5993 GB, free: 13.19 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001285/1.287, allocations: 75.98 kB / 0.5994 GB, free: 13.11 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004062/1.291, allocations: 151.9 kB / 0.5996 GB, free: 12.96 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001083/1.292, allocations: 233.9 kB / 0.5998 GB, free: 12.73 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003434/1.292, allocations: 95.97 kB / 0.5999 GB, free: 12.64 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.006606/1.299, allocations: 2.327 MB / 0.6021 GB, free: 10.33 MB / 394.7 MB Notification: Performance of sort global known variables: time 6.01e-07/1.299, allocations: 8 kB / 0.6022 GB, free: 10.32 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.007007/1.306, allocations: 1.219 MB / 0.6033 GB, free: 9.105 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 23 * Number of states: 14 (vfController3.x,smpmM.inertiaRotor.w,smpmM.stator.core.Phi.re,smpmM.stator.core.Phi.im,smpmM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.re,smpmM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.im,smpm3.inertiaRotor.w,smpm3.stator.core.Phi.re,smpm3.stator.core.Phi.im,smpm3.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.re,smpm3.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.im,loadInertiaM.phi,loadInertia3.phi,vfController.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 (243): * Single equations (assignments): 236 * 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%) 13,(1,100.0%) 1,(1,100.0%) 8,(2,100.0%) 13} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.02164/1.328, allocations: 9.216 MB / 0.6123 GB, free: 15.57 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.01261/1.34, allocations: 4.576 MB / 0.6168 GB, free: 10.89 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.3e-05/1.34, allocations: 4 kB / 0.6168 GB, free: 10.88 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.008538/1.349, allocations: 3.094 MB / 0.6198 GB, free: 7.695 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00793/1.357, allocations: 1.03 MB / 0.6208 GB, free: 6.676 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4135/1.77, allocations: 61.19 MB / 0.6806 GB, free: 142.6 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007753/1.778, allocations: 4.375 MB / 0.6849 GB, free: 141.1 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006081/1.784, allocations: 2.74 MB / 0.6875 GB, free: 138.8 MB / 442.7 MB Notification: Performance of SimCode: time 1.763e-06/1.784, allocations: 0 / 0.6875 GB, free: 138.8 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.838/7.622, allocations: 334.4 MB / 1.014 GB, free: 125.3 MB / 442.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter_MultiPhase.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter_MultiPhase.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter_MultiPhase.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter_MultiPhase.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter_MultiPhase_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMPM_Inverter_MultiPhase_fmu --startTime=0 --stopTime=1.5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMPM_Inverter_MultiPhase.fmu > Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_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.SMPM_Inverter_MultiPhase_res.mat does not exist to compare? outputFormat=mat