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.001702/0.001702, allocations: 198.3 kB / 8.766 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.563/1.563, allocations: 225.6 MB / 234.8 MB, free: 3.238 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008146/0.0008148, allocations: 99.41 kB / 286.7 MB, free: 5.281 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.851e-05/1.855e-05, allocations: 0 / 343.8 MB, free: 8.156 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1073/0.1073, allocations: 51.48 MB / 395.3 MB, free: 4.633 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3846/0.4919, allocations: 114.6 MB / 0.4979 GB, free: 10.78 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003197/0.4923, allocations: 86.14 kB / 0.498 GB, free: 10.73 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1635/0.6559, allocations: 59.49 MB / 0.5561 GB, free: 3.898 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.803e-06/0.6559, allocations: 4 kB / 0.5561 GB, free: 3.895 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0003781/0.6563, allocations: 87.86 kB / 0.5562 GB, free: 3.809 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: 775 * Number of variables: 775 Notification: Performance of Generate backend data structure: time 0.008957/0.6653, allocations: 2.998 MB / 0.5591 GB, free: 0.7461 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.016e-05/0.6654, allocations: 16.02 kB / 0.5592 GB, free: 0.7305 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00242/0.6678, allocations: 415.5 kB / 0.5595 GB, free: 328 kB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007319/0.6752, allocations: 2.22 MB / 0.5617 GB, free: 14.05 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002317/0.6754, allocations: 100.3 kB / 0.5618 GB, free: 13.95 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001343/0.6768, allocations: 183.9 kB / 0.562 GB, free: 13.77 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00827/0.6851, allocations: 2.796 MB / 0.5647 GB, free: 10.97 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01184/0.697, allocations: 3.306 MB / 0.5679 GB, free: 7.516 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000164/0.6972, allocations: 15.84 kB / 0.568 GB, free: 7.5 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009608/0.6982, allocations: 4 kB / 0.568 GB, free: 7.496 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002061/0.6984, allocations: 145.6 kB / 0.5681 GB, free: 7.352 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.28/0.9784, allocations: 11.63 MB / 0.5795 GB, free: 79.37 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002488/0.981, allocations: 2.083 MB / 0.5815 GB, free: 78.77 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001328/0.9823, allocations: 0.9699 MB / 0.5824 GB, free: 78.77 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003471/0.9827, allocations: 231.1 kB / 0.5827 GB, free: 78.58 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.843e-05/0.9827, allocations: 50.31 kB / 0.5827 GB, free: 78.54 MB / 442.7 MB Notification: Performance of pre-optimization done (n=149): time 4.108e-06/0.9828, allocations: 0 / 0.5827 GB, free: 78.54 MB / 442.7 MB Notification: Performance of matching and sorting (n=171): time 0.01123/0.994, allocations: 5.88 MB / 0.5884 GB, free: 77.77 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.795e-05/0.9941, allocations: 78.25 kB / 0.5885 GB, free: 77.71 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002821/0.9969, allocations: 1.493 MB / 0.59 GB, free: 77.5 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000252/0.9972, allocations: 25.7 kB / 0.59 GB, free: 77.47 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001442/0.9986, allocations: 1.453 MB / 0.5914 GB, free: 76.98 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007255/0.9994, allocations: 0.5568 MB / 0.592 GB, free: 76.66 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.192e-05/0.9995, allocations: 0 / 0.592 GB, free: 76.66 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001844/0.9997, allocations: 385.7 kB / 0.5923 GB, free: 76.36 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001361/1.001, allocations: 0.8902 MB / 0.5932 GB, free: 76.35 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001496/1.003, allocations: 1.43 MB / 0.5946 GB, free: 75.71 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001594/1.004, allocations: 1.152 MB / 0.5957 GB, free: 75.7 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.65e-05/1.004, allocations: 5.75 kB / 0.5957 GB, free: 75.7 MB / 442.7 MB Notification: Performance of matching and sorting (n=260) (initialization): time 0.005033/1.009, allocations: 2.978 MB / 0.5986 GB, free: 75.48 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.258e-05/1.009, allocations: 15.28 kB / 0.5987 GB, free: 75.48 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3e-05/1.009, allocations: 19.12 kB / 0.5987 GB, free: 75.48 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001343/1.011, allocations: 0.5301 MB / 0.5992 GB, free: 75.45 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001799/1.012, allocations: 491.5 kB / 0.5997 GB, free: 75.45 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006523/1.019, allocations: 6.037 MB / 0.6056 GB, free: 72.93 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002174/1.021, allocations: 107.3 kB / 0.6057 GB, free: 72.92 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002041/1.021, allocations: 89.55 kB / 0.6057 GB, free: 72.92 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 (234): * Single equations (assignments): 231 * 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.000446/1.022, allocations: 157 kB / 0.6059 GB, free: 72.8 MB / 442.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.004166/1.026, allocations: 2.489 MB / 0.6083 GB, free: 72.57 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004345/1.027, allocations: 211.7 kB / 0.6085 GB, free: 72.47 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004477/1.031, allocations: 2.7 MB / 0.6112 GB, free: 72.31 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.091e-05/1.031, allocations: 16.94 kB / 0.6112 GB, free: 72.31 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.21e-05/1.031, allocations: 5.375 kB / 0.6112 GB, free: 72.31 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.867e-05/1.031, allocations: 14.22 kB / 0.6112 GB, free: 72.31 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01007/1.041, allocations: 5.609 MB / 0.6167 GB, free: 71.25 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.404e-05/1.041, allocations: 9.391 kB / 0.6167 GB, free: 71.25 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001312/1.043, allocations: 305.2 kB / 0.617 GB, free: 71.24 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001465/1.044, allocations: 0.5834 MB / 0.6175 GB, free: 71.08 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001145/1.044, allocations: 16.22 kB / 0.6176 GB, free: 71.08 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007692/1.052, allocations: 7.669 MB / 0.625 GB, free: 65.8 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.278e-06/1.052, allocations: 6.938 kB / 0.6251 GB, free: 65.8 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006587/1.058, allocations: 4.246 MB / 0.6292 GB, free: 63.8 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001443/1.06, allocations: 0.4921 MB / 0.6297 GB, free: 63.5 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002782/1.06, allocations: 19.94 kB / 0.6297 GB, free: 63.49 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00112/1.061, allocations: 89.75 kB / 0.6298 GB, free: 63.49 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003237/1.062, allocations: 125.7 kB / 0.6299 GB, free: 63.47 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001312/1.062, allocations: 52.8 kB / 0.63 GB, free: 63.46 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.002126/1.064, allocations: 1.119 MB / 0.631 GB, free: 62.97 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.4e-07/1.064, allocations: 0 / 0.631 GB, free: 62.97 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.002735/1.067, allocations: 0.5503 MB / 0.6316 GB, free: 62.96 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 (145): * Single equations (assignments): 142 * 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.00655/1.073, allocations: 5.88 MB / 0.6373 GB, free: 59.7 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.003987/1.077, allocations: 2.647 MB / 0.6399 GB, free: 58.61 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 6.432e-06/1.077, allocations: 0 / 0.6399 GB, free: 58.61 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002222/1.08, allocations: 1.615 MB / 0.6415 GB, free: 57.84 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002516/1.082, allocations: 431.7 kB / 0.6419 GB, free: 57.74 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0109/1.093, allocations: 5.496 MB / 0.6473 GB, free: 55.61 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002147/1.095, allocations: 2.333 MB / 0.6495 GB, free: 54.6 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.001825/1.097, allocations: 0.5421 MB / 0.6501 GB, free: 54.55 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001348/1.098, allocations: 1.179 MB / 0.6512 GB, free: 53.59 MB / 442.7 MB Notification: Performance of SimCode: time 1.212e-06/1.098, allocations: 0 / 0.6512 GB, free: 53.59 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08194/1.18, allocations: 49.92 MB / 0.7 GB, free: 35.62 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000157/1.181, allocations: 170.1 kB / 0.7001 GB, free: 35.43 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.398/4.579, allocations: 3.125 kB / 0.7001 GB, free: 35.43 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