Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter.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.SMPM_Inverter,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMPM_Inverter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMPM_Inverter",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.001432/0.001432, allocations: 98.17 kB / 16.95 MB, free: 6.035 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.001337/0.001337, allocations: 173.5 kB / 17.83 MB, free: 5.68 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.517/1.517, 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.0004629/0.0004631, allocations: 8 kB / 280.9 MB, free: 3.625 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09464/0.09511, allocations: 47.58 MB / 328.5 MB, free: 3.977 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter): time 0.02178/0.117, allocations: 19.15 MB / 347.6 MB, free: 0.7578 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.01396/0.131, allocations: 6.043 MB / 353.7 MB, free: 10.69 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00446/0.1355, allocations: 111.5 kB / 353.8 MB, free: 10.58 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004551/0.1401, allocations: 1.095 MB / 354.9 MB, free: 9.48 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007497/0.1476, allocations: 1.705 MB / 356.6 MB, free: 7.766 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005081/0.1527, allocations: 0.8577 MB / 357.4 MB, free: 6.906 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.01112/0.1638, allocations: 6.53 MB / 364 MB, free: 356 kB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00886/0.1728, allocations: 3.69 MB / 367.6 MB, free: 12.6 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005082/0.1779, allocations: 2.128 MB / 369.8 MB, free: 10.46 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006191/0.1841, allocations: 2.801 MB / 372.6 MB, free: 7.652 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00236/0.1865, allocations: 344 kB / 372.9 MB, free: 7.316 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004045/0.1906, allocations: 0.5778 MB / 373.5 MB, free: 6.738 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003456/0.1941, allocations: 1.433 MB / 374.9 MB, free: 5.301 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00356/0.1977, allocations: 1.198 MB / 376.1 MB, free: 4.094 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.2425/0.4402, allocations: 8.742 MB / 384.9 MB, free: 19.41 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.101e-05/0.4403, allocations: 3.375 kB / 384.9 MB, free: 19.41 MB / 318.1 MB Notification: Performance of FrontEnd: time 5.741e-06/0.4403, allocations: 3.062 kB / 384.9 MB, free: 19.41 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0004681/0.4408, allocations: 0 / 384.9 MB, free: 19.41 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: 1413 * Number of variables: 1413 Notification: Performance of Generate backend data structure: time 0.02079/0.4616, allocations: 5.872 MB / 390.7 MB, free: 17.15 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.27e-05/0.4617, allocations: 10 kB / 390.7 MB, free: 17.15 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004183/0.4659, allocations: 0.7332 MB / 391.5 MB, free: 17.08 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008914/0.4748, allocations: 1.067 MB / 392.5 MB, free: 16.75 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01304/0.4879, allocations: 3.351 MB / 395.9 MB, free: 15.93 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005793/0.4885, allocations: 416.2 kB / 396.3 MB, free: 15.92 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002986/0.4915, allocations: 0.52 MB / 396.8 MB, free: 15.91 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0253/0.5168, allocations: 7.028 MB / 403.9 MB, free: 14.29 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002641/0.5171, allocations: 17.03 kB / 403.9 MB, free: 14.29 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002127/0.5193, allocations: 217.6 kB / 404.1 MB, free: 14.29 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003091/0.5196, allocations: 263.4 kB / 404.3 MB, free: 14.26 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0156/0.5352, allocations: 5.922 MB / 410.3 MB, free: 13.35 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04386/0.5791, allocations: 22.53 MB / 432.8 MB, free: 11.01 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008889/0.5881, allocations: 8.288 MB / 441.1 MB, free: 1.844 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00383/0.592, allocations: 2.203 MB / 443.3 MB, free: 15.64 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01181/0.6038, allocations: 6.208 MB / 449.5 MB, free: 9.391 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.384e-05/0.6039, allocations: 60.56 kB / 449.5 MB, free: 9.324 MB / 350.1 MB Notification: Performance of pre-optimization done (n=220): time 4.599e-06/0.6039, allocations: 0 / 449.5 MB, free: 9.324 MB / 350.1 MB Notification: Performance of matching and sorting (n=240): time 0.02476/0.6287, allocations: 11.31 MB / 460.9 MB, free: 13.81 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.343e-05/0.6288, allocations: 77.41 kB / 460.9 MB, free: 13.72 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00687/0.6357, allocations: 3.128 MB / 464.1 MB, free: 10.59 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0006249/0.6364, allocations: 69.7 kB / 464.1 MB, free: 10.52 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002326/0.6387, allocations: 2.497 MB / 466.6 MB, free: 8.004 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001284/0.64, allocations: 0.8271 MB / 467.5 MB, free: 7.184 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003794/0.6404, allocations: 64 kB / 467.5 MB, free: 7.121 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0002795/0.6407, allocations: 428.6 kB / 467.9 MB, free: 6.695 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002733/0.6434, allocations: 1.341 MB / 469.3 MB, free: 5.352 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003345/0.6468, allocations: 2.336 MB / 471.6 MB, free: 2.586 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003238/0.6501, allocations: 1.742 MB / 473.4 MB, free: 0.8516 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.373e-05/0.6501, allocations: 12 kB / 473.4 MB, free: 0.8398 MB / 366.1 MB Notification: Performance of matching and sorting (n=406) (initialization): time 0.009473/0.6596, allocations: 4.715 MB / 478.1 MB, free: 12.22 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.063e-05/0.6597, allocations: 16 kB / 478.1 MB, free: 12.2 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.42e-05/0.6598, allocations: 32 kB / 478.1 MB, free: 12.17 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001217/0.661, allocations: 0.5274 MB / 478.7 MB, free: 11.62 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002885/0.6639, allocations: 0.7538 MB / 479.4 MB, free: 10.92 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009178/0.6731, allocations: 9.408 MB / 488.8 MB, free: 0.9062 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003589/0.6767, allocations: 202 kB / 489 MB, free: 0.7109 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006793/0.6774, allocations: 136 kB / 489.1 MB, free: 0.5781 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 144 * 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 (380): * Single equations (assignments): 373 * 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: 5 * 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: 5 {(3,100.0%) 12,(1,100.0%) 3,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.004164/0.6816, allocations: 1.578 MB / 490.7 MB, free: 15.04 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001082/0.6827, allocations: 339.8 kB / 491.1 MB, free: 14.71 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007994/0.6907, allocations: 4.065 MB / 495.1 MB, free: 10.57 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.117e-05/0.6908, allocations: 24 kB / 495.1 MB, free: 10.54 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.612e-05/0.6908, allocations: 12 kB / 495.2 MB, free: 10.53 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.597e-05/0.6908, allocations: 11.95 kB / 495.2 MB, free: 10.52 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0159/0.7067, allocations: 8.987 MB / 0.4923 GB, free: 1.453 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.912e-05/0.7068, allocations: 4.062 kB / 0.4923 GB, free: 1.449 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001769/0.7086, allocations: 420.5 kB / 0.4927 GB, free: 1.059 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001795/0.7104, allocations: 0.7447 MB / 0.4935 GB, free: 304 kB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001913/0.7106, allocations: 63.98 kB / 0.4935 GB, free: 240 kB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01468/0.7253, allocations: 15.31 MB / 0.5085 GB, free: 15.94 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.008e-05/0.7254, allocations: 11.98 kB / 0.5085 GB, free: 15.93 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01041/0.7358, allocations: 5.863 MB / 0.5142 GB, free: 9.938 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002459/0.7383, allocations: 0.6998 MB / 0.5149 GB, free: 9.215 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006512/0.739, allocations: 63.94 kB / 0.515 GB, free: 9.152 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001601/0.7406, allocations: 151.9 kB / 0.5151 GB, free: 9.004 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004481/0.741, allocations: 183.7 kB / 0.5153 GB, free: 8.828 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001641/0.7412, allocations: 71.97 kB / 0.5154 GB, free: 8.758 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.004106/0.7453, allocations: 2.107 MB / 0.5174 GB, free: 6.66 MB / 430.1 MB Notification: Performance of sort global known variables: time 3.6e-07/0.7453, allocations: 0 / 0.5174 GB, free: 6.66 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.004748/0.7501, allocations: 0.9884 MB / 0.5184 GB, free: 5.672 MB / 430.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 20 * Number of states: 13 (vfController.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,smpmE.inertiaRotor.w,smpmE.idq_sr[1],smpmE.idq_sr[2],smpmE.idq_rr[2],smpmE.idq_dr[1],loadInertiaM.phi,loadInertiaE.phi) * 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 (201): * Single equations (assignments): 193 * 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: 8 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 8 {(1,100.0%) 5,(3,100.0%) 12,(1,100.0%) 3,(1,100.0%) 1,(2,100.0%) 1,(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.01078/0.7609, allocations: 6.543 MB / 0.5248 GB, free: 15.02 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.007566/0.7685, allocations: 4.138 MB / 0.5288 GB, free: 10.89 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 9.307e-06/0.7685, allocations: 192 / 0.5288 GB, free: 10.89 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005044/0.7736, allocations: 2.764 MB / 0.5315 GB, free: 8.066 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005728/0.7794, allocations: 0.9202 MB / 0.5324 GB, free: 7.145 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2869/1.066, allocations: 31.4 MB / 0.5631 GB, free: 149.9 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004069/1.07, allocations: 3.407 MB / 0.5664 GB, free: 148.7 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.003177/1.074, allocations: 0.8161 MB / 0.5672 GB, free: 148.6 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002814/1.076, allocations: 2.1 MB / 0.5692 GB, free: 146.9 MB / 446.1 MB Notification: Performance of SimCode: time 1.192e-06/1.077, allocations: 0 / 0.5692 GB, free: 146.9 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1254/1.202, allocations: 84.79 MB / 0.652 GB, free: 65.3 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001574/1.202, allocations: 236.1 kB / 0.6523 GB, free: 65.05 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.139/5.342, allocations: 4 kB / 0.6523 GB, free: 65.05 MB / 446.1 MB (rm -f Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMPM_Inverter_fmu --startTime=0 --stopTime=1.5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMPM_Inverter.fmu > Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter.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.SMPM_Inverter_res.mat does not exist to compare? outputFormat=mat