Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMR_DOL",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMR_DOL",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00103/0.00103, allocations: 198.3 kB / 17.08 MB, free: 5.082 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.301/1.301, allocations: 227.2 MB / 245 MB, free: 7.672 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008573/0.0008573, allocations: 95.7 kB / 297.3 MB, free: 6.219 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002255/0.0002256, allocations: 8 kB / 358 MB, free: 9.453 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2022/0.2024, allocations: 51.48 MB / 409.5 MB, free: 26.73 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2853/0.4877, allocations: 108.6 MB / 0.5059 GB, free: 96.27 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002232/0.488, allocations: 88.91 kB / 0.506 GB, free: 96.27 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1104/0.5984, allocations: 50.55 MB / 0.5554 GB, free: 56.33 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.064e-06/0.5984, allocations: 0 / 0.5554 GB, free: 56.33 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.000167/0.5986, allocations: 59.94 kB / 0.5554 GB, free: 56.27 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.005326/0.6039, allocations: 2.82 MB / 0.5582 GB, free: 53.38 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.832e-05/0.604, allocations: 12.03 kB / 0.5582 GB, free: 53.37 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004175/0.6044, allocations: 345.4 kB / 0.5585 GB, free: 53.02 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009266/0.6053, allocations: 377.2 kB / 0.5589 GB, free: 52.65 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003096/0.6084, allocations: 1.791 MB / 0.5606 GB, free: 50.8 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.889e-05/0.6085, allocations: 176.7 kB / 0.5608 GB, free: 50.63 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000271/0.6088, allocations: 231.9 kB / 0.561 GB, free: 50.4 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00384/0.6126, allocations: 3.107 MB / 0.5641 GB, free: 47.14 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.313e-05/0.6127, allocations: 11.89 kB / 0.5641 GB, free: 47.13 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001988/0.6129, allocations: 99.98 kB / 0.5642 GB, free: 47.04 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.13e-05/0.613, allocations: 100.6 kB / 0.5643 GB, free: 46.93 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003461/0.6165, allocations: 2.583 MB / 0.5668 GB, free: 44.34 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01251/0.629, allocations: 9.755 MB / 0.5763 GB, free: 34.29 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002255/0.6313, allocations: 2.234 MB / 0.5785 GB, free: 31.88 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003164/0.6316, allocations: 223.1 kB / 0.5787 GB, free: 31.62 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.323e-05/0.6317, allocations: 47.56 kB / 0.5788 GB, free: 31.57 MB / 378.7 MB Notification: Performance of pre-optimization done (n=119): time 3.456e-06/0.6317, allocations: 0 / 0.5788 GB, free: 31.57 MB / 378.7 MB Notification: Performance of matching and sorting (n=140): time 0.01395/0.6456, allocations: 7.983 MB / 0.5866 GB, free: 23.44 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.008e-05/0.6457, allocations: 64.72 kB / 0.5866 GB, free: 23.36 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002063/0.6478, allocations: 1.524 MB / 0.5881 GB, free: 21.84 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001029/0.6479, allocations: 45.7 kB / 0.5881 GB, free: 21.79 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005239/0.6484, allocations: 1.144 MB / 0.5893 GB, free: 20.62 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002468/0.6487, allocations: 481 kB / 0.5897 GB, free: 20.15 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.493e-05/0.6488, allocations: 32 kB / 0.5898 GB, free: 20.12 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 8.017e-05/0.6489, allocations: 373.9 kB / 0.5901 GB, free: 19.75 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001066/0.6499, allocations: 0.8627 MB / 0.591 GB, free: 18.88 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001187/0.6511, allocations: 1.232 MB / 0.5922 GB, free: 17.5 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001244/0.6524, allocations: 1.033 MB / 0.5932 GB, free: 16.46 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.48e-06/0.6524, allocations: 7.938 kB / 0.5932 GB, free: 16.46 MB / 378.7 MB Notification: Performance of matching and sorting (n=200) (initialization): time 0.003816/0.6562, allocations: 2.848 MB / 0.596 GB, free: 13.59 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.105e-05/0.6562, allocations: 12 kB / 0.596 GB, free: 13.58 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.34e-05/0.6563, allocations: 15.94 kB / 0.596 GB, free: 13.56 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001209/0.6575, allocations: 0.5786 MB / 0.5965 GB, free: 12.98 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0012/0.6587, allocations: 363.5 kB / 0.5969 GB, free: 12.62 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005821/0.6645, allocations: 6.548 MB / 0.6033 GB, free: 5.809 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001344/0.6659, allocations: 119.8 kB / 0.6034 GB, free: 5.691 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001086/0.666, allocations: 64 kB / 0.6035 GB, free: 5.629 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.001354/0.6674, allocations: 0.8037 MB / 0.6042 GB, free: 4.816 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002971/0.6677, allocations: 185.8 kB / 0.6044 GB, free: 4.633 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003655/0.6713, allocations: 2.635 MB / 0.607 GB, free: 1.98 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.275e-06/0.6714, allocations: 12 kB / 0.607 GB, free: 1.969 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.432e-06/0.6714, allocations: 8 kB / 0.607 GB, free: 1.961 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.083e-05/0.6714, allocations: 7.969 kB / 0.607 GB, free: 1.953 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008157/0.6795, allocations: 5.336 MB / 0.6122 GB, free: 12.52 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.297e-05/0.6796, allocations: 3.953 kB / 0.6122 GB, free: 12.51 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009852/0.6806, allocations: 231.9 kB / 0.6125 GB, free: 12.29 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001587/0.6822, allocations: 0.6515 MB / 0.6131 GB, free: 11.62 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001005/0.6823, allocations: 35.98 kB / 0.6131 GB, free: 11.59 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008476/0.6908, allocations: 8.323 MB / 0.6213 GB, free: 2.859 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.937e-06/0.6908, allocations: 4 kB / 0.6213 GB, free: 2.855 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005856/0.6967, allocations: 3.932 MB / 0.6251 GB, free: 14.83 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001153/0.6979, allocations: 454.7 kB / 0.6255 GB, free: 14.36 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002429/0.6981, allocations: 32 kB / 0.6256 GB, free: 14.33 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009682/0.6991, allocations: 99.89 kB / 0.6257 GB, free: 14.23 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002915/0.6994, allocations: 129.1 kB / 0.6258 GB, free: 14.11 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.682e-05/0.6995, allocations: 39.98 kB / 0.6258 GB, free: 14.07 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.001702/0.7012, allocations: 1.171 MB / 0.627 GB, free: 12.9 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.51e-07/0.7012, allocations: 3.938 kB / 0.627 GB, free: 12.9 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.001653/0.7029, allocations: 0.5781 MB / 0.6275 GB, free: 12.32 MB / 410.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.006585/0.7095, allocations: 5.168 MB / 0.6326 GB, free: 7.07 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.004203/0.7137, allocations: 2.616 MB / 0.6351 GB, free: 4.406 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 8.276e-06/0.7137, allocations: 4 kB / 0.6351 GB, free: 4.402 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002586/0.7163, allocations: 1.684 MB / 0.6368 GB, free: 2.684 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002049/0.7184, allocations: 448.3 kB / 0.6372 GB, free: 2.25 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02797/0.7464, allocations: 23.23 MB / 0.6599 GB, free: 10.03 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001666/0.7481, allocations: 2.064 MB / 0.6619 GB, free: 7.93 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.001373/0.7495, allocations: 435.4 kB / 0.6623 GB, free: 7.5 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001177/0.7506, allocations: 0.921 MB / 0.6632 GB, free: 6.578 MB / 442.7 MB Notification: Performance of SimCode: time 7.915e-06/0.7507, allocations: 0 / 0.6632 GB, free: 6.578 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2535/1.004, allocations: 49.97 MB / 0.712 GB, free: 107.4 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001583/1.004, allocations: 221.9 kB / 0.7122 GB, free: 107.2 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.165/4.169, allocations: 0 / 0.7122 GB, free: 107.2 MB / 442.7 MB (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMR_DOL_fmu --startTime=0 --stopTime=2.5 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMR_DOL.fmu > Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL_res.mat does not exist to compare? outputFormat=mat