Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMR_DOL.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMR_DOL,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Machines_Examples_SynchronousInductionMachines_SMR_DOL",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMR_DOL,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Machines_Examples_SynchronousInductionMachines_SMR_DOL",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009621/0.0009621, allocations: 180 kB / 17.01 MB, free: 5.125 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.389/1.389, allocations: 205.4 MB / 223.1 MB, free: 9.117 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008154/0.0008155, allocations: 101 kB / 271.5 MB, free: 8.371 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000284/0.000284, allocations: 8 kB / 328.3 MB, free: 15.44 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2565/0.2568, allocations: 47.56 MB / 375.9 MB, free: 45.63 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1335/0.3903, allocations: 107.3 MB / 483.2 MB, free: 5.305 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003162/0.3907, allocations: 99.88 kB / 483.3 MB, free: 5.207 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3486/0.7393, allocations: 50.09 MB / 0.5209 GB, free: 94.34 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.225e-06/0.7393, allocations: 6.094 kB / 0.5209 GB, free: 94.33 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001781/0.7395, allocations: 65.34 kB / 0.521 GB, free: 94.32 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 606 * Number of variables: 606 Notification: Performance of Generate backend data structure: time 0.006404/0.7459, allocations: 2.807 MB / 0.5237 GB, free: 92.46 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.17e-05/0.746, allocations: 10.09 kB / 0.5237 GB, free: 92.46 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0008044/0.7468, allocations: 347.9 kB / 0.524 GB, free: 92.2 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000946/0.7478, allocations: 338.5 kB / 0.5244 GB, free: 92.04 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003678/0.7514, allocations: 1.78 MB / 0.5261 GB, free: 90.62 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001178/0.7516, allocations: 176.7 kB / 0.5263 GB, free: 90.45 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003449/0.7519, allocations: 231.9 kB / 0.5265 GB, free: 90.22 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004496/0.7564, allocations: 3.119 MB / 0.5295 GB, free: 86.95 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.495e-05/0.7565, allocations: 7.938 kB / 0.5295 GB, free: 86.95 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002024/0.7567, allocations: 103.9 kB / 0.5296 GB, free: 86.85 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.434e-05/0.7568, allocations: 108.6 kB / 0.5298 GB, free: 86.74 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003612/0.7605, allocations: 2.583 MB / 0.5323 GB, free: 84.14 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0128/0.7733, allocations: 9.781 MB / 0.5418 GB, free: 74.15 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002361/0.7757, allocations: 2.226 MB / 0.544 GB, free: 71.75 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003396/0.7761, allocations: 211.2 kB / 0.5442 GB, free: 71.51 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.025e-05/0.7761, allocations: 55.48 kB / 0.5443 GB, free: 71.45 MB / 378.7 MB Notification: Performance of pre-optimization done (n=119): time 1.014e-05/0.7761, allocations: 4 kB / 0.5443 GB, free: 71.45 MB / 378.7 MB Notification: Performance of matching and sorting (n=140): time 0.01449/0.7906, allocations: 7.847 MB / 0.5519 GB, free: 63.48 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.19e-05/0.7907, allocations: 68.66 kB / 0.552 GB, free: 63.4 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001988/0.7927, allocations: 1.527 MB / 0.5535 GB, free: 61.87 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 9.663e-05/0.7928, allocations: 45.7 kB / 0.5535 GB, free: 61.82 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005926/0.7934, allocations: 1.136 MB / 0.5546 GB, free: 60.67 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002977/0.7937, allocations: 484.6 kB / 0.5551 GB, free: 60.2 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.665e-05/0.7938, allocations: 28 kB / 0.5551 GB, free: 60.18 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001071/0.7939, allocations: 373.9 kB / 0.5555 GB, free: 59.8 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001074/0.795, allocations: 0.8589 MB / 0.5563 GB, free: 58.95 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001287/0.7963, allocations: 1.232 MB / 0.5575 GB, free: 57.56 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001261/0.7975, allocations: 1.037 MB / 0.5585 GB, free: 56.52 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.26e-06/0.7976, allocations: 0 / 0.5585 GB, free: 56.52 MB / 378.7 MB Notification: Performance of matching and sorting (n=200) (initialization): time 0.004041/0.8016, allocations: 2.848 MB / 0.5613 GB, free: 53.66 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.573e-05/0.8016, allocations: 8 kB / 0.5613 GB, free: 53.65 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.673e-05/0.8017, allocations: 15.95 kB / 0.5613 GB, free: 53.63 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001271/0.803, allocations: 0.5941 MB / 0.5619 GB, free: 53.03 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001249/0.8042, allocations: 367.4 kB / 0.5623 GB, free: 52.67 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006087/0.8103, allocations: 6.538 MB / 0.5686 GB, free: 45.87 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00182/0.8122, allocations: 115.8 kB / 0.5688 GB, free: 45.76 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001242/0.8123, allocations: 64 kB / 0.5688 GB, free: 45.7 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 50 * Number of states: 0 () * Number of discrete variables: 3 (booleanStep[1].y,booleanStep[2].y,booleanStep[3].y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (171): * Single equations (assignments): 168 * 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 {(6,72.2%) 22,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001495/0.8138, allocations: 0.8026 MB / 0.5696 GB, free: 44.88 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000333/0.8141, allocations: 189.6 kB / 0.5698 GB, free: 44.7 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003859/0.818, allocations: 2.634 MB / 0.5724 GB, free: 42.04 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.109e-05/0.818, allocations: 16.12 kB / 0.5724 GB, free: 42.02 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.135e-05/0.8181, allocations: 11.98 kB / 0.5724 GB, free: 42.01 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.144e-05/0.8181, allocations: 3.984 kB / 0.5724 GB, free: 42.01 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008239/0.8263, allocations: 5.332 MB / 0.5776 GB, free: 36.61 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.923e-06/0.8264, allocations: 0 / 0.5776 GB, free: 36.61 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009224/0.8273, allocations: 235.7 kB / 0.5778 GB, free: 36.38 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001486/0.8288, allocations: 0.6398 MB / 0.5784 GB, free: 35.73 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.653e-05/0.8289, allocations: 35.98 kB / 0.5785 GB, free: 35.7 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007173/0.8361, allocations: 8.307 MB / 0.5866 GB, free: 26.99 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.344e-06/0.8361, allocations: 4 kB / 0.5866 GB, free: 26.98 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005347/0.8415, allocations: 3.936 MB / 0.5904 GB, free: 22.96 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001318/0.8428, allocations: 454.7 kB / 0.5909 GB, free: 22.49 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002485/0.8431, allocations: 31.98 kB / 0.5909 GB, free: 22.46 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009748/0.8441, allocations: 99.89 kB / 0.591 GB, free: 22.36 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00032/0.8444, allocations: 125.1 kB / 0.5911 GB, free: 22.24 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.11e-05/0.8445, allocations: 43.98 kB / 0.5912 GB, free: 22.2 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001579/0.8461, allocations: 1.175 MB / 0.5923 GB, free: 21.03 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.8461, allocations: 0 / 0.5923 GB, free: 21.03 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001765/0.8479, allocations: 0.5703 MB / 0.5929 GB, free: 20.46 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 6 (smr.inertiaRotor.w,smr.idq_sr[1],smr.idq_sr[2],smr.idq_dr[1],smr.idq_dr[2],loadInertia.phi) * Number of discrete variables: 3 (booleanStep[1].y,booleanStep[2].y,booleanStep[3].y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (109): * Single equations (assignments): 106 * 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 {(6,75.0%) 22,(1,100.0%) 1,(2,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.005484/0.8533, allocations: 5.17 MB / 0.5979 GB, free: 15.23 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.003599/0.857, allocations: 2.619 MB / 0.6005 GB, free: 12.56 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.657e-06/0.857, allocations: 0 / 0.6005 GB, free: 12.56 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002188/0.8592, allocations: 1.684 MB / 0.6021 GB, free: 10.84 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001891/0.8611, allocations: 432 kB / 0.6025 GB, free: 10.41 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02769/0.8888, allocations: 23.23 MB / 0.6252 GB, free: 2.207 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001959/0.8908, allocations: 2.06 MB / 0.6272 GB, free: 112 kB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.00158/0.8924, allocations: 435.4 kB / 0.6276 GB, free: 15.68 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001222/0.8937, allocations: 0.9225 MB / 0.6285 GB, free: 14.76 MB / 410.7 MB Notification: Performance of SimCode: time 8.01e-07/0.8937, allocations: 0 / 0.6285 GB, free: 14.76 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2949/1.189, allocations: 49.9 MB / 0.6773 GB, free: 104.8 MB / 410.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002048/1.189, allocations: 232.5 kB / 0.6775 GB, free: 104.6 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.287/4.476, allocations: 0 / 0.6775 GB, free: 104.6 MB / 410.7 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMR_DOL.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMR_DOL.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMR_DOL.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMR_DOL.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMR_DOL_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Machines_Examples_SynchronousInductionMachines_SMR_DOL_fmu --startTime=0 --stopTime=2.5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Machines_Examples_SynchronousInductionMachines_SMR_DOL.fmu > Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMR_DOL.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMR_DOL_res.mat does not exist to compare? outputFormat=mat