Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource.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.SMPM_VoltageSource,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Machines_Examples_SynchronousInductionMachines_SMPM_VoltageSource",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Machines_Examples_SynchronousInductionMachines_SMPM_VoltageSource",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.0009711/0.0009712, allocations: 94.69 kB / 16.94 MB, free: 6.434 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.0009931/0.0009932, allocations: 176.7 kB / 17.83 MB, free: 6.027 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.551/1.551, allocations: 205.4 MB / 224 MB, free: 13.17 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.0004214/0.0004214, allocations: 15.38 kB / 280.9 MB, free: 3.641 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09952/0.09995, allocations: 47.57 MB / 328.4 MB, free: 3.996 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource): time 0.01023/0.1102, allocations: 9.477 MB / 337.9 MB, free: 10.48 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.00756/0.1179, allocations: 3.813 MB / 341.7 MB, free: 6.656 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001717/0.1196, allocations: 55.69 kB / 341.8 MB, free: 6.602 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001896/0.1215, allocations: 0.719 MB / 342.5 MB, free: 5.879 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002789/0.1243, allocations: 0.8528 MB / 343.3 MB, free: 5.023 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001027/0.1254, allocations: 339.6 kB / 343.7 MB, free: 4.691 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.003429/0.1288, allocations: 2.126 MB / 345.8 MB, free: 2.559 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002498/0.1313, allocations: 2.072 MB / 347.9 MB, free: 472 kB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00165/0.133, allocations: 1.035 MB / 348.9 MB, free: 15.42 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001913/0.1349, allocations: 1.393 MB / 350.3 MB, free: 14.02 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003458/0.1353, allocations: 164 kB / 350.5 MB, free: 13.86 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006795/0.136, allocations: 255.8 kB / 350.7 MB, free: 13.61 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008829/0.1369, allocations: 0.8607 MB / 351.6 MB, free: 12.75 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006967/0.1376, allocations: 0.625 MB / 352.2 MB, free: 12.12 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00443/0.142, allocations: 4.383 MB / 356.6 MB, free: 7.723 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.01e-06/0.142, allocations: 0 / 356.6 MB, free: 7.723 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.725e-06/0.1421, allocations: 3.938 kB / 356.6 MB, free: 7.719 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0001485/0.1422, allocations: 0 / 356.6 MB, free: 7.719 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: 745 * Number of variables: 745 Notification: Performance of Generate backend data structure: time 0.007117/0.1493, allocations: 3.202 MB / 359.8 MB, free: 4.449 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.126e-05/0.1494, allocations: 12.03 kB / 359.8 MB, free: 4.438 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0008018/0.1502, allocations: 405 kB / 360.2 MB, free: 4.031 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009992/0.1512, allocations: 403.5 kB / 360.6 MB, free: 3.633 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003589/0.1548, allocations: 1.876 MB / 362.5 MB, free: 1.703 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002406/0.1551, allocations: 229.6 kB / 362.7 MB, free: 1.477 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004144/0.1555, allocations: 283.9 kB / 363 MB, free: 1.199 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005928/0.1614, allocations: 3.654 MB / 366.6 MB, free: 13.47 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.184e-05/0.1615, allocations: 7.906 kB / 366.6 MB, free: 13.46 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002535/0.1618, allocations: 116 kB / 366.7 MB, free: 13.35 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001467/0.1619, allocations: 145.4 kB / 366.9 MB, free: 13.21 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005396/0.1673, allocations: 3.086 MB / 370 MB, free: 10.11 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1852/0.3526, allocations: 11.63 MB / 381.6 MB, free: 45.17 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00281/0.3554, allocations: 1.895 MB / 383.5 MB, free: 44.57 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002936/0.3558, allocations: 208 kB / 383.7 MB, free: 44.38 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.587e-05/0.3558, allocations: 48.19 kB / 383.7 MB, free: 44.34 MB / 318.1 MB Notification: Performance of pre-optimization done (n=125): time 3.045e-06/0.3558, allocations: 0 / 383.7 MB, free: 44.34 MB / 318.1 MB Notification: Performance of matching and sorting (n=143): time 0.01522/0.371, allocations: 7.254 MB / 391 MB, free: 42.54 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.556e-05/0.3711, allocations: 71.83 kB / 391.1 MB, free: 42.48 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002854/0.374, allocations: 1.923 MB / 393 MB, free: 41.73 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001334/0.3741, allocations: 50.23 kB / 393 MB, free: 41.68 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008716/0.375, allocations: 1.411 MB / 394.4 MB, free: 40.61 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003789/0.3754, allocations: 497.1 kB / 394.9 MB, free: 40.23 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.565e-05/0.3755, allocations: 38.44 kB / 395 MB, free: 40.2 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001184/0.3756, allocations: 373.9 kB / 395.3 MB, free: 39.87 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001343/0.377, allocations: 0.8573 MB / 396.2 MB, free: 39.57 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001521/0.3785, allocations: 1.404 MB / 397.6 MB, free: 38.59 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001309/0.3798, allocations: 1.081 MB / 398.7 MB, free: 38.14 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.457e-06/0.3798, allocations: 11.06 kB / 398.7 MB, free: 38.14 MB / 318.1 MB Notification: Performance of matching and sorting (n=231) (initialization): time 0.004293/0.3841, allocations: 2.966 MB / 401.7 MB, free: 36.97 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.64e-05/0.3842, allocations: 11.97 kB / 401.7 MB, free: 36.97 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.093e-05/0.3842, allocations: 16.28 kB / 401.7 MB, free: 36.97 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001094/0.3853, allocations: 0.5047 MB / 402.2 MB, free: 36.74 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00137/0.3867, allocations: 435.6 kB / 402.6 MB, free: 36.62 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005552/0.3923, allocations: 6.068 MB / 408.7 MB, free: 31.7 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001711/0.394, allocations: 132.7 kB / 408.8 MB, free: 31.57 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000113/0.3941, allocations: 76 kB / 408.9 MB, free: 31.49 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 78 * 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 (208): * Single equations (assignments): 205 * Array equations: 0 * 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 {(5,76.0%) 17,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001595/0.3957, allocations: 0.9125 MB / 409.8 MB, free: 30.57 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003838/0.3961, allocations: 205.5 kB / 410 MB, free: 30.37 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003486/0.3996, allocations: 2.563 MB / 412.6 MB, free: 27.78 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.007e-05/0.3996, allocations: 12 kB / 412.6 MB, free: 27.77 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.583e-06/0.3996, allocations: 4 kB / 412.6 MB, free: 27.77 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.237e-05/0.3997, allocations: 7.969 kB / 412.6 MB, free: 27.76 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008207/0.4079, allocations: 5.573 MB / 418.2 MB, free: 22.12 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.189e-05/0.4079, allocations: 4 kB / 418.2 MB, free: 22.12 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001101/0.409, allocations: 251.6 kB / 418.4 MB, free: 21.88 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001128/0.4102, allocations: 0.5181 MB / 418.9 MB, free: 21.35 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.268e-05/0.4103, allocations: 35.98 kB / 419 MB, free: 21.31 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00602/0.4163, allocations: 7.571 MB / 426.5 MB, free: 13.35 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.755e-06/0.4163, allocations: 4 kB / 426.5 MB, free: 13.35 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00473/0.4211, allocations: 3.879 MB / 430.4 MB, free: 9.332 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001201/0.4223, allocations: 478.3 kB / 430.9 MB, free: 8.844 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002615/0.4226, allocations: 28 kB / 430.9 MB, free: 8.816 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00096/0.4235, allocations: 99.88 kB / 431 MB, free: 8.719 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002089/0.4237, allocations: 101.1 kB / 431.1 MB, free: 8.621 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.43e-05/0.4238, allocations: 36 kB / 431.1 MB, free: 8.586 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.001709/0.4255, allocations: 1.303 MB / 432.4 MB, free: 7.262 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.4256, allocations: 0 / 432.4 MB, free: 7.262 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001779/0.4273, allocations: 0.5547 MB / 433 MB, free: 6.707 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 6 (smpm.inertiaRotor.w,smpm.idq_sr[1],smpm.idq_sr[2],quadraticSpeedDependentTorque.phi,voltageController.PI_d.x,voltageController.PI_q.x) * 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 (123): * Single equations (assignments): 120 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(5,76.0%) 17,(1,100.0%) 1,(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.004895/0.4322, allocations: 5.063 MB / 438.1 MB, free: 1.551 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.003629/0.4359, allocations: 2.545 MB / 440.6 MB, free: 14.96 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 6.994e-06/0.4359, allocations: 8.188 kB / 440.6 MB, free: 14.95 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002069/0.438, allocations: 1.502 MB / 442.1 MB, free: 13.41 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00219/0.4402, allocations: 498.5 kB / 442.6 MB, free: 12.94 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03526/0.4755, allocations: 29.21 MB / 471.8 MB, free: 14.43 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002098/0.4776, allocations: 2.267 MB / 474.1 MB, free: 12.13 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.001612/0.4793, allocations: 497.8 kB / 474.6 MB, free: 11.64 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001397/0.4807, allocations: 1.129 MB / 475.7 MB, free: 10.52 MB / 366.1 MB Notification: Performance of SimCode: time 1.422e-06/0.4807, allocations: 0 / 475.7 MB, free: 10.52 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07802/0.5587, allocations: 49.84 MB / 0.5132 GB, free: 8.594 MB / 414.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002256/0.559, allocations: 235.7 kB / 0.5134 GB, free: 8.359 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.959/3.518, allocations: 0 / 0.5134 GB, free: 8.359 MB / 414.1 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Machines_Examples_SynchronousInductionMachines_SMPM_VoltageSource_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Machines_Examples_SynchronousInductionMachines_SMPM_VoltageSource.fmu > Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource.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.SMPM_VoltageSource_res.mat does not exist to compare? outputFormat=mat