Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_VoltageSource",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource,fileNamePrefix="Modelica_4_0_0_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 4.0.0+maint.om/package.mo): time 0.001096/0.001096, allocations: 176.4 kB / 8.346 MB, free: 0.7266 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.352/1.352, allocations: 221.5 MB / 230.3 MB, free: 7.516 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008648/0.0008648, allocations: 89.92 kB / 281.2 MB, free: 5.266 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.85e-05/1.854e-05, allocations: 0 / 337.1 MB, free: 9.906 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1122/0.1123, allocations: 50.42 MB / 387.6 MB, free: 7.441 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3892/0.5016, allocations: 113.8 MB / 0.4896 GB, free: 12.81 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002655/0.5019, allocations: 87.94 kB / 0.4897 GB, free: 12.73 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1587/0.6606, allocations: 59.41 MB / 0.5477 GB, free: 0.9727 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.623e-06/0.6606, allocations: 0 / 0.5477 GB, free: 0.9727 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0002272/0.6609, allocations: 91.86 kB / 0.5478 GB, free: 0.8828 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.2717/0.9326, allocations: 2.983 MB / 0.5507 GB, free: 96.45 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.645e-05/0.9327, allocations: 13.83 kB / 0.5507 GB, free: 96.45 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003325/0.936, allocations: 417.3 kB / 0.5511 GB, free: 96.25 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00611/0.9421, allocations: 2.219 MB / 0.5533 GB, free: 95.91 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001708/0.9423, allocations: 96.06 kB / 0.5534 GB, free: 95.91 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007477/0.9431, allocations: 179.7 kB / 0.5536 GB, free: 95.91 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.006305/0.9494, allocations: 2.801 MB / 0.5563 GB, free: 95.89 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00734/0.9568, allocations: 3.312 MB / 0.5595 GB, free: 95.47 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.166e-05/0.9569, allocations: 11.77 kB / 0.5595 GB, free: 95.46 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002316/0.9572, allocations: 3.531 kB / 0.5595 GB, free: 95.46 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000165/0.9574, allocations: 143.2 kB / 0.5597 GB, free: 95.46 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02431/0.9817, allocations: 11.64 MB / 0.571 GB, free: 92.54 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00273/0.9845, allocations: 2.081 MB / 0.5731 GB, free: 91.94 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001194/0.9857, allocations: 0.9684 MB / 0.574 GB, free: 91.93 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003405/0.986, allocations: 230.2 kB / 0.5742 GB, free: 91.74 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.715e-05/0.9861, allocations: 53.61 kB / 0.5743 GB, free: 91.7 MB / 426.7 MB Notification: Performance of pre-optimization done (n=149): time 4.298e-06/0.9861, allocations: 0 / 0.5743 GB, free: 91.7 MB / 426.7 MB Notification: Performance of matching and sorting (n=171): time 0.01023/0.9963, allocations: 5.882 MB / 0.58 GB, free: 90.32 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.408e-05/0.9964, allocations: 80.12 kB / 0.5801 GB, free: 90.25 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002546/0.999, allocations: 1.492 MB / 0.5816 GB, free: 89.62 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000286/0.9993, allocations: 25.7 kB / 0.5816 GB, free: 89.59 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008976/1, allocations: 1.441 MB / 0.583 GB, free: 88.48 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005005/1.001, allocations: 0.5661 MB / 0.5836 GB, free: 88.04 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.339e-05/1.001, allocations: 2.531 kB / 0.5836 GB, free: 88.04 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001403/1.001, allocations: 391.8 kB / 0.5839 GB, free: 87.7 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001202/1.002, allocations: 0.8876 MB / 0.5848 GB, free: 87.36 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001314/1.003, allocations: 1.428 MB / 0.5862 GB, free: 86.34 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001417/1.005, allocations: 1.152 MB / 0.5873 GB, free: 85.93 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.086e-05/1.005, allocations: 7.406 kB / 0.5873 GB, free: 85.93 MB / 426.7 MB Notification: Performance of matching and sorting (n=260) (initialization): time 0.004539/1.009, allocations: 2.978 MB / 0.5902 GB, free: 84.93 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.39e-05/1.01, allocations: 15.47 kB / 0.5903 GB, free: 84.93 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.79e-05/1.01, allocations: 15.47 kB / 0.5903 GB, free: 84.93 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001209/1.011, allocations: 0.5387 MB / 0.5908 GB, free: 84.79 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001849/1.013, allocations: 484.9 kB / 0.5913 GB, free: 84.78 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005677/1.018, allocations: 6.024 MB / 0.5971 GB, free: 80.88 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002184/1.021, allocations: 111.5 kB / 0.5972 GB, free: 80.88 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002604/1.021, allocations: 84.73 kB / 0.5973 GB, free: 80.86 MB / 426.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.0003917/1.021, allocations: 163.5 kB / 0.5975 GB, free: 80.73 MB / 426.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.003888/1.025, allocations: 2.492 MB / 0.5999 GB, free: 79.82 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005117/1.026, allocations: 203.9 kB / 0.6001 GB, free: 79.71 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004415/1.03, allocations: 2.707 MB / 0.6028 GB, free: 78.71 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.379e-05/1.03, allocations: 19.81 kB / 0.6028 GB, free: 78.71 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.418e-06/1.03, allocations: 7.5 kB / 0.6028 GB, free: 78.71 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.85e-05/1.03, allocations: 9.75 kB / 0.6028 GB, free: 78.71 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008615/1.039, allocations: 5.604 MB / 0.6083 GB, free: 76.49 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.097e-06/1.039, allocations: 2.875 kB / 0.6083 GB, free: 76.49 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001169/1.04, allocations: 310.6 kB / 0.6086 GB, free: 76.46 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001325/1.041, allocations: 0.5727 MB / 0.6091 GB, free: 76.32 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001115/1.041, allocations: 24.42 kB / 0.6091 GB, free: 76.31 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006767/1.048, allocations: 7.675 MB / 0.6166 GB, free: 71 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.548e-06/1.048, allocations: 7.562 kB / 0.6166 GB, free: 71 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006596/1.055, allocations: 4.256 MB / 0.6208 GB, free: 68.97 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001459/1.056, allocations: 0.4904 MB / 0.6213 GB, free: 68.66 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003246/1.057, allocations: 9.953 kB / 0.6213 GB, free: 68.66 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001099/1.058, allocations: 87.98 kB / 0.6214 GB, free: 68.66 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002441/1.058, allocations: 132.5 kB / 0.6215 GB, free: 68.64 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001038/1.058, allocations: 48.73 kB / 0.6215 GB, free: 68.62 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.001543/1.06, allocations: 1.116 MB / 0.6226 GB, free: 68.14 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.6e-07/1.06, allocations: 0 / 0.6226 GB, free: 68.14 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.001967/1.062, allocations: 0.5451 MB / 0.6232 GB, free: 68.12 MB / 426.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.005482/1.067, allocations: 5.876 MB / 0.6289 GB, free: 62.86 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.00364/1.071, allocations: 2.655 MB / 0.6315 GB, free: 60.4 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 7.694e-06/1.071, allocations: 0 / 0.6315 GB, free: 60.4 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002046/1.073, allocations: 1.61 MB / 0.6331 GB, free: 58.93 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002479/1.075, allocations: 437.4 kB / 0.6335 GB, free: 58.59 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01048/1.086, allocations: 5.492 MB / 0.6389 GB, free: 53.79 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001736/1.088, allocations: 2.331 MB / 0.6411 GB, free: 51.96 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.001675/1.089, allocations: 0.5401 MB / 0.6417 GB, free: 51.59 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001322/1.091, allocations: 1.179 MB / 0.6428 GB, free: 50.5 MB / 426.7 MB Notification: Performance of SimCode: time 1.323e-06/1.091, allocations: 0 / 0.6428 GB, free: 50.5 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08309/1.174, allocations: 49.83 MB / 0.6915 GB, free: 7.086 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001576/1.174, allocations: 174.4 kB / 0.6916 GB, free: 6.891 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.347/4.521, allocations: 0 / 0.6916 GB, free: 6.891 MB / 426.7 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_VoltageSource_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_VoltageSource.fmu > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource_res.mat does not exist to compare? outputFormat=mat