Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource.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_VoltageSource,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_VoltageSource",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_VoltageSource",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001694/0.001694, allocations: 196.5 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.378/1.378, allocations: 225.4 MB / 240.1 MB, free: 15.09 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009557/0.0009554, allocations: 95.73 kB / 292.1 MB, free: 5.934 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.629e-05/2.634e-05, allocations: 3.984 kB / 350.6 MB, free: 2.41 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1059/0.106, allocations: 51.49 MB / 402.1 MB, free: 14.88 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4066/0.5126, allocations: 115.3 MB / 0.5053 GB, free: 6.641 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003189/0.513, allocations: 87.78 kB / 0.5054 GB, free: 6.598 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1733/0.6863, allocations: 60.26 MB / 0.5642 GB, free: 11.29 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.184e-06/0.6864, allocations: 7.938 kB / 0.5642 GB, free: 11.29 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.000415/0.6868, allocations: 87.88 kB / 0.5643 GB, free: 11.2 MB / 442.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 775 * Number of variables: 775 Notification: Performance of Generate backend data structure: time 0.009384/0.6962, allocations: 2.999 MB / 0.5672 GB, free: 8.137 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.374e-05/0.6963, allocations: 23.95 kB / 0.5673 GB, free: 8.113 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00164/0.6979, allocations: 417.8 kB / 0.5677 GB, free: 7.695 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002483/0.7004, allocations: 423.4 kB / 0.5681 GB, free: 7.277 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007082/0.7075, allocations: 2.216 MB / 0.5702 GB, free: 5.008 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003131/0.7079, allocations: 222.2 kB / 0.5704 GB, free: 4.789 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001409/0.7093, allocations: 299.8 kB / 0.5707 GB, free: 4.496 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01195/0.7213, allocations: 3.743 MB / 0.5744 GB, free: 0.6016 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002016/0.7215, allocations: 7.844 kB / 0.5744 GB, free: 0.5938 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001003/0.7225, allocations: 128 kB / 0.5745 GB, free: 480 kB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002186/0.7228, allocations: 137.7 kB / 0.5746 GB, free: 340 kB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.272/0.9948, allocations: 3.007 MB / 0.5776 GB, free: 82.78 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02188/1.017, allocations: 12.2 MB / 0.5895 GB, free: 79.96 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00227/1.019, allocations: 2.069 MB / 0.5915 GB, free: 79.36 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001202/1.02, allocations: 0.9956 MB / 0.5925 GB, free: 79.35 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003266/1.021, allocations: 224.4 kB / 0.5927 GB, free: 79.15 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.089e-05/1.021, allocations: 53.59 kB / 0.5928 GB, free: 79.11 MB / 442.7 MB Notification: Performance of pre-optimization done (n=141): time 3.626e-06/1.021, allocations: 2.844 kB / 0.5928 GB, free: 79.11 MB / 442.7 MB Notification: Performance of matching and sorting (n=163): time 0.01242/1.033, allocations: 6.663 MB / 0.5993 GB, free: 78.25 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.012e-05/1.033, allocations: 70.56 kB / 0.5993 GB, free: 78.19 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002777/1.036, allocations: 1.748 MB / 0.601 GB, free: 77.96 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002725/1.036, allocations: 52.77 kB / 0.6011 GB, free: 77.93 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000895/1.037, allocations: 1.452 MB / 0.6025 GB, free: 77.41 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004671/1.038, allocations: 0.5559 MB / 0.603 GB, free: 77.06 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.532e-05/1.038, allocations: 36.31 kB / 0.6031 GB, free: 77.06 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.000116/1.038, allocations: 390.1 kB / 0.6035 GB, free: 76.75 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001213/1.039, allocations: 0.9041 MB / 0.6043 GB, free: 76.75 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001426/1.04, allocations: 1.455 MB / 0.6058 GB, free: 76.12 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001615/1.042, allocations: 1.167 MB / 0.6069 GB, free: 76.09 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.42e-05/1.042, allocations: 5.219 kB / 0.6069 GB, free: 76.09 MB / 442.7 MB Notification: Performance of matching and sorting (n=252) (initialization): time 0.00627/1.048, allocations: 3.145 MB / 0.61 GB, free: 75.87 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.279e-05/1.048, allocations: 12.41 kB / 0.61 GB, free: 75.87 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.242e-05/1.049, allocations: 17.31 kB / 0.61 GB, free: 75.87 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001606/1.05, allocations: 0.5424 MB / 0.6105 GB, free: 75.84 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00197/1.052, allocations: 481.5 kB / 0.611 GB, free: 75.84 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007599/1.06, allocations: 6.276 MB / 0.6171 GB, free: 72.17 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002357/1.062, allocations: 140 kB / 0.6173 GB, free: 72.14 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003071/1.062, allocations: 85.91 kB / 0.6173 GB, free: 72.12 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 78 * Number of states: 0 () * Number of discrete variables: 1 (sinCosEvaluation.integrator.local_reset) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (226): * Single equations (assignments): 223 * 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%) 20,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004091/1.063, allocations: 231.7 kB / 0.6176 GB, free: 71.94 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005133/1.063, allocations: 220.2 kB / 0.6178 GB, free: 71.83 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005244/1.069, allocations: 2.798 MB / 0.6205 GB, free: 70.77 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.81e-05/1.069, allocations: 16.31 kB / 0.6205 GB, free: 70.77 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.157e-05/1.069, allocations: 6.719 kB / 0.6205 GB, free: 70.77 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.251e-05/1.069, allocations: 8.109 kB / 0.6205 GB, free: 70.77 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0131/1.082, allocations: 6.015 MB / 0.6264 GB, free: 68.44 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.869e-06/1.082, allocations: 4.125 kB / 0.6264 GB, free: 68.44 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001198/1.083, allocations: 285.7 kB / 0.6267 GB, free: 68.43 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002494/1.086, allocations: 0.5908 MB / 0.6273 GB, free: 68.27 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001684/1.086, allocations: 36.14 kB / 0.6273 GB, free: 68.25 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007661/1.094, allocations: 7.968 MB / 0.6351 GB, free: 62.71 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.19e-06/1.094, allocations: 7.031 kB / 0.6351 GB, free: 62.71 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007045/1.101, allocations: 4.282 MB / 0.6393 GB, free: 60.7 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001666/1.102, allocations: 0.5083 MB / 0.6398 GB, free: 60.37 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007095/1.103, allocations: 34.41 kB / 0.6398 GB, free: 60.35 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001687/1.105, allocations: 109.5 kB / 0.6399 GB, free: 60.33 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002987/1.105, allocations: 117.2 kB / 0.64 GB, free: 60.3 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001295/1.105, allocations: 51.33 kB / 0.6401 GB, free: 60.29 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.002793/1.108, allocations: 1.333 MB / 0.6414 GB, free: 59.74 MB / 442.7 MB Notification: Performance of sort global known variables: time 3.81e-07/1.108, allocations: 0 / 0.6414 GB, free: 59.74 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.002868/1.111, allocations: 0.6385 MB / 0.642 GB, free: 59.67 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 13 * Number of states: 7 (smpm.inertiaRotor.w,smpm.idq_sr[1],smpm.idq_sr[2],quadraticSpeedDependentTorque.phi,dqCurrentController.PI_d.x,dqCurrentController.PI_q.x,sinCosEvaluation.integrator.y) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (141): * Single equations (assignments): 138 * 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%) 20,(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.006464/1.117, allocations: 5.912 MB / 0.6478 GB, free: 56.34 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.004043/1.121, allocations: 2.706 MB / 0.6504 GB, free: 55.16 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 6.392e-06/1.121, allocations: 2 kB / 0.6504 GB, free: 55.16 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002159/1.124, allocations: 1.626 MB / 0.652 GB, free: 54.35 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003099/1.127, allocations: 0.5046 MB / 0.6525 GB, free: 54.2 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01383/1.141, allocations: 5.614 MB / 0.658 GB, free: 51.91 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002707/1.143, allocations: 2.331 MB / 0.6602 GB, free: 50.9 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.002156/1.146, allocations: 0.5293 MB / 0.6608 GB, free: 50.85 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001693/1.147, allocations: 1.185 MB / 0.6619 GB, free: 49.89 MB / 442.7 MB Notification: Performance of SimCode: time 1.152e-06/1.147, allocations: 3.938 kB / 0.6619 GB, free: 49.88 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0943/1.242, allocations: 57.91 MB / 0.7185 GB, free: 13.1 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001422/1.242, allocations: 203.3 kB / 0.7187 GB, free: 12.88 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.637/4.878, allocations: 3.281 kB / 0.7187 GB, free: 12.88 MB / 442.7 MB (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_VoltageSource_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_VoltageSource.fmu > Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource_res.mat does not exist to compare? outputFormat=mat