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.000919/0.000919, allocations: 175.4 kB / 13.63 MB, free: 1.684 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.309/1.309, allocations: 221.3 MB / 235.5 MB, free: 2.93 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.0008686/0.0008685, allocations: 94.06 kB / 286.5 MB, free: 224 kB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.607e-05/2.61e-05, allocations: 4 kB / 343.9 MB, free: 4.195 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1015/0.1015, allocations: 50.42 MB / 394.3 MB, free: 1.738 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3535/0.4551, allocations: 114.5 MB / 0.4969 GB, free: 4.922 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002824/0.4554, allocations: 87.95 kB / 0.497 GB, free: 4.836 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4287/0.8842, allocations: 60.19 MB / 0.5557 GB, free: 98.45 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.853e-06/0.8842, allocations: 0 / 0.5557 GB, free: 98.45 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0002782/0.8845, allocations: 91.44 kB / 0.5558 GB, free: 98.43 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.008842/0.8934, allocations: 3 MB / 0.5588 GB, free: 97.3 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.553e-05/0.8934, allocations: 9.438 kB / 0.5588 GB, free: 97.3 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001435/0.8949, allocations: 421.2 kB / 0.5592 GB, free: 97.25 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001803/0.8967, allocations: 417.7 kB / 0.5596 GB, free: 97.06 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005266/0.902, allocations: 2.219 MB / 0.5617 GB, free: 96.54 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002398/0.9022, allocations: 222.7 kB / 0.5619 GB, free: 96.54 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000713/0.9029, allocations: 296.7 kB / 0.5622 GB, free: 96.53 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007321/0.9103, allocations: 3.745 MB / 0.5659 GB, free: 96.09 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.326e-05/0.9104, allocations: 12.22 kB / 0.5659 GB, free: 96.09 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003146/0.9107, allocations: 122.7 kB / 0.566 GB, free: 96.09 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001746/0.9109, allocations: 141.5 kB / 0.5662 GB, free: 96.08 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005805/0.9167, allocations: 3.01 MB / 0.5691 GB, free: 96.05 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02309/0.9398, allocations: 12.2 MB / 0.581 GB, free: 91.6 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002315/0.9422, allocations: 2.069 MB / 0.583 GB, free: 90.42 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001215/0.9435, allocations: 1.002 MB / 0.584 GB, free: 90.05 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003158/0.9438, allocations: 222.7 kB / 0.5842 GB, free: 89.86 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.008e-05/0.9438, allocations: 51.75 kB / 0.5843 GB, free: 89.81 MB / 426.7 MB Notification: Performance of pre-optimization done (n=141): time 2.836e-06/0.9438, allocations: 0 / 0.5843 GB, free: 89.81 MB / 426.7 MB Notification: Performance of matching and sorting (n=163): time 0.01319/0.957, allocations: 6.653 MB / 0.5908 GB, free: 87.29 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.062e-05/0.9571, allocations: 71.19 kB / 0.5908 GB, free: 87.22 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002753/0.9599, allocations: 1.749 MB / 0.5925 GB, free: 86.51 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001566/0.9601, allocations: 49.67 kB / 0.5926 GB, free: 86.46 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008126/0.9609, allocations: 1.448 MB / 0.594 GB, free: 85.35 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003783/0.9613, allocations: 0.5586 MB / 0.5945 GB, free: 84.92 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.329e-05/0.9614, allocations: 37.38 kB / 0.5946 GB, free: 84.89 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001077/0.9615, allocations: 393.9 kB / 0.595 GB, free: 84.55 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001165/0.9626, allocations: 0.904 MB / 0.5958 GB, free: 84.21 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001381/0.964, allocations: 1.464 MB / 0.5973 GB, free: 83.19 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00142/0.9655, allocations: 1.171 MB / 0.5984 GB, free: 82.76 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.816e-06/0.9655, allocations: 3.562 kB / 0.5984 GB, free: 82.76 MB / 426.7 MB Notification: Performance of matching and sorting (n=252) (initialization): time 0.0047/0.9702, allocations: 3.142 MB / 0.6015 GB, free: 81.62 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.734e-05/0.9702, allocations: 17.91 kB / 0.6015 GB, free: 81.62 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.087e-05/0.9703, allocations: 14.38 kB / 0.6015 GB, free: 81.62 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001193/0.9715, allocations: 0.5441 MB / 0.602 GB, free: 81.48 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001526/0.973, allocations: 477.1 kB / 0.6025 GB, free: 81.44 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005991/0.979, allocations: 6.28 MB / 0.6086 GB, free: 77.32 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002318/0.9814, allocations: 146.9 kB / 0.6088 GB, free: 77.29 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003263/0.9817, allocations: 83.27 kB / 0.6089 GB, free: 77.27 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 (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.0003854/0.9821, allocations: 224.5 kB / 0.6091 GB, free: 77.07 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004755/0.9826, allocations: 217.7 kB / 0.6093 GB, free: 76.95 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00468/0.9873, allocations: 2.798 MB / 0.612 GB, free: 75.87 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.256e-05/0.9873, allocations: 18.62 kB / 0.612 GB, free: 75.87 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.886e-06/0.9874, allocations: 7.781 kB / 0.612 GB, free: 75.87 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.032e-05/0.9874, allocations: 9.141 kB / 0.612 GB, free: 75.87 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01036/0.9977, allocations: 6.003 MB / 0.6179 GB, free: 73.48 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.071e-05/0.9978, allocations: 3.188 kB / 0.6179 GB, free: 73.48 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001415/0.9992, allocations: 286.8 kB / 0.6182 GB, free: 73.45 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001676/1.001, allocations: 0.5896 MB / 0.6188 GB, free: 73.29 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001645/1.001, allocations: 44.92 kB / 0.6188 GB, free: 73.27 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007591/1.009, allocations: 7.953 MB / 0.6266 GB, free: 66.28 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.719e-06/1.009, allocations: 8 kB / 0.6266 GB, free: 66.27 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005772/1.015, allocations: 4.296 MB / 0.6308 GB, free: 62.27 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001237/1.016, allocations: 0.4972 MB / 0.6313 GB, free: 61.81 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002929/1.016, allocations: 36 kB / 0.6313 GB, free: 61.77 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001079/1.017, allocations: 105.5 kB / 0.6314 GB, free: 61.7 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002642/1.017, allocations: 120.4 kB / 0.6315 GB, free: 61.63 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001064/1.018, allocations: 55.73 kB / 0.6316 GB, free: 61.58 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.001881/1.019, allocations: 1.331 MB / 0.6329 GB, free: 60.35 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.5e-07/1.019, allocations: 0 / 0.6329 GB, free: 60.35 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.00209/1.022, allocations: 0.6406 MB / 0.6335 GB, free: 59.71 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 (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.005668/1.027, allocations: 5.913 MB / 0.6393 GB, free: 54.23 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.003705/1.031, allocations: 2.716 MB / 0.6419 GB, free: 51.7 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 4.238e-06/1.031, allocations: 0 / 0.6419 GB, free: 51.7 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001904/1.033, allocations: 1.617 MB / 0.6435 GB, free: 50.19 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002424/1.035, allocations: 0.5017 MB / 0.644 GB, free: 49.79 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009843/1.045, allocations: 5.609 MB / 0.6495 GB, free: 44.85 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00174/1.047, allocations: 2.332 MB / 0.6517 GB, free: 43.02 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.001606/1.049, allocations: 0.5219 MB / 0.6522 GB, free: 42.66 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001289/1.05, allocations: 1.189 MB / 0.6534 GB, free: 41.57 MB / 426.7 MB Notification: Performance of SimCode: time 8.91e-07/1.05, allocations: 0 / 0.6534 GB, free: 41.57 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08222/1.132, allocations: 57.81 MB / 0.7099 GB, free: 3.125 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002227/1.132, allocations: 211.9 kB / 0.7101 GB, free: 2.895 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.595/4.728, allocations: 3.594 kB / 0.7101 GB, free: 2.895 MB / 442.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