Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMEE_DOL.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_DOL,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Machines_Examples_SynchronousInductionMachines_SMEE_DOL",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMEE_DOL,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Machines_Examples_SynchronousInductionMachines_SMEE_DOL",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.00107/0.00107, allocations: 97.31 kB / 16.95 MB, free: 6.891 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.001167/0.001167, allocations: 184.9 kB / 17.84 MB, free: 6.137 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.764/1.764, allocations: 205.4 MB / 224 MB, free: 13.15 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.0004752/0.0004753, allocations: 15.94 kB / 280.9 MB, free: 3.609 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1153/0.1158, allocations: 47.57 MB / 328.4 MB, free: 3.969 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMEE_DOL): time 0.01129/0.1271, allocations: 10.41 MB / 338.9 MB, free: 9.508 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.00884/0.136, allocations: 3.755 MB / 342.6 MB, free: 5.746 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002317/0.1384, allocations: 51.75 kB / 342.7 MB, free: 5.695 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002341/0.1408, allocations: 0.6915 MB / 343.4 MB, free: 5 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003063/0.1438, allocations: 0.8351 MB / 344.2 MB, free: 4.16 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00124/0.1451, allocations: 347.4 kB / 344.5 MB, free: 3.82 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.004982/0.1501, allocations: 3.514 MB / 348 MB, free: 300 kB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002385/0.1525, allocations: 1.801 MB / 349.8 MB, free: 14.46 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002131/0.1546, allocations: 1.148 MB / 351 MB, free: 13.3 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002295/0.1569, allocations: 1.584 MB / 352.6 MB, free: 11.71 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003463/0.1573, allocations: 172 kB / 352.7 MB, free: 11.55 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009393/0.1583, allocations: 371.6 kB / 353.1 MB, free: 11.18 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008678/0.1591, allocations: 0.8605 MB / 354 MB, free: 10.32 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008096/0.16, allocations: 0.625 MB / 354.6 MB, free: 9.688 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004314/0.1643, allocations: 4.273 MB / 358.9 MB, free: 5.402 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.893e-06/0.1643, allocations: 0 / 358.9 MB, free: 5.402 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.775e-06/0.1643, allocations: 0 / 358.9 MB, free: 5.402 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.000124/0.1645, allocations: 4 kB / 358.9 MB, free: 5.398 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: 701 * Number of variables: 701 Notification: Performance of Generate backend data structure: time 0.006903/0.1714, allocations: 3.177 MB / 362 MB, free: 2.156 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.79e-05/0.1714, allocations: 12.03 kB / 362.1 MB, free: 2.145 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007562/0.1722, allocations: 387.9 kB / 362.4 MB, free: 1.758 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001321/0.1735, allocations: 439.8 kB / 362.9 MB, free: 1.324 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003056/0.1766, allocations: 1.77 MB / 364.6 MB, free: 15.5 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001777/0.1768, allocations: 213.4 kB / 364.8 MB, free: 15.29 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003676/0.1772, allocations: 267.9 kB / 365.1 MB, free: 15.03 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005988/0.1832, allocations: 3.521 MB / 368.6 MB, free: 11.43 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.873e-05/0.1833, allocations: 0 / 368.6 MB, free: 11.43 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002333/0.1835, allocations: 112 kB / 368.7 MB, free: 11.32 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001432/0.1837, allocations: 125.2 kB / 368.9 MB, free: 11.19 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005321/0.189, allocations: 2.976 MB / 371.8 MB, free: 8.203 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.277/0.466, allocations: 11.16 MB / 383 MB, free: 32.15 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003656/0.4697, allocations: 2.295 MB / 385.3 MB, free: 31.27 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002558/0.4723, allocations: 1.196 MB / 386.5 MB, free: 31.27 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003908/0.4727, allocations: 206.9 kB / 386.7 MB, free: 31.08 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.392e-05/0.4728, allocations: 47.38 kB / 386.7 MB, free: 31.04 MB / 318.1 MB Notification: Performance of pre-optimization done (n=131): time 4.138e-06/0.4728, allocations: 0 / 386.7 MB, free: 31.04 MB / 318.1 MB Notification: Performance of matching and sorting (n=148): time 0.01974/0.4925, allocations: 7.635 MB / 394.4 MB, free: 29.75 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.76e-05/0.4926, allocations: 71.34 kB / 394.4 MB, free: 29.69 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003824/0.4965, allocations: 1.961 MB / 396.4 MB, free: 29.45 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000143/0.4966, allocations: 51.77 kB / 396.5 MB, free: 29.42 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009526/0.4976, allocations: 1.31 MB / 397.8 MB, free: 28.84 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004601/0.4981, allocations: 0.5029 MB / 398.3 MB, free: 28.52 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.243e-05/0.4982, allocations: 35.39 kB / 398.3 MB, free: 28.52 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001481/0.4983, allocations: 375.9 kB / 398.7 MB, free: 28.21 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001457/0.4998, allocations: 0.8901 MB / 399.6 MB, free: 28.21 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001634/0.5014, allocations: 1.387 MB / 400.9 MB, free: 27.64 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0016/0.503, allocations: 1.096 MB / 402 MB, free: 27.61 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.295e-05/0.5031, allocations: 3.875 kB / 402 MB, free: 27.61 MB / 318.1 MB Notification: Performance of matching and sorting (n=226) (initialization): time 0.006129/0.5092, allocations: 2.987 MB / 405 MB, free: 26.82 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.29e-05/0.5093, allocations: 17.58 kB / 405 MB, free: 26.82 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.04e-05/0.5094, allocations: 14.03 kB / 405.1 MB, free: 26.82 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001223/0.5106, allocations: 466.9 kB / 405.5 MB, free: 26.68 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00152/0.5121, allocations: 440.5 kB / 405.9 MB, free: 26.67 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006766/0.5189, allocations: 5.577 MB / 411.5 MB, free: 22.33 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002323/0.5212, allocations: 136.7 kB / 411.7 MB, free: 22.2 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002963/0.5216, allocations: 71.98 kB / 411.7 MB, free: 22.13 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 68 * Number of states: 0 () * Number of discrete variables: 1 (booleanReplicator.y[3]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (199): * Single equations (assignments): 194 * 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%) 16,(1,100.0%) 6} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002257/0.5238, allocations: 0.8531 MB / 412.6 MB, free: 21.29 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008946/0.5247, allocations: 213.5 kB / 412.8 MB, free: 21.08 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004532/0.5293, allocations: 2.605 MB / 415.4 MB, free: 18.45 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.087e-05/0.5293, allocations: 16 kB / 415.4 MB, free: 18.44 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.004e-05/0.5294, allocations: 11.94 kB / 415.4 MB, free: 18.43 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.415e-05/0.5294, allocations: 3.984 kB / 415.4 MB, free: 18.42 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01054/0.5399, allocations: 5.672 MB / 421.1 MB, free: 12.69 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.124e-05/0.54, allocations: 4 kB / 421.1 MB, free: 12.68 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001086/0.5411, allocations: 294.4 kB / 421.4 MB, free: 12.41 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001167/0.5423, allocations: 0.493 MB / 421.9 MB, free: 11.91 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.441e-05/0.5424, allocations: 35.98 kB / 421.9 MB, free: 11.88 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005675/0.548, allocations: 7.046 MB / 429 MB, free: 4.469 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.057e-06/0.5481, allocations: 6.078 kB / 429 MB, free: 4.465 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005388/0.5535, allocations: 3.882 MB / 432.9 MB, free: 0.5156 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001279/0.5548, allocations: 482.3 kB / 433.3 MB, free: 24 kB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002811/0.555, allocations: 44.94 kB / 433.4 MB, free: 15.98 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001064/0.5561, allocations: 105.1 kB / 433.5 MB, free: 15.88 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002953/0.5564, allocations: 120.8 kB / 433.6 MB, free: 15.76 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001024/0.5565, allocations: 51.92 kB / 433.6 MB, free: 15.71 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.002283/0.5588, allocations: 1.344 MB / 435 MB, free: 14.34 MB / 334.1 MB Notification: Performance of sort global known variables: time 3.2e-07/0.5588, allocations: 0 / 435 MB, free: 14.34 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.002344/0.5612, allocations: 0.5856 MB / 435.6 MB, free: 13.76 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 7 (smee.inertiaRotor.w,smee.idq_sr[1],smee.idq_sr[2],smee.idq_rr[1],smee.idq_rr[2],smee.idq_dr[1],mechanicalMultiSensor.flange_a.phi) * Number of discrete variables: 1 (booleanReplicator.y[3]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (126): * Single equations (assignments): 121 * 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%) 16,(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.00659/0.5678, allocations: 4.51 MB / 440.1 MB, free: 9.191 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.004559/0.5724, allocations: 2.618 MB / 442.7 MB, free: 6.586 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 5.971e-06/0.5724, allocations: 0 / 442.7 MB, free: 6.586 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002715/0.5751, allocations: 1.638 MB / 444.3 MB, free: 4.945 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003395/0.5785, allocations: 473.1 kB / 444.8 MB, free: 4.488 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04264/0.6212, allocations: 17.68 MB / 462.5 MB, free: 1.719 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003508/0.6247, allocations: 2.135 MB / 464.6 MB, free: 15.55 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.002381/0.6271, allocations: 469 kB / 465.1 MB, free: 15.09 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002128/0.6293, allocations: 1.062 MB / 466.1 MB, free: 14.03 MB / 366.1 MB Notification: Performance of SimCode: time 2.565e-06/0.6293, allocations: 0 / 466.1 MB, free: 14.03 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1079/0.7372, allocations: 49.49 MB / 0.5035 GB, free: 12.52 MB / 414.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002716/0.7376, allocations: 242.1 kB / 0.5038 GB, free: 12.27 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.587/4.325, allocations: 3.562 kB / 0.5038 GB, free: 12.27 MB / 414.1 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMEE_DOL.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMEE_DOL.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMEE_DOL.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMEE_DOL.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMEE_DOL_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Machines_Examples_SynchronousInductionMachines_SMEE_DOL_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Machines_Examples_SynchronousInductionMachines_SMEE_DOL.fmu > Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMEE_DOL.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_DOL_res.mat does not exist to compare? outputFormat=mat