Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Machines_Examples_SynchronousInductionMachines_SMPM_VoltageSource",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Machines_Examples_SynchronousInductionMachines_SMPM_VoltageSource",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001426/0.001426, allocations: 177.1 kB / 8.7 MB, free: 384 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.504/1.504, allocations: 205.3 MB / 214.4 MB, free: 1.734 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007436/0.000744, allocations: 82.7 kB / 262.4 MB, free: 1.691 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 1.705e-05/1.705e-05, allocations: 4 kB / 315.6 MB, free: 22.62 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09714/0.09718, allocations: 47.58 MB / 363.2 MB, free: 6.98 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3973/0.4946, allocations: 112.8 MB / 476 MB, free: 15.08 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003449/0.495, allocations: 84.84 kB / 476.1 MB, free: 15.04 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1547/0.6497, allocations: 57.65 MB / 0.5212 GB, free: 10.67 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.094e-06/0.6497, allocations: 0 / 0.5212 GB, free: 10.67 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0002879/0.65, allocations: 83.88 kB / 0.5213 GB, free: 10.59 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 745 * Number of variables: 745 Notification: Performance of Generate backend data structure: time 0.008954/0.659, allocations: 2.892 MB / 0.5241 GB, free: 7.629 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.282e-05/0.6591, allocations: 15.97 kB / 0.5241 GB, free: 7.613 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00288/0.662, allocations: 403.5 kB / 0.5245 GB, free: 7.215 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005893/0.6679, allocations: 2.157 MB / 0.5266 GB, free: 5.004 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001737/0.6681, allocations: 96.33 kB / 0.5267 GB, free: 4.91 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001056/0.6692, allocations: 175.9 kB / 0.5269 GB, free: 4.738 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00583/0.675, allocations: 2.682 MB / 0.5295 GB, free: 2.051 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.2474/0.9225, allocations: 3.188 MB / 0.5326 GB, free: 94.21 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.384e-05/0.9226, allocations: 4.844 kB / 0.5326 GB, free: 94.21 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000236/0.9229, allocations: 3.219 kB / 0.5326 GB, free: 94.21 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001764/0.923, allocations: 134.9 kB / 0.5327 GB, free: 94.2 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02067/0.9437, allocations: 11.13 MB / 0.5436 GB, free: 91.65 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002341/0.9461, allocations: 1.945 MB / 0.5455 GB, free: 91.05 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001305/0.9474, allocations: 0.9041 MB / 0.5464 GB, free: 91.03 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003327/0.9478, allocations: 223.9 kB / 0.5466 GB, free: 90.84 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.922e-05/0.9478, allocations: 50.97 kB / 0.5466 GB, free: 90.8 MB / 410.7 MB Notification: Performance of pre-optimization done (n=134): time 3.607e-06/0.9478, allocations: 2.906 kB / 0.5467 GB, free: 90.8 MB / 410.7 MB Notification: Performance of matching and sorting (n=155): time 0.01068/0.9585, allocations: 5.574 MB / 0.5521 GB, free: 89.97 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.073e-05/0.9586, allocations: 70.44 kB / 0.5522 GB, free: 89.9 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00228/0.9609, allocations: 1.471 MB / 0.5536 GB, free: 89.74 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001566/0.9611, allocations: 25.7 kB / 0.5536 GB, free: 89.71 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007167/0.9618, allocations: 1.4 MB / 0.555 GB, free: 89.17 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003601/0.9622, allocations: 0.5102 MB / 0.5555 GB, free: 88.84 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.515e-05/0.9623, allocations: 1.688 kB / 0.5555 GB, free: 88.84 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001146/0.9624, allocations: 381.3 kB / 0.5559 GB, free: 88.53 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001089/0.9635, allocations: 0.8331 MB / 0.5567 GB, free: 88.53 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00129/0.9648, allocations: 1.364 MB / 0.558 GB, free: 87.91 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001279/0.9661, allocations: 1.075 MB / 0.5591 GB, free: 87.89 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.688e-06/0.9661, allocations: 11.36 kB / 0.5591 GB, free: 87.89 MB / 410.7 MB Notification: Performance of matching and sorting (n=241) (initialization): time 0.004349/0.9704, allocations: 2.82 MB / 0.5618 GB, free: 87.69 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.551e-05/0.9705, allocations: 9.812 kB / 0.5618 GB, free: 87.69 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.61e-05/0.9705, allocations: 17.94 kB / 0.5618 GB, free: 87.69 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00118/0.9717, allocations: 0.5372 MB / 0.5624 GB, free: 87.66 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001519/0.9732, allocations: 456.7 kB / 0.5628 GB, free: 87.66 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005561/0.9788, allocations: 6.013 MB / 0.5687 GB, free: 83.98 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002036/0.9809, allocations: 95.86 kB / 0.5688 GB, free: 83.98 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001908/0.9811, allocations: 84.41 kB / 0.5688 GB, free: 83.96 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 77 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (215): * Single equations (assignments): 212 * 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.0003666/0.9814, allocations: 150.4 kB / 0.569 GB, free: 83.85 MB / 410.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.004227/0.9857, allocations: 2.351 MB / 0.5713 GB, free: 83 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005035/0.9862, allocations: 205.3 kB / 0.5715 GB, free: 82.89 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004113/0.9903, allocations: 2.524 MB / 0.5739 GB, free: 81.97 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.382e-05/0.9904, allocations: 15 kB / 0.574 GB, free: 81.97 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.696e-06/0.9904, allocations: 7.406 kB / 0.574 GB, free: 81.97 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.622e-05/0.9904, allocations: 7.031 kB / 0.574 GB, free: 81.97 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008907/0.9993, allocations: 5.304 MB / 0.5792 GB, free: 79.91 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.15e-05/0.9994, allocations: 3.906 kB / 0.5792 GB, free: 79.91 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001116/1.001, allocations: 276.9 kB / 0.5794 GB, free: 79.9 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001316/1.002, allocations: 0.5719 MB / 0.58 GB, free: 79.75 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001012/1.002, allocations: 17.61 kB / 0.58 GB, free: 79.74 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006835/1.009, allocations: 7.683 MB / 0.5875 GB, free: 74.43 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.016e-05/1.009, allocations: 7.297 kB / 0.5875 GB, free: 74.43 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00516/1.014, allocations: 3.972 MB / 0.5914 GB, free: 72.6 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001231/1.015, allocations: 478.4 kB / 0.5918 GB, free: 72.3 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002527/1.016, allocations: 11.38 kB / 0.5919 GB, free: 72.3 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001007/1.017, allocations: 81.38 kB / 0.5919 GB, free: 72.3 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002577/1.017, allocations: 118.9 kB / 0.592 GB, free: 72.28 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001067/1.017, allocations: 45.25 kB / 0.5921 GB, free: 72.27 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.001649/1.019, allocations: 1.093 MB / 0.5932 GB, free: 71.82 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.71e-07/1.019, allocations: 3.281 kB / 0.5932 GB, free: 71.82 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.002235/1.021, allocations: 0.5303 MB / 0.5937 GB, free: 71.81 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * Number of states: 6 (smpm.inertiaRotor.w,smpm.idq_sr[1],smpm.idq_sr[2],quadraticSpeedDependentTorque.phi,voltageController.PI_d.x,voltageController.PI_q.x) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (127): * Single equations (assignments): 124 * 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.005275/1.026, allocations: 5.517 MB / 0.5991 GB, free: 68.71 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.003185/1.029, allocations: 2.503 MB / 0.6015 GB, free: 67.59 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 5.791e-06/1.029, allocations: 0 / 0.6015 GB, free: 67.59 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001838/1.031, allocations: 1.542 MB / 0.603 GB, free: 66.84 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002358/1.034, allocations: 423.8 kB / 0.6034 GB, free: 66.73 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009143/1.043, allocations: 5.27 MB / 0.6086 GB, free: 63.92 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001627/1.044, allocations: 2.269 MB / 0.6108 GB, free: 62.14 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.001564/1.046, allocations: 0.5 MB / 0.6113 GB, free: 61.79 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001275/1.047, allocations: 1.131 MB / 0.6124 GB, free: 60.75 MB / 410.7 MB Notification: Performance of SimCode: time 8.62e-07/1.047, allocations: 0 / 0.6124 GB, free: 60.75 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07534/1.123, allocations: 47.86 MB / 0.6591 GB, free: 19.97 MB / 410.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002369/1.123, allocations: 192.2 kB / 0.6593 GB, free: 19.77 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.445/4.568, allocations: 0 / 0.6593 GB, free: 19.77 MB / 410.7 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Machines_Examples_SynchronousInductionMachines_SMPM_VoltageSource_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Machines_Examples_SynchronousInductionMachines_SMPM_VoltageSource.fmu > Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource_res.mat does not exist to compare? outputFormat=mat