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.001136/0.001136, allocations: 96.25 kB / 16.95 MB, free: 6.887 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.001427/0.001427, allocations: 185.7 kB / 17.84 MB, free: 6.133 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.939/1.939, 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.0005455/0.0005458, allocations: 12 kB / 280.9 MB, free: 3.621 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1463/0.1469, allocations: 47.57 MB / 328.5 MB, free: 3.98 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMEE_Generator): time 0.01272/0.1597, allocations: 10.1 MB / 338.6 MB, free: 9.828 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.009436/0.1692, allocations: 3.689 MB / 342.2 MB, free: 6.133 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002677/0.172, allocations: 51.75 kB / 342.3 MB, free: 6.082 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003116/0.1751, allocations: 0.6797 MB / 343 MB, free: 5.398 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004646/0.1798, allocations: 0.8 MB / 343.8 MB, free: 4.594 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001924/0.1817, allocations: 331.5 kB / 344.1 MB, free: 4.27 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.006634/0.1884, allocations: 3.261 MB / 347.4 MB, free: 0.9961 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004805/0.1932, allocations: 1.701 MB / 349.1 MB, free: 15.26 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003196/0.1965, allocations: 1.074 MB / 350.1 MB, free: 14.18 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003846/0.2003, allocations: 1.479 MB / 351.6 MB, free: 12.7 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001156/0.2015, allocations: 164 kB / 351.8 MB, free: 12.54 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002332/0.2039, allocations: 359.6 kB / 352.1 MB, free: 12.19 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002157/0.2061, allocations: 0.802 MB / 352.9 MB, free: 11.38 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002407/0.2085, allocations: 0.5861 MB / 353.5 MB, free: 10.79 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006928/0.2154, allocations: 4.024 MB / 357.5 MB, free: 6.754 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.001e-05/0.2155, allocations: 0 / 357.5 MB, free: 6.754 MB / 302.1 MB Notification: Performance of FrontEnd: time 4.198e-06/0.2156, allocations: 0 / 357.5 MB, free: 6.754 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0004114/0.216, allocations: 0 / 357.5 MB, free: 6.754 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.01032/0.2263, allocations: 2.985 MB / 360.5 MB, free: 3.703 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.778e-05/0.2264, allocations: 12.03 kB / 360.5 MB, free: 3.691 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001888/0.2283, allocations: 362.7 kB / 360.9 MB, free: 3.328 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002884/0.2312, allocations: 408.1 kB / 361.3 MB, free: 2.926 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00651/0.2378, allocations: 1.659 MB / 362.9 MB, free: 1.211 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003838/0.2382, allocations: 201 kB / 363.1 MB, free: 1.012 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001246/0.2395, allocations: 248 kB / 363.4 MB, free: 0.7695 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01121/0.2507, allocations: 3.239 MB / 366.6 MB, free: 13.45 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001258/0.2509, allocations: 11.91 kB / 366.6 MB, free: 13.44 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00039/0.2513, allocations: 99.98 kB / 366.7 MB, free: 13.34 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002161/0.2515, allocations: 120.9 kB / 366.8 MB, free: 13.22 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00631/0.2579, allocations: 2.705 MB / 369.6 MB, free: 10.5 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2822/0.5401, allocations: 10.44 MB / 380 MB, free: 47.32 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002918/0.5431, allocations: 1.782 MB / 381.8 MB, free: 46.72 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002147/0.5453, allocations: 1.055 MB / 382.8 MB, free: 46.7 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002837/0.5456, allocations: 208.9 kB / 383 MB, free: 46.52 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.825e-05/0.5456, allocations: 45.47 kB / 383.1 MB, free: 46.48 MB / 318.1 MB Notification: Performance of pre-optimization done (n=115): time 3.427e-06/0.5456, allocations: 0 / 383.1 MB, free: 46.48 MB / 318.1 MB Notification: Performance of matching and sorting (n=134): time 0.01912/0.5648, allocations: 7.744 MB / 390.8 MB, free: 44.5 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.775e-05/0.5649, allocations: 64.59 kB / 390.9 MB, free: 44.44 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002849/0.5677, allocations: 1.859 MB / 392.7 MB, free: 43.74 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 9.773e-05/0.5678, allocations: 47.2 kB / 392.8 MB, free: 43.69 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008768/0.5687, allocations: 1.239 MB / 394 MB, free: 42.73 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004096/0.5691, allocations: 471.3 kB / 394.5 MB, free: 42.38 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.32e-05/0.5692, allocations: 34.28 kB / 394.5 MB, free: 42.36 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001289/0.5694, allocations: 365.2 kB / 394.9 MB, free: 42.03 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001548/0.5709, allocations: 0.826 MB / 395.7 MB, free: 41.75 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001404/0.5723, allocations: 1.33 MB / 397 MB, free: 40.83 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001322/0.5737, allocations: 1.018 MB / 398.1 MB, free: 40.41 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.868e-06/0.5737, allocations: 3.969 kB / 398.1 MB, free: 40.41 MB / 318.1 MB Notification: Performance of matching and sorting (n=210) (initialization): time 0.00456/0.5782, allocations: 2.818 MB / 400.9 MB, free: 39.15 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.825e-05/0.5783, allocations: 11.16 kB / 400.9 MB, free: 39.15 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.662e-05/0.5783, allocations: 15.88 kB / 400.9 MB, free: 39.15 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000883/0.5792, allocations: 419.3 kB / 401.3 MB, free: 38.95 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001256/0.5805, allocations: 413.4 kB / 401.7 MB, free: 38.84 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004572/0.5851, allocations: 5.288 MB / 407 MB, free: 34.56 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001731/0.5868, allocations: 136.3 kB / 407.1 MB, free: 34.43 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001182/0.5869, allocations: 68 kB / 407.2 MB, free: 34.36 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 71 * 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 (187): * Single equations (assignments): 182 * 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%) 6} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001454/0.5884, allocations: 0.7933 MB / 408 MB, free: 33.56 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004113/0.5888, allocations: 193.7 kB / 408.2 MB, free: 33.37 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00343/0.5923, allocations: 2.419 MB / 410.6 MB, free: 30.91 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.49e-05/0.5923, allocations: 16 kB / 410.6 MB, free: 30.9 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.996e-06/0.5923, allocations: 4.625 kB / 410.6 MB, free: 30.89 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.315e-05/0.5923, allocations: 7.969 kB / 410.6 MB, free: 30.89 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007302/0.5996, allocations: 5.321 MB / 416 MB, free: 25.45 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.839e-06/0.5997, allocations: 8 kB / 416 MB, free: 25.44 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009072/0.6006, allocations: 259.6 kB / 416.2 MB, free: 25.19 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009806/0.6016, allocations: 452.3 kB / 416.7 MB, free: 24.74 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.64e-05/0.6017, allocations: 39.98 kB / 416.7 MB, free: 24.7 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00508/0.6068, allocations: 6.721 MB / 423.4 MB, free: 17.59 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.86e-06/0.6068, allocations: 7.938 kB / 423.4 MB, free: 17.59 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00488/0.6117, allocations: 3.633 MB / 427.1 MB, free: 13.85 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008959/0.6126, allocations: 450.6 kB / 427.5 MB, free: 13.39 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002306/0.6129, allocations: 28.33 kB / 427.5 MB, free: 13.36 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009551/0.6138, allocations: 121 kB / 427.6 MB, free: 13.24 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002184/0.614, allocations: 108.7 kB / 427.8 MB, free: 13.14 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.989e-05/0.6141, allocations: 43.98 kB / 427.8 MB, free: 13.09 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.001703/0.6158, allocations: 1.283 MB / 429.1 MB, free: 11.82 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.6159, allocations: 0 / 429.1 MB, free: 11.82 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001893/0.6178, allocations: 0.5436 MB / 429.6 MB, free: 11.28 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 21 * 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 (116): * Single equations (assignments): 111 * 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%) 6,(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.004802/0.6226, allocations: 4.251 MB / 433.9 MB, free: 6.918 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.003501/0.6261, allocations: 2.435 MB / 436.3 MB, free: 4.441 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 7.234e-06/0.6261, allocations: 0.9375 kB / 436.3 MB, free: 4.441 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002033/0.6281, allocations: 1.528 MB / 437.8 MB, free: 2.879 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002308/0.6305, allocations: 437 kB / 438.3 MB, free: 2.453 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02888/0.6594, allocations: 16.37 MB / 454.6 MB, free: 0.9805 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001871/0.6613, allocations: 2.017 MB / 456.7 MB, free: 14.93 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.001562/0.6628, allocations: 427.7 kB / 457.1 MB, free: 14.51 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001252/0.6641, allocations: 0.9835 MB / 458.1 MB, free: 13.53 MB / 350.1 MB Notification: Performance of SimCode: time 1.112e-06/0.6641, allocations: 0 / 458.1 MB, free: 13.53 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08114/0.7452, allocations: 45.4 MB / 0.4917 GB, free: 52 kB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001926/0.7455, allocations: 241.2 kB / 0.4919 GB, free: 15.77 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.45/4.196, allocations: 0 / 0.4919 GB, free: 15.77 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