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.001203/0.001203, allocations: 197.8 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.233/1.233, allocations: 227.2 MB / 245 MB, free: 5.879 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008821/0.0008821, allocations: 101.1 kB / 297.3 MB, free: 5.977 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002322/0.0002323, allocations: 8 kB / 358 MB, free: 9.223 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2138/0.2141, allocations: 51.48 MB / 409.5 MB, free: 26.71 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2962/0.5104, allocations: 115.3 MB / 0.5125 GB, free: 46.67 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002759/0.5107, allocations: 93.33 kB / 0.5126 GB, free: 46.67 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.137/0.6478, allocations: 60.21 MB / 0.5714 GB, free: 28.33 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.964e-06/0.6478, allocations: 0 / 0.5714 GB, free: 28.33 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0002735/0.6481, allocations: 91.86 kB / 0.5715 GB, free: 28.24 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: 775 * Number of variables: 775 Notification: Performance of Generate backend data structure: time 0.007979/0.6561, allocations: 3.373 MB / 0.5748 GB, free: 25.03 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.168e-05/0.6561, allocations: 11.97 kB / 0.5748 GB, free: 25.02 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001232/0.6574, allocations: 425.1 kB / 0.5752 GB, free: 24.78 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001357/0.6587, allocations: 429.8 kB / 0.5756 GB, free: 24.36 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004645/0.6634, allocations: 2.237 MB / 0.5778 GB, free: 22.62 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001352/0.6635, allocations: 228.8 kB / 0.5781 GB, free: 22.49 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004244/0.664, allocations: 295.8 kB / 0.5783 GB, free: 22.3 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005318/0.6693, allocations: 3.795 MB / 0.582 GB, free: 18.94 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.855e-05/0.6694, allocations: 7.984 kB / 0.582 GB, free: 18.93 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002502/0.6696, allocations: 124 kB / 0.5822 GB, free: 18.81 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001072/0.6698, allocations: 145.7 kB / 0.5823 GB, free: 18.66 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004418/0.6742, allocations: 3.087 MB / 0.5853 GB, free: 15.57 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01605/0.6903, allocations: 12.2 MB / 0.5972 GB, free: 3 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002104/0.6924, allocations: 2.106 MB / 0.5993 GB, free: 0.7812 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002753/0.6927, allocations: 223.5 kB / 0.5995 GB, free: 0.5273 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.133e-05/0.6927, allocations: 47.88 kB / 0.5996 GB, free: 484 kB / 378.7 MB Notification: Performance of pre-optimization done (n=141): time 3.186e-06/0.6927, allocations: 4 kB / 0.5996 GB, free: 480 kB / 378.7 MB Notification: Performance of matching and sorting (n=162): time 0.01497/0.7077, allocations: 7.855 MB / 0.6072 GB, free: 8.516 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.154e-05/0.7078, allocations: 76.66 kB / 0.6073 GB, free: 8.43 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002775/0.7106, allocations: 1.764 MB / 0.609 GB, free: 6.633 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001857/0.7108, allocations: 49.7 kB / 0.6091 GB, free: 6.578 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009804/0.7118, allocations: 1.452 MB / 0.6105 GB, free: 5.109 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004684/0.7122, allocations: 0.5545 MB / 0.611 GB, free: 4.547 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001064/0.7124, allocations: 47.94 kB / 0.6111 GB, free: 4.5 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001722/0.7125, allocations: 385.8 kB / 0.6114 GB, free: 4.117 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001397/0.7139, allocations: 0.9331 MB / 0.6124 GB, free: 3.184 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001694/0.7156, allocations: 1.487 MB / 0.6138 GB, free: 1.453 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001652/0.7173, allocations: 1.189 MB / 0.615 GB, free: 276 kB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.167e-06/0.7173, allocations: 8 kB / 0.615 GB, free: 268 kB / 394.7 MB Notification: Performance of matching and sorting (n=251) (initialization): time 0.005229/0.7226, allocations: 3.211 MB / 0.6181 GB, free: 13.03 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.864e-05/0.7226, allocations: 12 kB / 0.6181 GB, free: 13.02 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.452e-05/0.7227, allocations: 16 kB / 0.6181 GB, free: 13 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001342/0.724, allocations: 0.5493 MB / 0.6187 GB, free: 12.45 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001719/0.7257, allocations: 475.2 kB / 0.6191 GB, free: 11.98 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007534/0.7333, allocations: 6.475 MB / 0.6255 GB, free: 5.23 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002115/0.7354, allocations: 147.8 kB / 0.6256 GB, free: 5.086 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002255/0.7357, allocations: 83.98 kB / 0.6257 GB, free: 5.004 MB / 410.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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (225): * Single equations (assignments): 222 * 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.00228/0.738, allocations: 0.9411 MB / 0.6266 GB, free: 4.055 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000542/0.7385, allocations: 217.3 kB / 0.6268 GB, free: 3.84 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004933/0.7434, allocations: 2.85 MB / 0.6296 GB, free: 0.9727 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.318e-05/0.7435, allocations: 16 kB / 0.6296 GB, free: 0.957 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.548e-06/0.7435, allocations: 8 kB / 0.6296 GB, free: 0.9492 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.653e-05/0.7435, allocations: 11.97 kB / 0.6296 GB, free: 0.9375 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01009/0.7536, allocations: 6.029 MB / 0.6355 GB, free: 10.8 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.763e-06/0.7536, allocations: 0 / 0.6355 GB, free: 10.8 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001246/0.7549, allocations: 291.8 kB / 0.6358 GB, free: 10.52 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001487/0.7564, allocations: 0.5879 MB / 0.6364 GB, free: 9.918 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001181/0.7565, allocations: 39.98 kB / 0.6364 GB, free: 9.879 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008673/0.7652, allocations: 8.205 MB / 0.6444 GB, free: 1.273 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.261e-06/0.7652, allocations: 7.938 kB / 0.6444 GB, free: 1.266 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00639/0.7716, allocations: 4.295 MB / 0.6486 GB, free: 12.84 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001259/0.7729, allocations: 0.4942 MB / 0.6491 GB, free: 12.33 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002862/0.7732, allocations: 39.98 kB / 0.6491 GB, free: 12.29 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001147/0.7744, allocations: 111.9 kB / 0.6492 GB, free: 12.18 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002848/0.7747, allocations: 113 kB / 0.6493 GB, free: 12.07 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001103/0.7748, allocations: 51.98 kB / 0.6494 GB, free: 12.02 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.002109/0.7769, allocations: 1.351 MB / 0.6507 GB, free: 10.65 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.7769, allocations: 4 kB / 0.6507 GB, free: 10.64 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.002041/0.7789, allocations: 0.6407 MB / 0.6513 GB, free: 10 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (139): * Single equations (assignments): 136 * 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.007086/0.786, allocations: 5.751 MB / 0.657 GB, free: 4.152 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.004268/0.7903, allocations: 2.774 MB / 0.6597 GB, free: 1.332 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 5.67e-06/0.7904, allocations: 0 / 0.6597 GB, free: 1.332 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00236/0.7927, allocations: 1.652 MB / 0.6613 GB, free: 15.64 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002527/0.7953, allocations: 0.5039 MB / 0.6618 GB, free: 15.14 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2076/1.003, allocations: 30.28 MB / 0.6913 GB, free: 109 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00158/1.005, allocations: 2.332 MB / 0.6936 GB, free: 108.2 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.001546/1.006, allocations: 0.5163 MB / 0.6941 GB, free: 108.2 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00117/1.007, allocations: 1.193 MB / 0.6953 GB, free: 108.2 MB / 458.7 MB Notification: Performance of SimCode: time 7.51e-07/1.007, allocations: 0 / 0.6953 GB, free: 108.2 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0691/1.076, allocations: 57.57 MB / 0.7515 GB, free: 87.73 MB / 458.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001412/1.077, allocations: 231.6 kB / 0.7517 GB, free: 87.48 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.394/4.471, allocations: 0 / 0.7517 GB, free: 87.48 MB / 458.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