Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMEE_Generator.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.Electrical.Machines.Examples.SynchronousInductionMachines.SMEE_Generator,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Machines_Examples_SynchronousInductionMachines_SMEE_Generator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMEE_Generator,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Machines_Examples_SynchronousInductionMachines_SMEE_Generator",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.001009/0.001009, allocations: 98.31 kB / 16.94 MB, free: 6.441 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.0008635/0.0008636, allocations: 189.8 kB / 17.83 MB, free: 6.008 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.383/1.383, allocations: 205.4 MB / 224 MB, free: 13.18 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.00073/0.0007303, allocations: 12 kB / 280.9 MB, free: 3.645 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1148/0.1155, allocations: 47.57 MB / 328.4 MB, free: 4 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMEE_Generator): time 0.009649/0.1252, allocations: 9.252 MB / 337.7 MB, free: 10.7 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.006128/0.1314, allocations: 3.804 MB / 341.5 MB, free: 6.895 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001362/0.1328, allocations: 51.75 kB / 341.5 MB, free: 6.844 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002082/0.1349, allocations: 0.6686 MB / 342.2 MB, free: 6.172 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002593/0.1375, allocations: 0.8256 MB / 343 MB, free: 5.344 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001128/0.1387, allocations: 335.5 kB / 343.4 MB, free: 5.016 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.003456/0.1421, allocations: 2.098 MB / 345.5 MB, free: 2.91 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0025/0.1446, allocations: 1.69 MB / 347.1 MB, free: 1.188 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001684/0.1463, allocations: 1.004 MB / 348.1 MB, free: 184 kB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002327/0.1487, allocations: 1.323 MB / 349.5 MB, free: 14.85 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006378/0.1493, allocations: 160 kB / 349.6 MB, free: 14.7 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001189/0.1505, allocations: 359.7 kB / 350 MB, free: 14.34 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001094/0.1516, allocations: 0.7594 MB / 350.7 MB, free: 13.58 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009614/0.1526, allocations: 0.5861 MB / 351.3 MB, free: 12.99 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003688/0.1563, allocations: 4.009 MB / 355.3 MB, free: 8.969 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.846e-06/0.1563, allocations: 0 / 355.3 MB, free: 8.969 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.914e-06/0.1563, allocations: 0 / 355.3 MB, free: 8.969 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.827e-05/0.1564, allocations: 0 / 355.3 MB, free: 8.969 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 656 * Number of variables: 656 Notification: Performance of Generate backend data structure: time 0.005426/0.1618, allocations: 2.973 MB / 358.3 MB, free: 5.93 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.239e-05/0.1619, allocations: 16.03 kB / 358.3 MB, free: 5.914 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004589/0.1624, allocations: 366.7 kB / 358.7 MB, free: 5.547 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001158/0.1635, allocations: 412.1 kB / 359.1 MB, free: 5.141 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002849/0.1664, allocations: 1.667 MB / 360.8 MB, free: 3.418 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000169/0.1666, allocations: 204.9 kB / 361 MB, free: 3.215 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000326/0.1669, allocations: 251.9 kB / 361.2 MB, free: 2.969 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004829/0.1717, allocations: 3.22 MB / 364.4 MB, free: 15.67 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.383e-05/0.1718, allocations: 7.906 kB / 364.4 MB, free: 15.66 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002614/0.1721, allocations: 108 kB / 364.5 MB, free: 15.56 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001211/0.1722, allocations: 116.9 kB / 364.6 MB, free: 15.44 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004195/0.1764, allocations: 2.705 MB / 367.3 MB, free: 12.72 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01514/0.1916, allocations: 10.41 MB / 377.8 MB, free: 1.98 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002337/0.194, allocations: 1.78 MB / 379.5 MB, free: 92 kB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.153/0.347, allocations: 198.3 kB / 379.7 MB, free: 49 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.23e-05/0.3471, allocations: 46.22 kB / 379.8 MB, free: 48.96 MB / 318.1 MB Notification: Performance of pre-optimization done (n=115): time 3.367e-06/0.3471, allocations: 0 / 379.8 MB, free: 48.96 MB / 318.1 MB Notification: Performance of matching and sorting (n=134): time 0.01678/0.3639, allocations: 7.864 MB / 387.6 MB, free: 47.34 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.681e-05/0.3639, allocations: 65.36 kB / 387.7 MB, free: 47.28 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002668/0.3666, allocations: 1.849 MB / 389.6 MB, free: 46.58 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 8.835e-05/0.3667, allocations: 51.58 kB / 389.6 MB, free: 46.53 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006532/0.3674, allocations: 1.24 MB / 390.8 MB, free: 45.58 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002684/0.3676, allocations: 470.5 kB / 391.3 MB, free: 45.22 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.777e-05/0.3677, allocations: 38.27 kB / 391.3 MB, free: 45.2 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 9.515e-05/0.3678, allocations: 369.6 kB / 391.7 MB, free: 44.86 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001144/0.369, allocations: 0.8334 MB / 392.5 MB, free: 44.58 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001272/0.3703, allocations: 1.313 MB / 393.8 MB, free: 43.68 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001343/0.3716, allocations: 1.03 MB / 394.9 MB, free: 43.25 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.015e-06/0.3716, allocations: 4.125 kB / 394.9 MB, free: 43.25 MB / 318.1 MB Notification: Performance of matching and sorting (n=210) (initialization): time 0.003878/0.3755, allocations: 2.784 MB / 397.7 MB, free: 42.11 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.38e-05/0.3756, allocations: 11.81 kB / 397.7 MB, free: 42.11 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.891e-05/0.3756, allocations: 15.78 kB / 397.7 MB, free: 42.11 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007854/0.3764, allocations: 410.6 kB / 398.1 MB, free: 41.98 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001304/0.3777, allocations: 416.6 kB / 398.5 MB, free: 41.95 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004079/0.3818, allocations: 5.194 MB / 403.7 MB, free: 37.83 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001327/0.3831, allocations: 145 kB / 403.8 MB, free: 37.76 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001036/0.3832, allocations: 66.19 kB / 403.9 MB, free: 37.75 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 70 * 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 (190): * Single equations (assignments): 185 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(3,100.0%) 12,(1,100.0%) 3} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001055/0.3843, allocations: 0.7896 MB / 404.7 MB, free: 37.09 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002563/0.3846, allocations: 201.6 kB / 404.9 MB, free: 36.89 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00311/0.3877, allocations: 2.398 MB / 407.3 MB, free: 34.46 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.634e-05/0.3877, allocations: 20 kB / 407.3 MB, free: 34.44 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.583e-06/0.3877, allocations: 5.469 kB / 407.3 MB, free: 34.43 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.094e-05/0.3877, allocations: 7.969 kB / 407.3 MB, free: 34.43 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006521/0.3943, allocations: 5.265 MB / 412.6 MB, free: 29.05 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.484e-06/0.3943, allocations: 8.094 kB / 412.6 MB, free: 29.05 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009154/0.3952, allocations: 267.6 kB / 412.9 MB, free: 28.79 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000885/0.3961, allocations: 443.3 kB / 413.3 MB, free: 28.34 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.641e-05/0.3962, allocations: 39.98 kB / 413.3 MB, free: 28.3 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004668/0.4009, allocations: 6.682 MB / 420 MB, free: 21.23 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.038e-06/0.4009, allocations: 8 kB / 420 MB, free: 21.23 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004637/0.4055, allocations: 3.91 MB / 423.9 MB, free: 17.08 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000903/0.4065, allocations: 454.6 kB / 424.4 MB, free: 16.61 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002355/0.4067, allocations: 35.98 kB / 424.4 MB, free: 16.58 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00106/0.4078, allocations: 115.8 kB / 424.5 MB, free: 16.46 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002145/0.408, allocations: 108.7 kB / 424.6 MB, free: 16.36 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.509e-05/0.4081, allocations: 51.77 kB / 424.7 MB, free: 16.31 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.001498/0.4096, allocations: 1.267 MB / 425.9 MB, free: 15.05 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.4096, allocations: 4 kB / 425.9 MB, free: 15.05 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001662/0.4113, allocations: 0.5349 MB / 426.5 MB, free: 14.52 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 19 * Number of states: 5 (smee.phiMechanical,smee.idq_sr[1],smee.idq_sr[2],smee.idq_rr[2],smee.idq_dr[1]) * 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 (118): * Single equations (assignments): 113 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(3,100.0%) 12,(1,100.0%) 3,(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.004647/0.4159, allocations: 5.669 MB / 432.1 MB, free: 8.672 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.003123/0.4191, allocations: 2.411 MB / 434.6 MB, free: 6.219 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 5.931e-06/0.4191, allocations: 4.438 kB / 434.6 MB, free: 6.215 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00184/0.4209, allocations: 1.519 MB / 436.1 MB, free: 4.656 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001656/0.4226, allocations: 402.4 kB / 436.5 MB, free: 4.27 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02967/0.4523, allocations: 26.56 MB / 463 MB, free: 8.512 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001665/0.454, allocations: 2.049 MB / 465.1 MB, free: 6.43 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.001297/0.4553, allocations: 431.6 kB / 465.5 MB, free: 6.004 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001188/0.4565, allocations: 0.9952 MB / 466.5 MB, free: 5.008 MB / 350.1 MB Notification: Performance of SimCode: time 1.233e-06/0.4565, allocations: 0 / 466.5 MB, free: 5.008 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07438/0.5309, allocations: 45.33 MB / 0.4998 GB, free: 7.598 MB / 398.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002488/0.5312, allocations: 234.8 kB / 0.5001 GB, free: 7.359 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.013/3.545, allocations: 3.953 kB / 0.5001 GB, free: 7.355 MB / 398.1 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMEE_Generator.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMEE_Generator.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMEE_Generator.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMEE_Generator.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMEE_Generator_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Machines_Examples_SynchronousInductionMachines_SMEE_Generator_fmu --startTime=0 --stopTime=30 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Machines_Examples_SynchronousInductionMachines_SMEE_Generator.fmu > Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMEE_Generator.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMEE_Generator_res.mat does not exist to compare? outputFormat=mat