Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource.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_CurrentSource,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Machines_Examples_SynchronousInductionMachines_SMPM_CurrentSource",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Machines_Examples_SynchronousInductionMachines_SMPM_CurrentSource",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.001125/0.001125, allocations: 180 kB / 17.01 MB, free: 5.125 MB / 13.93 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.4 MB / 223.1 MB, free: 9.109 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.0008962/0.0008962, allocations: 88.17 kB / 271.5 MB, free: 8.355 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002402/0.0002401, allocations: 8 kB / 328.4 MB, free: 15.42 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2429/0.2432, allocations: 47.56 MB / 375.9 MB, free: 45.63 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1222/0.3654, allocations: 110 MB / 485.9 MB, free: 2.582 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002878/0.3658, allocations: 87.95 kB / 486 MB, free: 2.496 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2941/0.6599, allocations: 52.95 MB / 0.5263 GB, free: 90.88 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.262e-06/0.6599, allocations: 0 / 0.5263 GB, free: 90.88 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001568/0.6601, allocations: 78.61 kB / 0.5264 GB, free: 90.81 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 660 * Number of variables: 660 Notification: Performance of Generate backend data structure: time 0.004724/0.6648, allocations: 2.904 MB / 0.5292 GB, free: 87.84 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.857e-05/0.6649, allocations: 8.031 kB / 0.5292 GB, free: 87.84 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004116/0.6653, allocations: 369.9 kB / 0.5296 GB, free: 87.47 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006699/0.666, allocations: 348.1 kB / 0.5299 GB, free: 87.12 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003014/0.669, allocations: 1.925 MB / 0.5318 GB, free: 85.17 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.674e-05/0.6691, allocations: 195.6 kB / 0.532 GB, free: 84.98 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002799/0.6694, allocations: 250.6 kB / 0.5322 GB, free: 84.74 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004079/0.6735, allocations: 3.242 MB / 0.5354 GB, free: 81.35 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.594e-05/0.6736, allocations: 11.84 kB / 0.5354 GB, free: 81.34 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002093/0.6738, allocations: 104 kB / 0.5355 GB, free: 81.24 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.148e-05/0.6739, allocations: 124.9 kB / 0.5356 GB, free: 81.11 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003439/0.6773, allocations: 2.592 MB / 0.5382 GB, free: 78.51 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01235/0.6897, allocations: 10.48 MB / 0.5484 GB, free: 67.76 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001601/0.6913, allocations: 1.45 MB / 0.5498 GB, free: 66.24 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002815/0.6916, allocations: 217.3 kB / 0.55 GB, free: 65.99 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.346e-05/0.6917, allocations: 47.56 kB / 0.5501 GB, free: 65.94 MB / 378.7 MB Notification: Performance of pre-optimization done (n=103): time 2.846e-06/0.6917, allocations: 0 / 0.5501 GB, free: 65.94 MB / 378.7 MB Notification: Performance of matching and sorting (n=131): time 0.01288/0.7046, allocations: 7.171 MB / 0.5571 GB, free: 58.67 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.492e-05/0.7047, allocations: 64.72 kB / 0.5571 GB, free: 58.59 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002035/0.7067, allocations: 1.55 MB / 0.5586 GB, free: 57.05 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 8.931e-05/0.7068, allocations: 53.69 kB / 0.5587 GB, free: 56.99 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005842/0.7074, allocations: 1.26 MB / 0.5599 GB, free: 55.71 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000264/0.7077, allocations: 457.3 kB / 0.5604 GB, free: 55.27 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.908e-05/0.7078, allocations: 32 kB / 0.5604 GB, free: 55.24 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001012/0.7079, allocations: 377.8 kB / 0.5608 GB, free: 54.87 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009465/0.7088, allocations: 0.8042 MB / 0.5615 GB, free: 54.06 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001201/0.71, allocations: 1.323 MB / 0.5628 GB, free: 52.52 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001161/0.7112, allocations: 1.025 MB / 0.5638 GB, free: 51.49 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.271e-06/0.7112, allocations: 4 kB / 0.5638 GB, free: 51.48 MB / 378.7 MB Notification: Performance of matching and sorting (n=211) (initialization): time 0.003307/0.7145, allocations: 2.552 MB / 0.5663 GB, free: 48.91 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.82e-05/0.7146, allocations: 20.06 kB / 0.5663 GB, free: 48.89 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.753e-05/0.7146, allocations: 16 kB / 0.5664 GB, free: 48.88 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005425/0.7151, allocations: 239.2 kB / 0.5666 GB, free: 48.63 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001395/0.7165, allocations: 447.2 kB / 0.567 GB, free: 48.19 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001892/0.7185, allocations: 3.037 MB / 0.57 GB, free: 44.88 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001461/0.7199, allocations: 127.8 kB / 0.5701 GB, free: 44.76 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001178/0.7201, allocations: 79.98 kB / 0.5702 GB, free: 44.68 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 74 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (206): * Single equations (assignments): 202 * 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: 2 * 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: 2 {(2,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001457/0.7215, allocations: 0.8258 MB / 0.571 GB, free: 43.84 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002862/0.7218, allocations: 189.7 kB / 0.5712 GB, free: 43.66 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002767/0.7246, allocations: 2.141 MB / 0.5733 GB, free: 41.49 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.787e-06/0.7246, allocations: 19.98 kB / 0.5733 GB, free: 41.47 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.599e-06/0.7246, allocations: 0 / 0.5733 GB, free: 41.47 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.889e-06/0.7246, allocations: 3.984 kB / 0.5733 GB, free: 41.46 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006413/0.731, allocations: 4.887 MB / 0.5781 GB, free: 36.51 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.703e-06/0.7311, allocations: 3.984 kB / 0.5781 GB, free: 36.5 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001086/0.7322, allocations: 291.5 kB / 0.5783 GB, free: 36.22 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004583/0.7326, allocations: 203.3 kB / 0.5785 GB, free: 36.01 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.751e-05/0.7327, allocations: 24.06 kB / 0.5786 GB, free: 35.98 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001684/0.7344, allocations: 3.013 MB / 0.5815 GB, free: 32.71 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.926e-06/0.7344, allocations: 4.031 kB / 0.5815 GB, free: 32.71 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003756/0.7382, allocations: 3.444 MB / 0.5849 GB, free: 29.16 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001002/0.7392, allocations: 442.6 kB / 0.5853 GB, free: 28.7 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002001/0.7394, allocations: 24 kB / 0.5853 GB, free: 28.68 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009309/0.7404, allocations: 111.9 kB / 0.5854 GB, free: 28.57 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001612/0.7405, allocations: 80.83 kB / 0.5855 GB, free: 28.49 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.235e-05/0.7406, allocations: 39.98 kB / 0.5855 GB, free: 28.45 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001648/0.7423, allocations: 1.181 MB / 0.5867 GB, free: 27.28 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.7e-07/0.7423, allocations: 4 kB / 0.5867 GB, free: 27.27 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001633/0.7439, allocations: 0.5351 MB / 0.5872 GB, free: 26.74 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 2 (smpm.inertiaRotor.w,quadraticSpeedDependentTorque.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (129): * Single equations (assignments): 125 * 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: 2 * 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: 2 {(2,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.004317/0.7483, allocations: 4.876 MB / 0.592 GB, free: 21.81 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.002956/0.7512, allocations: 2.425 MB / 0.5943 GB, free: 19.32 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.88e-06/0.7512, allocations: 0 / 0.5943 GB, free: 19.32 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001436/0.7527, allocations: 1.395 MB / 0.5957 GB, free: 17.86 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001905/0.7546, allocations: 450.7 kB / 0.5961 GB, free: 17.42 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02475/0.7794, allocations: 26.4 MB / 0.6219 GB, free: 5.875 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001872/0.7813, allocations: 2.073 MB / 0.6239 GB, free: 3.766 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.001595/0.7829, allocations: 0.516 MB / 0.6244 GB, free: 3.246 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001274/0.7842, allocations: 0.9991 MB / 0.6254 GB, free: 2.246 MB / 394.7 MB Notification: Performance of SimCode: time 2.575e-06/0.7842, allocations: 4 kB / 0.6254 GB, free: 2.242 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2417/1.026, allocations: 47.49 MB / 0.6718 GB, free: 105.1 MB / 410.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001505/1.026, allocations: 235.4 kB / 0.672 GB, free: 104.8 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.2/4.227, allocations: 0 / 0.672 GB, free: 104.8 MB / 410.7 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Machines_Examples_SynchronousInductionMachines_SMPM_CurrentSource_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Machines_Examples_SynchronousInductionMachines_SMPM_CurrentSource.fmu > Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource_res.mat does not exist to compare? outputFormat=mat