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.001065/0.001065, allocations: 97.88 kB / 16.93 MB, free: 5.984 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.001212/0.001212, allocations: 179.3 kB / 17.82 MB, free: 5.652 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.351/1.351, 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.0004586/0.0004586, allocations: 12 kB / 280.9 MB, free: 3.645 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0987/0.09917, allocations: 47.57 MB / 328.4 MB, free: 4.004 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter): time 0.01811/0.1173, allocations: 16.25 MB / 344.7 MB, free: 3.699 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.01156/0.129, allocations: 5.761 MB / 350.4 MB, free: 13.92 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002288/0.1313, allocations: 107.5 kB / 350.5 MB, free: 13.81 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002296/0.1336, allocations: 1.014 MB / 351.6 MB, free: 12.79 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004711/0.1383, allocations: 1.686 MB / 353.2 MB, free: 11.1 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002089/0.1404, allocations: 0.8304 MB / 354.1 MB, free: 10.27 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.006102/0.1465, allocations: 4.076 MB / 358.1 MB, free: 6.184 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004041/0.1506, allocations: 3.577 MB / 361.7 MB, free: 2.551 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002668/0.1533, allocations: 1.907 MB / 363.6 MB, free: 0.6367 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002826/0.1561, allocations: 2.389 MB / 366 MB, free: 14.24 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005294/0.1567, allocations: 320 kB / 366.3 MB, free: 13.93 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001334/0.158, allocations: 0.5348 MB / 366.9 MB, free: 13.39 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001196/0.1592, allocations: 1.312 MB / 368.2 MB, free: 12.07 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001101/0.1603, allocations: 1.128 MB / 369.3 MB, free: 10.94 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007213/0.1675, allocations: 8.301 MB / 377.6 MB, free: 2.613 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.515e-06/0.1676, allocations: 0 / 377.6 MB, free: 2.613 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.873e-06/0.1676, allocations: 0 / 377.6 MB, free: 2.613 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0001858/0.1678, allocations: 0 / 377.6 MB, free: 2.613 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.1872/0.355, allocations: 5.569 MB / 383.2 MB, free: 45.34 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.414e-05/0.355, allocations: 12.06 kB / 383.2 MB, free: 45.34 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002389/0.3574, allocations: 0.7017 MB / 383.9 MB, free: 45.22 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00493/0.3624, allocations: 1.009 MB / 384.9 MB, free: 44.86 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007507/0.3699, allocations: 3.217 MB / 388.1 MB, free: 43.12 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004359/0.3704, allocations: 402.1 kB / 388.5 MB, free: 42.95 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001124/0.3715, allocations: 0.4995 MB / 389 MB, free: 42.79 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01171/0.3832, allocations: 6.702 MB / 395.7 MB, free: 39.14 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001105/0.3834, allocations: 15.83 kB / 395.7 MB, free: 39.13 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004435/0.3838, allocations: 207.3 kB / 395.9 MB, free: 38.98 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000237/0.3841, allocations: 246 kB / 396.2 MB, free: 38.94 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008584/0.3927, allocations: 5.735 MB / 401.9 MB, free: 35.94 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02721/0.4199, allocations: 21.12 MB / 423 MB, free: 14.77 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005819/0.4258, allocations: 8.553 MB / 431.6 MB, free: 5.262 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007449/0.4332, allocations: 4.962 MB / 436.5 MB, free: 216 kB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.036e-05/0.4333, allocations: 60.56 kB / 436.6 MB, free: 148 kB / 318.1 MB Notification: Performance of pre-optimization done (n=219): time 4.108e-06/0.4333, allocations: 0 / 436.6 MB, free: 148 kB / 318.1 MB Notification: Performance of matching and sorting (n=238): time 0.02154/0.4549, allocations: 11.04 MB / 447.6 MB, free: 4.895 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.696e-05/0.455, allocations: 77.39 kB / 447.7 MB, free: 4.805 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003971/0.4589, allocations: 2.809 MB / 450.5 MB, free: 1.984 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001603/0.4591, allocations: 65.7 kB / 450.6 MB, free: 1.914 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001668/0.4608, allocations: 2.327 MB / 452.9 MB, free: 15.57 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006636/0.4615, allocations: 0.8232 MB / 453.7 MB, free: 14.75 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001428/0.4616, allocations: 60 kB / 453.8 MB, free: 14.69 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000228/0.4618, allocations: 420.2 kB / 454.2 MB, free: 14.27 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002099/0.4639, allocations: 1.322 MB / 455.5 MB, free: 12.95 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002699/0.4667, allocations: 2.188 MB / 457.7 MB, free: 10.38 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002524/0.4692, allocations: 1.693 MB / 459.4 MB, free: 8.664 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.366e-05/0.4692, allocations: 8 kB / 459.4 MB, free: 8.656 MB / 350.1 MB Notification: Performance of matching and sorting (n=383) (initialization): time 0.00726/0.4765, allocations: 4.548 MB / 464 MB, free: 4 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.636e-05/0.4765, allocations: 16 kB / 464 MB, free: 3.984 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.352e-05/0.4766, allocations: 28 kB / 464 MB, free: 3.957 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001147/0.4777, allocations: 0.5152 MB / 464.5 MB, free: 3.426 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002513/0.4803, allocations: 0.7293 MB / 465.3 MB, free: 2.695 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008847/0.4891, allocations: 9.46 MB / 474.7 MB, free: 8.578 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002425/0.4916, allocations: 183.9 kB / 474.9 MB, free: 8.398 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002063/0.4918, allocations: 128 kB / 475 MB, free: 8.273 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 124 * 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 (358): * Single equations (assignments): 351 * 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 {(1,100.0%) 1,(3,100.0%) 11,(1,100.0%) 3,(1,100.0%) 5,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002797/0.4946, allocations: 1.524 MB / 476.5 MB, free: 6.738 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005109/0.4951, allocations: 312.2 kB / 476.9 MB, free: 6.43 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006459/0.5016, allocations: 4.049 MB / 480.9 MB, free: 2.281 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.773e-05/0.5016, allocations: 20 kB / 480.9 MB, free: 2.262 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.368e-05/0.5016, allocations: 8 kB / 480.9 MB, free: 2.254 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.123e-05/0.5016, allocations: 15.89 kB / 480.9 MB, free: 2.238 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01388/0.5155, allocations: 8.81 MB / 489.8 MB, free: 9.27 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.22e-05/0.5156, allocations: 4 kB / 489.8 MB, free: 9.266 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001728/0.5173, allocations: 424.1 kB / 490.2 MB, free: 8.852 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001742/0.5191, allocations: 0.7197 MB / 490.9 MB, free: 8.109 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001652/0.5192, allocations: 67.97 kB / 491 MB, free: 8.043 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01426/0.5335, allocations: 15.37 MB / 0.4945 GB, free: 7.625 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.605e-06/0.5335, allocations: 7.938 kB / 0.4945 GB, free: 7.617 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009258/0.5428, allocations: 6.276 MB / 0.5006 GB, free: 1.02 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001933/0.5448, allocations: 0.6649 MB / 0.5012 GB, free: 340 kB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005777/0.5454, allocations: 63.92 kB / 0.5013 GB, free: 276 kB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001543/0.5469, allocations: 143.9 kB / 0.5014 GB, free: 132 kB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004189/0.5473, allocations: 189.6 kB / 0.5016 GB, free: 15.95 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001446/0.5475, allocations: 71.98 kB / 0.5017 GB, free: 15.88 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.002855/0.5504, allocations: 1.885 MB / 0.5035 GB, free: 13.99 MB / 414.1 MB Notification: Performance of sort global known variables: time 2.21e-07/0.5504, allocations: 0 / 0.5035 GB, free: 13.99 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.003295/0.5537, allocations: 0.9402 MB / 0.5045 GB, free: 13.05 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 22 * 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 (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 {(3,100.0%) 11,(1,100.0%) 3,(1,100.0%) 5,(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.01019/0.5639, allocations: 8.157 MB / 0.5124 GB, free: 4.641 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.006659/0.5706, allocations: 4.075 MB / 0.5164 GB, free: 476 kB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 7.895e-06/0.5706, allocations: 4.062 kB / 0.5164 GB, free: 472 kB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004248/0.5749, allocations: 2.738 MB / 0.5191 GB, free: 13.62 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003767/0.5786, allocations: 0.7768 MB / 0.5198 GB, free: 12.84 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.212/0.7907, allocations: 47.65 MB / 0.5664 GB, free: 114.3 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002721/0.7935, allocations: 3.397 MB / 0.5697 GB, free: 113.1 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.002501/0.796, allocations: 0.7649 MB / 0.5704 GB, free: 113.1 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001905/0.7979, allocations: 1.975 MB / 0.5724 GB, free: 111.4 MB / 430.1 MB Notification: Performance of SimCode: time 1.263e-06/0.7979, allocations: 0 / 0.5724 GB, free: 111.4 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1065/0.9044, allocations: 78.62 MB / 0.6491 GB, free: 40.15 MB / 430.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001394/0.9046, allocations: 221.3 kB / 0.6494 GB, free: 39.91 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.526/4.431, allocations: 4 kB / 0.6494 GB, free: 39.91 MB / 430.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