Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.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.SMPM_CurrentSource,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_CurrentSource",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_CurrentSource",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002213/0.002213, allocations: 196.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.553/1.553, allocations: 225.4 MB / 240.1 MB, free: 15.06 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001009/0.001009, allocations: 90.52 kB / 292.1 MB, free: 6.004 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 4.029e-05/4.031e-05, allocations: 4 kB / 350.6 MB, free: 2.441 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1143/0.1143, allocations: 51.49 MB / 402.1 MB, free: 14.91 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3828/0.4971, allocations: 111 MB / 0.5011 GB, free: 10.88 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002437/0.4974, allocations: 82.14 kB / 0.5012 GB, free: 10.84 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1493/0.6467, allocations: 53.29 MB / 0.5532 GB, free: 6.641 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.465e-06/0.6468, allocations: 0 / 0.5532 GB, free: 6.641 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0002677/0.6471, allocations: 75.88 kB / 0.5533 GB, free: 6.566 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: 659 * Number of variables: 659 Notification: Performance of Generate backend data structure: time 0.007138/0.6542, allocations: 2.609 MB / 0.5558 GB, free: 3.902 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.753e-05/0.6543, allocations: 12.03 kB / 0.5559 GB, free: 3.891 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001087/0.6554, allocations: 362.8 kB / 0.5562 GB, free: 3.527 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001602/0.657, allocations: 352.1 kB / 0.5565 GB, free: 3.18 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005281/0.6623, allocations: 1.912 MB / 0.5584 GB, free: 1.211 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001976/0.6625, allocations: 193 kB / 0.5586 GB, free: 1.02 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007747/0.6633, allocations: 248 kB / 0.5588 GB, free: 0.7773 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007021/0.6703, allocations: 3.182 MB / 0.5619 GB, free: 13.45 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.782e-05/0.6705, allocations: 15.89 kB / 0.5619 GB, free: 13.43 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002465/0.6707, allocations: 108 kB / 0.562 GB, free: 13.32 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000133/0.6709, allocations: 112.9 kB / 0.5622 GB, free: 13.21 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004602/0.6755, allocations: 2.526 MB / 0.5646 GB, free: 10.67 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2763/0.9518, allocations: 10.48 MB / 0.5749 GB, free: 85.36 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002657/0.9545, allocations: 1.413 MB / 0.5762 GB, free: 85.05 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00119/0.9558, allocations: 0.7661 MB / 0.577 GB, free: 85.03 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003735/0.9561, allocations: 211.4 kB / 0.5772 GB, free: 84.84 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.003e-05/0.9562, allocations: 47.16 kB / 0.5772 GB, free: 84.8 MB / 442.7 MB Notification: Performance of pre-optimization done (n=104): time 3.527e-06/0.9562, allocations: 3.125 kB / 0.5772 GB, free: 84.8 MB / 442.7 MB Notification: Performance of matching and sorting (n=132): time 0.01341/0.9696, allocations: 6.166 MB / 0.5833 GB, free: 84.2 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.899e-05/0.9697, allocations: 75.45 kB / 0.5833 GB, free: 84.13 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002204/0.9719, allocations: 1.531 MB / 0.5848 GB, free: 83.96 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001126/0.972, allocations: 49.58 kB / 0.5849 GB, free: 83.93 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008534/0.9729, allocations: 1.263 MB / 0.5861 GB, free: 83.5 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00037/0.9733, allocations: 459.4 kB / 0.5865 GB, free: 83.27 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001059/0.9734, allocations: 32.12 kB / 0.5866 GB, free: 83.27 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001301/0.9735, allocations: 375.6 kB / 0.5869 GB, free: 82.96 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001046/0.9746, allocations: 0.78 MB / 0.5877 GB, free: 82.96 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001296/0.9759, allocations: 1.284 MB / 0.5889 GB, free: 82.37 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001235/0.9771, allocations: 0.9995 MB / 0.5899 GB, free: 82.36 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.606e-06/0.9772, allocations: 3.406 kB / 0.5899 GB, free: 82.36 MB / 442.7 MB Notification: Performance of matching and sorting (n=211) (initialization): time 0.003878/0.981, allocations: 2.493 MB / 0.5924 GB, free: 82.16 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.665e-05/0.9811, allocations: 13.44 kB / 0.5924 GB, free: 82.16 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.781e-05/0.9811, allocations: 12.84 kB / 0.5924 GB, free: 82.16 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006367/0.9818, allocations: 245.7 kB / 0.5926 GB, free: 82.13 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001497/0.9833, allocations: 442.4 kB / 0.593 GB, free: 82.13 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002173/0.9855, allocations: 3 MB / 0.596 GB, free: 79.62 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001591/0.9871, allocations: 131.7 kB / 0.5961 GB, free: 79.61 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001555/0.9872, allocations: 80.22 kB / 0.5962 GB, free: 79.61 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 73 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (206): * Single equations (assignments): 202 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(2,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002956/0.9876, allocations: 202.1 kB / 0.5964 GB, free: 79.49 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003173/0.9879, allocations: 189.1 kB / 0.5965 GB, free: 79.39 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003332/0.9912, allocations: 2.099 MB / 0.5986 GB, free: 79.27 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.149e-05/0.9912, allocations: 14.11 kB / 0.5986 GB, free: 79.27 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.895e-06/0.9913, allocations: 3.281 kB / 0.5986 GB, free: 79.27 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.445e-05/0.9913, allocations: 8.844 kB / 0.5986 GB, free: 79.27 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007983/0.9993, allocations: 4.843 MB / 0.6033 GB, free: 78.76 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.687e-06/0.9993, allocations: 0 / 0.6033 GB, free: 78.76 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001181/1.001, allocations: 289.7 kB / 0.6036 GB, free: 78.76 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005693/1.001, allocations: 201 kB / 0.6038 GB, free: 78.73 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.174e-05/1.001, allocations: 33.12 kB / 0.6038 GB, free: 78.73 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002221/1.003, allocations: 2.97 MB / 0.6067 GB, free: 76.22 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.701e-06/1.003, allocations: 4.062 kB / 0.6068 GB, free: 76.22 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006058/1.01, allocations: 3.36 MB / 0.61 GB, free: 75.65 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001358/1.011, allocations: 443.7 kB / 0.6105 GB, free: 75.46 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002756/1.011, allocations: 24.44 kB / 0.6105 GB, free: 75.46 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001009/1.012, allocations: 100.7 kB / 0.6106 GB, free: 75.46 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001823/1.012, allocations: 88.58 kB / 0.6107 GB, free: 75.46 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001024/1.013, allocations: 36.86 kB / 0.6107 GB, free: 75.46 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.002039/1.015, allocations: 1.176 MB / 0.6118 GB, free: 75.34 MB / 442.7 MB Notification: Performance of sort global known variables: time 2.81e-07/1.015, allocations: 1.219 kB / 0.6118 GB, free: 75.34 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.002242/1.017, allocations: 0.5281 MB / 0.6124 GB, free: 75.34 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 2 (smpm.inertiaRotor.w,quadraticSpeedDependentTorque.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (130): * Single equations (assignments): 126 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(2,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.005644/1.022, allocations: 4.797 MB / 0.617 GB, free: 73.67 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.004084/1.027, allocations: 2.366 MB / 0.6194 GB, free: 72.7 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 6.793e-06/1.027, allocations: 2.812 kB / 0.6194 GB, free: 72.7 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001967/1.029, allocations: 1.365 MB / 0.6207 GB, free: 71.98 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002636/1.031, allocations: 461.5 kB / 0.6211 GB, free: 71.86 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01137/1.043, allocations: 4.63 MB / 0.6257 GB, free: 70.02 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002215/1.045, allocations: 2.069 MB / 0.6277 GB, free: 69.05 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.001967/1.047, allocations: 0.5179 MB / 0.6282 GB, free: 69.01 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001267/1.048, allocations: 0.9854 MB / 0.6291 GB, free: 68.22 MB / 442.7 MB Notification: Performance of SimCode: time 1.272e-06/1.048, allocations: 0 / 0.6291 GB, free: 68.22 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1255/1.174, allocations: 48 MB / 0.676 GB, free: 57.5 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002422/1.174, allocations: 196.3 kB / 0.6762 GB, free: 57.28 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.544/4.718, allocations: 3.938 kB / 0.6762 GB, free: 57.28 MB / 442.7 MB (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_CurrentSource_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_CurrentSource.fmu > Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource_res.mat does not exist to compare? outputFormat=mat