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.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,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMR_Inverter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMR_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.0008555/0.0008554, allocations: 97.77 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.0008586/0.0008586, allocations: 183.7 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.526/1.526, 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.0004715/0.0004716, allocations: 12 kB / 280.9 MB, free: 3.625 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1108/0.1113, allocations: 47.57 MB / 328.5 MB, free: 3.984 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter): time 0.01972/0.131, allocations: 17.85 MB / 346.3 MB, free: 2.066 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.01369/0.1448, allocations: 5.576 MB / 351.9 MB, free: 12.47 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003835/0.1487, allocations: 115.4 kB / 352 MB, free: 12.36 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003675/0.1524, allocations: 0.9822 MB / 353 MB, free: 11.37 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007041/0.1595, allocations: 1.593 MB / 354.6 MB, free: 9.766 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003481/0.163, allocations: 0.8303 MB / 355.4 MB, free: 8.934 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.01036/0.1733, allocations: 6.138 MB / 361.5 MB, free: 2.77 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006401/0.1798, allocations: 3.569 MB / 365.1 MB, free: 15.14 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003987/0.1838, allocations: 2 MB / 367.1 MB, free: 13.14 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005298/0.1892, allocations: 2.669 MB / 369.8 MB, free: 10.46 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001098/0.1903, allocations: 328 kB / 370.1 MB, free: 10.14 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002315/0.1926, allocations: 0.5583 MB / 370.7 MB, free: 9.578 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001408/0.194, allocations: 1.367 MB / 372 MB, free: 8.207 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001669/0.1957, allocations: 1.132 MB / 373.2 MB, free: 7.066 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.2361/0.4318, allocations: 8.359 MB / 381.5 MB, free: 19.1 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.752e-06/0.4319, allocations: 3.438 kB / 381.5 MB, free: 19.1 MB / 318.1 MB Notification: Performance of FrontEnd: time 3.236e-06/0.4319, allocations: 0 / 381.5 MB, free: 19.1 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0003891/0.4323, allocations: 0 / 381.5 MB, free: 19.1 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: 1347 * Number of variables: 1347 Notification: Performance of Generate backend data structure: time 0.01616/0.4484, allocations: 5.586 MB / 387.1 MB, free: 16.99 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.417e-05/0.4485, allocations: 10.22 kB / 387.1 MB, free: 16.99 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002376/0.4509, allocations: 0.7017 MB / 387.8 MB, free: 16.92 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004754/0.4557, allocations: 1.008 MB / 388.8 MB, free: 16.61 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006669/0.4623, allocations: 3.182 MB / 392 MB, free: 15.99 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003943/0.4628, allocations: 401.6 kB / 392.4 MB, free: 15.98 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008709/0.4636, allocations: 0.5075 MB / 392.9 MB, free: 15.97 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01349/0.4771, allocations: 6.741 MB / 399.6 MB, free: 15.65 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000104/0.4773, allocations: 14.31 kB / 399.7 MB, free: 15.64 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00046/0.4777, allocations: 207 kB / 399.9 MB, free: 15.64 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002337/0.478, allocations: 248.6 kB / 400.1 MB, free: 15.63 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009465/0.4875, allocations: 5.731 MB / 405.8 MB, free: 15.31 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02915/0.5166, allocations: 21.19 MB / 427 MB, free: 15.09 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008421/0.5251, allocations: 8.543 MB / 435.6 MB, free: 5.609 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003252/0.5284, allocations: 2.13 MB / 437.7 MB, free: 3.48 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01116/0.5396, allocations: 5.956 MB / 443.7 MB, free: 13.48 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.287e-05/0.5397, allocations: 60.55 kB / 443.7 MB, free: 13.41 MB / 350.1 MB Notification: Performance of pre-optimization done (n=205): time 4.439e-06/0.5397, allocations: 0 / 443.7 MB, free: 13.41 MB / 350.1 MB Notification: Performance of matching and sorting (n=222): time 0.02329/0.563, allocations: 10.4 MB / 454.1 MB, free: 2.832 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.347e-05/0.5631, allocations: 77.41 kB / 454.2 MB, free: 2.742 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006437/0.5696, allocations: 2.884 MB / 457.1 MB, free: 15.85 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000249/0.5698, allocations: 65.7 kB / 457.1 MB, free: 15.78 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002084/0.5719, allocations: 2.352 MB / 459.5 MB, free: 13.41 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008767/0.5728, allocations: 0.768 MB / 460.3 MB, free: 12.65 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001656/0.573, allocations: 60 kB / 460.3 MB, free: 12.59 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0002786/0.5733, allocations: 420 kB / 460.7 MB, free: 12.17 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002167/0.5754, allocations: 1.277 MB / 462 MB, free: 10.89 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002865/0.5783, allocations: 2.181 MB / 464.2 MB, free: 8.328 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00257/0.5809, allocations: 1.646 MB / 465.8 MB, free: 6.707 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.344e-05/0.5809, allocations: 8 kB / 465.8 MB, free: 6.699 MB / 366.1 MB Notification: Performance of matching and sorting (n=373) (initialization): time 0.007936/0.5889, allocations: 4.457 MB / 470.3 MB, free: 2.355 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.733e-05/0.5889, allocations: 16 kB / 470.3 MB, free: 2.34 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.609e-05/0.589, allocations: 28 kB / 470.3 MB, free: 2.312 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001153/0.5901, allocations: 0.5172 MB / 470.9 MB, free: 1.777 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002419/0.5926, allocations: 0.7034 MB / 471.6 MB, free: 1.117 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008925/0.6015, allocations: 9.32 MB / 480.9 MB, free: 7.188 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003162/0.6047, allocations: 179.8 kB / 481.1 MB, free: 7.012 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005019/0.6052, allocations: 136 kB / 481.2 MB, free: 6.879 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 129 * 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 (348): * Single equations (assignments): 341 * 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%) 11,(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.004139/0.6094, allocations: 1.518 MB / 482.7 MB, free: 5.395 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001158/0.6105, allocations: 320.1 kB / 483 MB, free: 5.078 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007821/0.6184, allocations: 3.89 MB / 486.9 MB, free: 1.113 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.174e-05/0.6184, allocations: 20 kB / 486.9 MB, free: 1.094 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.377e-05/0.6184, allocations: 8 kB / 486.9 MB, free: 1.086 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.974e-05/0.6185, allocations: 11.95 kB / 486.9 MB, free: 1.074 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01736/0.6358, allocations: 8.507 MB / 495.5 MB, free: 8.492 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.617e-05/0.6359, allocations: 4 kB / 495.5 MB, free: 8.488 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001634/0.6376, allocations: 397.5 kB / 495.8 MB, free: 8.121 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001868/0.6394, allocations: 0.7204 MB / 496.6 MB, free: 7.379 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001959/0.6397, allocations: 59.97 kB / 496.6 MB, free: 7.32 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01552/0.6552, allocations: 15.19 MB / 0.4998 GB, free: 7.129 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.346e-06/0.6552, allocations: 4 kB / 0.4998 GB, free: 7.125 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01063/0.6659, allocations: 5.576 MB / 0.5053 GB, free: 1.445 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002226/0.6681, allocations: 0.6571 MB / 0.5059 GB, free: 0.7656 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001128/0.6693, allocations: 51.98 kB / 0.506 GB, free: 0.7148 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002067/0.6714, allocations: 151.9 kB / 0.5061 GB, free: 0.5664 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004663/0.6719, allocations: 165.3 kB / 0.5063 GB, free: 420 kB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001965/0.6721, allocations: 68.11 kB / 0.5063 GB, free: 352 kB / 414.1 MB Notification: Performance of sorting global known variables: time 0.004121/0.6762, allocations: 1.944 MB / 0.5082 GB, free: 14.4 MB / 430.1 MB Notification: Performance of sort global known variables: time 3.4e-07/0.6762, allocations: 6.516 kB / 0.5082 GB, free: 14.4 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.004508/0.6807, allocations: 0.9338 MB / 0.5091 GB, free: 13.46 MB / 430.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 13 (vfController.x,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,smrE.inertiaRotor.w,smrE.idq_sr[1],smrE.idq_sr[2],smrE.idq_dr[1],smrE.idq_dr[2],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 (185): * Single equations (assignments): 177 * 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%) 11,(1,100.0%) 3,(1,100.0%) 1,(2,100.0%) 1,(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.01013/0.6909, allocations: 6.239 MB / 0.5152 GB, free: 7.125 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.006915/0.6978, allocations: 3.964 MB / 0.5191 GB, free: 3.152 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 8.055e-06/0.6979, allocations: 3.25 kB / 0.5191 GB, free: 3.152 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004646/0.7026, allocations: 2.665 MB / 0.5217 GB, free: 444 kB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00646/0.709, allocations: 0.8185 MB / 0.5225 GB, free: 15.61 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2659/0.975, allocations: 29.23 MB / 0.5511 GB, free: 156.4 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003505/0.9785, allocations: 3.298 MB / 0.5543 GB, free: 155.2 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.002686/0.9812, allocations: 0.7575 MB / 0.555 GB, free: 155.1 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00219/0.9834, allocations: 1.938 MB / 0.5569 GB, free: 153.5 MB / 446.1 MB Notification: Performance of SimCode: time 1.502e-06/0.9834, allocations: 0 / 0.5569 GB, free: 153.5 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1092/1.093, allocations: 78.63 MB / 0.6337 GB, free: 82.82 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001477/1.093, allocations: 231 kB / 0.6339 GB, free: 82.58 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.28/5.373, allocations: 3.906 kB / 0.6339 GB, free: 82.57 MB / 446.1 MB (rm -f Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMR_Inverter_fmu --startTime=0 --stopTime=1.5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMR_Inverter.fmu > Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_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.SMR_Inverter_res.mat does not exist to compare? outputFormat=mat