Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_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_cpp_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_cpp_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.001548/0.001548, allocations: 181.3 kB / 13.66 MB, free: 1.664 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.053/2.053, allocations: 205.2 MB / 219.4 MB, free: 14.29 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001106/0.001106, allocations: 98.67 kB / 267.5 MB, free: 14.11 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 4.053e-05/4.07e-05, allocations: 4 kB / 321.6 MB, free: 17.74 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1051/0.1052, allocations: 47.58 MB / 369.2 MB, free: 2.094 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4807/0.586, allocations: 113.2 MB / 482.4 MB, free: 12.5 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000376/0.5864, allocations: 82.2 kB / 482.5 MB, free: 12.46 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2662/0.8526, allocations: 58.42 MB / 0.5282 GB, free: 3 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.936e-06/0.8527, allocations: 0 / 0.5282 GB, free: 3 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0004287/0.8531, allocations: 83.88 kB / 0.5283 GB, free: 2.918 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.3055/1.159, allocations: 2.886 MB / 0.5311 GB, free: 92.24 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.243e-05/1.159, allocations: 11.45 kB / 0.5311 GB, free: 92.24 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002061/1.161, allocations: 407.4 kB / 0.5315 GB, free: 92.19 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002651/1.163, allocations: 403.3 kB / 0.5319 GB, free: 92.01 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009313/1.173, allocations: 2.157 MB / 0.534 GB, free: 91.67 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004006/1.173, allocations: 218.2 kB / 0.5342 GB, free: 91.66 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001437/1.175, allocations: 286.6 kB / 0.5345 GB, free: 91.66 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01367/1.188, allocations: 3.602 MB / 0.538 GB, free: 91.23 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001695/1.189, allocations: 10.45 kB / 0.538 GB, free: 91.23 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006951/1.189, allocations: 122.2 kB / 0.5381 GB, free: 91.23 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002469/1.19, allocations: 136.2 kB / 0.5383 GB, free: 91.22 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01091/1.201, allocations: 2.878 MB / 0.5411 GB, free: 91.19 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03647/1.237, allocations: 11.67 MB / 0.5525 GB, free: 88.47 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00407/1.241, allocations: 1.951 MB / 0.5544 GB, free: 87.86 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002313/1.244, allocations: 0.9292 MB / 0.5553 GB, free: 87.67 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005146/1.244, allocations: 216.8 kB / 0.5555 GB, free: 87.48 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.595e-05/1.244, allocations: 47.78 kB / 0.5555 GB, free: 87.43 MB / 410.7 MB Notification: Performance of pre-optimization done (n=128): time 4.418e-06/1.244, allocations: 0 / 0.5555 GB, free: 87.43 MB / 410.7 MB Notification: Performance of matching and sorting (n=149): time 0.02329/1.268, allocations: 6.381 MB / 0.5618 GB, free: 85.08 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.153e-05/1.268, allocations: 74.08 kB / 0.5618 GB, free: 85.01 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004408/1.272, allocations: 1.712 MB / 0.5635 GB, free: 84.32 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004189/1.273, allocations: 52.14 kB / 0.5636 GB, free: 84.27 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001122/1.274, allocations: 1.324 MB / 0.5649 GB, free: 83.19 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000841/1.275, allocations: 0.5103 MB / 0.5654 GB, free: 82.79 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001906/1.275, allocations: 39.31 kB / 0.5654 GB, free: 82.76 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001635/1.275, allocations: 381.8 kB / 0.5658 GB, free: 82.42 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002238/1.277, allocations: 0.8618 MB / 0.5666 GB, free: 82.11 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002746/1.28, allocations: 1.396 MB / 0.568 GB, free: 81.13 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003026/1.283, allocations: 1.094 MB / 0.569 GB, free: 80.75 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.422e-05/1.283, allocations: 7.938 kB / 0.569 GB, free: 80.75 MB / 410.7 MB Notification: Performance of matching and sorting (n=235) (initialization): time 0.00839/1.292, allocations: 2.852 MB / 0.5718 GB, free: 79.82 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.75e-05/1.292, allocations: 15 kB / 0.5718 GB, free: 79.82 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.077e-05/1.292, allocations: 16.47 kB / 0.5719 GB, free: 79.82 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002369/1.294, allocations: 0.5474 MB / 0.5724 GB, free: 79.68 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003308/1.297, allocations: 443.6 kB / 0.5728 GB, free: 79.66 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0108/1.308, allocations: 6.26 MB / 0.5789 GB, free: 75.59 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003068/1.311, allocations: 139.8 kB / 0.5791 GB, free: 75.56 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004813/1.312, allocations: 80.72 kB / 0.5791 GB, free: 75.54 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 (209): * Single equations (assignments): 206 * 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.0005075/1.313, allocations: 217.8 kB / 0.5793 GB, free: 75.35 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007863/1.313, allocations: 208.5 kB / 0.5795 GB, free: 75.24 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007385/1.321, allocations: 2.626 MB / 0.5821 GB, free: 74.24 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.279e-05/1.321, allocations: 14.81 kB / 0.5821 GB, free: 74.24 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.333e-05/1.321, allocations: 10.36 kB / 0.5821 GB, free: 74.24 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.442e-05/1.321, allocations: 9.219 kB / 0.5821 GB, free: 74.24 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01591/1.337, allocations: 5.72 MB / 0.5877 GB, free: 71.95 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.503e-05/1.337, allocations: 3.75 kB / 0.5877 GB, free: 71.95 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002251/1.339, allocations: 254.1 kB / 0.588 GB, free: 71.93 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002661/1.342, allocations: 0.5848 MB / 0.5885 GB, free: 71.77 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003482/1.342, allocations: 34.64 kB / 0.5886 GB, free: 71.75 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01279/1.355, allocations: 7.989 MB / 0.5964 GB, free: 66.2 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.132e-06/1.355, allocations: 3.438 kB / 0.5964 GB, free: 66.2 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009529/1.365, allocations: 4.027 MB / 0.6003 GB, free: 64.29 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001788/1.366, allocations: 487.2 kB / 0.6008 GB, free: 63.98 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005725/1.367, allocations: 36.12 kB / 0.6008 GB, free: 63.96 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002138/1.369, allocations: 103.9 kB / 0.6009 GB, free: 63.94 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003622/1.37, allocations: 112.9 kB / 0.601 GB, free: 63.91 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001545/1.37, allocations: 42.47 kB / 0.6011 GB, free: 63.9 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.003003/1.373, allocations: 1.308 MB / 0.6023 GB, free: 63.36 MB / 410.7 MB Notification: Performance of sort global known variables: time 9.31e-07/1.373, allocations: 4 kB / 0.6023 GB, free: 63.36 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.003385/1.376, allocations: 0.6091 MB / 0.6029 GB, free: 63.09 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 (124): * Single equations (assignments): 121 * 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.01036/1.387, allocations: 5.576 MB / 0.6084 GB, free: 57.95 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.005926/1.393, allocations: 2.582 MB / 0.6109 GB, free: 55.53 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 7.144e-06/1.393, allocations: 0 / 0.6109 GB, free: 55.53 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003601/1.396, allocations: 1.58 MB / 0.6124 GB, free: 54.08 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004349/1.401, allocations: 491.5 kB / 0.6129 GB, free: 53.7 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01581/1.417, allocations: 5.419 MB / 0.6182 GB, free: 48.93 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00271/1.419, allocations: 2.25 MB / 0.6204 GB, free: 47.16 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00279/1.422, allocations: 1.143 MB / 0.6215 GB, free: 46.1 MB / 410.7 MB Notification: Performance of SimCode: time 2.334e-06/1.422, allocations: 3.938 kB / 0.6215 GB, free: 46.1 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.462/5.884, allocations: 90.03 MB / 0.7094 GB, free: 100.3 MB / 426.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Electrical_Machines_Examples_SynchronousInductionMachines_SMPM_VoltageSource_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Electrical_Machines_Examples_SynchronousInductionMachines_SMPM_VoltageSource.fmu > Modelica_3.2.3_cpp_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_cpp_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource_res.mat does not exist to compare? outputFormat=mat