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_NoLoad.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_NoLoad,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_Machines_Examples_SynchronousInductionMachines_SMPM_NoLoad",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_NoLoad,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_Machines_Examples_SynchronousInductionMachines_SMPM_NoLoad",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.001524/0.001524, allocations: 181.7 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.065/2.065, allocations: 205.2 MB / 219.4 MB, free: 14.28 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.001132/0.001131, allocations: 90.64 kB / 267.5 MB, free: 14.11 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.052e-05/3.063e-05, allocations: 4 kB / 321.6 MB, free: 17.75 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09325/0.09332, allocations: 47.56 MB / 369.2 MB, free: 2.117 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4468/0.5402, allocations: 105 MB / 474.1 MB, free: 4.602 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003148/0.5406, allocations: 82.08 kB / 474.2 MB, free: 4.562 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1867/0.7273, allocations: 39.54 MB / 0.5017 GB, free: 14.29 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.164e-06/0.7274, allocations: 0 / 0.5017 GB, free: 14.29 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0002093/0.7276, allocations: 43.98 kB / 0.5018 GB, free: 14.25 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 401 * Number of variables: 401 Notification: Performance of Generate backend data structure: time 0.006364/0.734, allocations: 1.76 MB / 0.5035 GB, free: 12.44 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.778e-05/0.734, allocations: 12.02 kB / 0.5035 GB, free: 12.43 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000893/0.7349, allocations: 224.1 kB / 0.5037 GB, free: 12.2 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001379/0.7363, allocations: 233.4 kB / 0.5039 GB, free: 11.96 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004606/0.741, allocations: 1.27 MB / 0.5052 GB, free: 10.64 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001874/0.7412, allocations: 119 kB / 0.5053 GB, free: 10.52 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006708/0.7419, allocations: 156 kB / 0.5054 GB, free: 10.37 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006162/0.7481, allocations: 1.948 MB / 0.5073 GB, free: 8.336 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001005/0.7483, allocations: 11.89 kB / 0.5073 GB, free: 8.324 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000288/0.7486, allocations: 72 kB / 0.5074 GB, free: 8.254 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001355/0.7487, allocations: 66.92 kB / 0.5075 GB, free: 8.188 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005338/0.7541, allocations: 1.542 MB / 0.509 GB, free: 6.641 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01875/0.7729, allocations: 6.867 MB / 0.5157 GB, free: 15.47 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001396/0.7743, allocations: 484.8 kB / 0.5162 GB, free: 14.99 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007461/0.7751, allocations: 279.5 kB / 0.5164 GB, free: 14.71 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004757/0.7799, allocations: 1.466 MB / 0.5179 GB, free: 13.2 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.263e-05/0.78, allocations: 38.56 kB / 0.5179 GB, free: 13.15 MB / 410.7 MB Notification: Performance of pre-optimization done (n=38): time 4.569e-06/0.78, allocations: 0 / 0.5179 GB, free: 13.15 MB / 410.7 MB Notification: Performance of matching and sorting (n=54): time 0.01128/0.7913, allocations: 2.828 MB / 0.5207 GB, free: 10.26 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.003855/0.7952, allocations: 2.166 MB / 0.5228 GB, free: 7.922 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003747/0.799, allocations: 1.376 MB / 0.5241 GB, free: 6.539 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001561/0.7992, allocations: 37.7 kB / 0.5241 GB, free: 6.496 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00114/0.8004, allocations: 1.004 MB / 0.5251 GB, free: 5.48 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003644/0.8008, allocations: 209.2 kB / 0.5253 GB, free: 5.273 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001453/0.8009, allocations: 32 kB / 0.5254 GB, free: 5.242 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0002298/0.8012, allocations: 378.7 kB / 0.5257 GB, free: 4.863 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001411/0.8026, allocations: 499.8 kB / 0.5262 GB, free: 4.375 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002267/0.8049, allocations: 1.383 MB / 0.5275 GB, free: 2.535 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002096/0.807, allocations: 0.7703 MB / 0.5283 GB, free: 1.766 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.719e-05/0.8071, allocations: 8 kB / 0.5283 GB, free: 1.758 MB / 410.7 MB Notification: Performance of matching and sorting (n=199) (initialization): time 0.3071/1.114, allocations: 1.965 MB / 0.5302 GB, free: 106.5 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.488e-05/1.114, allocations: 19.41 kB / 0.5302 GB, free: 106.5 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.527e-05/1.114, allocations: 32.59 kB / 0.5303 GB, free: 106.5 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001079/1.115, allocations: 231.1 kB / 0.5305 GB, free: 106.5 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002522/1.118, allocations: 375.4 kB / 0.5309 GB, free: 106.5 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002466/1.121, allocations: 1.741 MB / 0.5326 GB, free: 105.2 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002507/1.123, allocations: 125 kB / 0.5327 GB, free: 105.2 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003534/1.124, allocations: 96.19 kB / 0.5328 GB, free: 105.2 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 148 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (195): * Single equations (assignments): 192 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003651/1.124, allocations: 224.7 kB / 0.533 GB, free: 105.1 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004595/1.124, allocations: 147.7 kB / 0.5331 GB, free: 105.1 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003225/1.128, allocations: 1.037 MB / 0.5341 GB, free: 105.1 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.8e-05/1.128, allocations: 9.031 kB / 0.5341 GB, free: 105.1 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.933e-06/1.128, allocations: 0.7031 kB / 0.5341 GB, free: 105.1 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.774e-05/1.128, allocations: 3.797 kB / 0.5341 GB, free: 105.1 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009603/1.137, allocations: 3.089 MB / 0.5372 GB, free: 104.6 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.388e-05/1.137, allocations: 4.578 kB / 0.5372 GB, free: 104.6 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008486/1.138, allocations: 96.47 kB / 0.5373 GB, free: 104.6 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001164/1.139, allocations: 225.5 kB / 0.5375 GB, free: 104.5 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001178/1.14, allocations: 15.8 kB / 0.5375 GB, free: 104.5 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005315/1.145, allocations: 3.727 MB / 0.5411 GB, free: 101.9 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.002857/1.148, allocations: 2.007 MB / 0.5431 GB, free: 100.5 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004152/1.152, allocations: 1.801 MB / 0.5448 GB, free: 99.91 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00117/1.153, allocations: 301.9 kB / 0.5451 GB, free: 99.73 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005095/1.154, allocations: 12.27 kB / 0.5451 GB, free: 99.73 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001507/1.155, allocations: 52.61 kB / 0.5452 GB, free: 99.73 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002866/1.156, allocations: 52.66 kB / 0.5452 GB, free: 99.73 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.217e-05/1.156, allocations: 20.14 kB / 0.5453 GB, free: 99.73 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.003048/1.159, allocations: 1.019 MB / 0.5463 GB, free: 99.61 MB / 410.7 MB Notification: Performance of sort global known variables: time 8.41e-07/1.159, allocations: 0 / 0.5463 GB, free: 99.61 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.002873/1.162, allocations: 402 kB / 0.5466 GB, free: 99.61 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 14 * Number of states: 1 ($STATESET1.x) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (49): * Single equations (assignments): 46 * 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: 1 {(2,100.0%) 1} * Non-linear torn systems: 1 {3 4} Notification: Performance of Backend phase and start with SimCode phase: time 0.00708/1.169, allocations: 3.447 MB / 0.55 GB, free: 97.64 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.006858/1.176, allocations: 1.523 MB / 0.5515 GB, free: 97.33 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.31e-05/1.176, allocations: 1 kB / 0.5515 GB, free: 97.33 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003423/1.179, allocations: 0.7935 MB / 0.5523 GB, free: 97 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004844/1.184, allocations: 375.6 kB / 0.5526 GB, free: 96.98 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01327/1.198, allocations: 2.848 MB / 0.5554 GB, free: 96.13 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002395/1.2, allocations: 1.493 MB / 0.5569 GB, free: 95.42 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002085/1.202, allocations: 0.6262 MB / 0.5575 GB, free: 95.42 MB / 410.7 MB Notification: Performance of SimCode: time 2.405e-06/1.202, allocations: 0 / 0.5575 GB, free: 95.42 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.639/4.841, allocations: 53.48 MB / 0.6097 GB, free: 67.35 MB / 410.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_NoLoad.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_NoLoad.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_NoLoad.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_NoLoad.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_NoLoad_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Electrical_Machines_Examples_SynchronousInductionMachines_SMPM_NoLoad_fmu --startTime=0 --stopTime=0.04 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Electrical_Machines_Examples_SynchronousInductionMachines_SMPM_NoLoad.fmu > Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_NoLoad.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_NoLoad_res.mat does not exist to compare? outputFormat=mat