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.001111/0.001111, allocations: 197.1 kB / 14.16 MB, free: 1.16 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.35/1.35, allocations: 225.4 MB / 240.1 MB, free: 15.05 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009732/0.0009732, allocations: 90.22 kB / 292.1 MB, free: 5.938 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.751e-05/3.771e-05, allocations: 4 kB / 350.6 MB, free: 2.426 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1026/0.1026, allocations: 51.49 MB / 402.1 MB, free: 14.89 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3613/0.464, allocations: 108.5 MB / 0.4987 GB, free: 13.25 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002862/0.4643, allocations: 83.7 kB / 0.4987 GB, free: 13.21 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.136/0.6004, allocations: 50.6 MB / 0.5482 GB, free: 11.76 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.685e-06/0.6005, allocations: 0 / 0.5482 GB, free: 11.76 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0002119/0.6007, allocations: 67.92 kB / 0.5482 GB, free: 11.69 MB / 426.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.006429/0.6071, allocations: 2.514 MB / 0.5507 GB, free: 9.121 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.615e-05/0.6072, allocations: 12.03 kB / 0.5507 GB, free: 9.109 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005194/0.6077, allocations: 333.4 kB / 0.551 GB, free: 8.773 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001205/0.6089, allocations: 381.2 kB / 0.5514 GB, free: 8.398 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0038/0.6127, allocations: 1.779 MB / 0.5531 GB, free: 6.562 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001622/0.6129, allocations: 172.7 kB / 0.5533 GB, free: 6.391 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003986/0.6133, allocations: 228 kB / 0.5535 GB, free: 6.168 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005175/0.6185, allocations: 3.032 MB / 0.5565 GB, free: 2.988 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.546e-05/0.6186, allocations: 7.906 kB / 0.5565 GB, free: 2.98 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002263/0.6188, allocations: 99.98 kB / 0.5566 GB, free: 2.883 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001162/0.6189, allocations: 108.5 kB / 0.5567 GB, free: 2.773 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004089/0.623, allocations: 2.447 MB / 0.5591 GB, free: 320 kB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01682/0.6399, allocations: 9.762 MB / 0.5686 GB, free: 6.262 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002707/0.6426, allocations: 2.169 MB / 0.5707 GB, free: 3.914 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001347/0.644, allocations: 0.9371 MB / 0.5716 GB, free: 2.973 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003768/0.6444, allocations: 211.2 kB / 0.5718 GB, free: 2.73 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.629e-05/0.6445, allocations: 59.56 kB / 0.5719 GB, free: 2.664 MB / 442.7 MB Notification: Performance of pre-optimization done (n=119): time 2.896e-06/0.6445, allocations: 0 / 0.5719 GB, free: 2.664 MB / 442.7 MB Notification: Performance of matching and sorting (n=141): time 0.2932/0.9377, allocations: 6.483 MB / 0.5782 GB, free: 90.35 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.491e-05/0.9377, allocations: 65.78 kB / 0.5783 GB, free: 90.29 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003046/0.9408, allocations: 1.504 MB / 0.5797 GB, free: 90.12 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001428/0.941, allocations: 51.08 kB / 0.5798 GB, free: 90.09 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008122/0.9418, allocations: 1.14 MB / 0.5809 GB, free: 89.72 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003658/0.9422, allocations: 483.7 kB / 0.5814 GB, free: 89.48 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.282e-05/0.9423, allocations: 34.38 kB / 0.5814 GB, free: 89.48 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001242/0.9424, allocations: 376.9 kB / 0.5818 GB, free: 89.18 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001113/0.9435, allocations: 0.7967 MB / 0.5825 GB, free: 89.18 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001215/0.9447, allocations: 1.178 MB / 0.5837 GB, free: 88.76 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001283/0.946, allocations: 0.9701 MB / 0.5846 GB, free: 88.75 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.356e-06/0.946, allocations: 3.281 kB / 0.5846 GB, free: 88.75 MB / 442.7 MB Notification: Performance of matching and sorting (n=201) (initialization): time 0.004224/0.9503, allocations: 2.734 MB / 0.5873 GB, free: 88.55 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.197e-05/0.9503, allocations: 11.5 kB / 0.5873 GB, free: 88.55 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.894e-05/0.9503, allocations: 9.969 kB / 0.5873 GB, free: 88.55 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00139/0.9517, allocations: 0.585 MB / 0.5879 GB, free: 88.52 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001305/0.9531, allocations: 364.8 kB / 0.5882 GB, free: 88.52 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006307/0.9594, allocations: 6.312 MB / 0.5944 GB, free: 85.94 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00163/0.961, allocations: 114.4 kB / 0.5945 GB, free: 85.94 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001536/0.9612, allocations: 67.25 kB / 0.5946 GB, free: 85.94 MB / 442.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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (172): * Single equations (assignments): 169 * 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.0003095/0.9615, allocations: 202.2 kB / 0.5948 GB, free: 85.83 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003024/0.9618, allocations: 186.7 kB / 0.595 GB, free: 85.73 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00398/0.9658, allocations: 2.517 MB / 0.5974 GB, free: 85.6 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.203e-05/0.9659, allocations: 16.69 kB / 0.5974 GB, free: 85.6 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.225e-06/0.9659, allocations: 3.406 kB / 0.5974 GB, free: 85.6 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.394e-05/0.9659, allocations: 11.31 kB / 0.5974 GB, free: 85.59 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007907/0.9738, allocations: 5.257 MB / 0.6026 GB, free: 85.07 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.047e-06/0.9739, allocations: 4 kB / 0.6026 GB, free: 85.07 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000925/0.9748, allocations: 233.7 kB / 0.6028 GB, free: 85.07 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001588/0.9764, allocations: 0.6515 MB / 0.6034 GB, free: 85.04 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001109/0.9765, allocations: 35.25 kB / 0.6035 GB, free: 85.04 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008348/0.9849, allocations: 8.031 MB / 0.6113 GB, free: 80.74 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.281e-06/0.9849, allocations: 6.766 kB / 0.6113 GB, free: 80.74 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007134/0.9921, allocations: 3.831 MB / 0.6151 GB, free: 79.02 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001309/0.9934, allocations: 455.8 kB / 0.6155 GB, free: 78.73 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002929/0.9937, allocations: 37.28 kB / 0.6155 GB, free: 78.71 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001007/0.9947, allocations: 98.84 kB / 0.6156 GB, free: 78.7 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003644/0.9951, allocations: 132.8 kB / 0.6158 GB, free: 78.68 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000104/0.9952, allocations: 39.14 kB / 0.6158 GB, free: 78.67 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.002872/0.9981, allocations: 1.154 MB / 0.6169 GB, free: 78.22 MB / 442.7 MB Notification: Performance of sort global known variables: time 5.81e-07/0.9981, allocations: 1.031 kB / 0.6169 GB, free: 78.22 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.003662/1.002, allocations: 0.5701 MB / 0.6175 GB, free: 78.16 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 11 * 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 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (111): * Single equations (assignments): 108 * 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.01056/1.012, allocations: 5.239 MB / 0.6226 GB, free: 75.27 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.006394/1.019, allocations: 2.495 MB / 0.625 GB, free: 74.23 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 9.177e-06/1.019, allocations: 1.828 kB / 0.625 GB, free: 74.23 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004053/1.023, allocations: 1.625 MB / 0.6266 GB, free: 73.48 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00391/1.027, allocations: 444 kB / 0.627 GB, free: 73.36 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01359/1.041, allocations: 4.844 MB / 0.6318 GB, free: 71.44 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002173/1.043, allocations: 2.064 MB / 0.6338 GB, free: 70.48 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.002134/1.045, allocations: 436.2 kB / 0.6342 GB, free: 70.44 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001444/1.046, allocations: 0.9163 MB / 0.6351 GB, free: 69.7 MB / 442.7 MB Notification: Performance of SimCode: time 1.352e-06/1.046, allocations: 0 / 0.6351 GB, free: 69.7 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.107/1.153, allocations: 50.11 MB / 0.684 GB, free: 50.72 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001644/1.154, allocations: 204.6 kB / 0.6842 GB, free: 50.48 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.49/4.643, allocations: 0 / 0.6842 GB, free: 50.48 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