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.00122/0.00122, allocations: 173 kB / 14.1 MB, free: 1.223 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.397/1.397, allocations: 205.2 MB / 219.8 MB, free: 14.26 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.0008232/0.0008233, allocations: 90.73 kB / 268 MB, free: 14.1 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.901e-05/2.904e-05, allocations: 3.938 kB / 322.6 MB, free: 17.25 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07818/0.07823, allocations: 47.57 MB / 370.1 MB, free: 1.609 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3989/0.4771, allocations: 109.9 MB / 480 MB, free: 15.8 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003554/0.4775, allocations: 84.2 kB / 480.1 MB, free: 15.76 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1475/0.6251, allocations: 53.02 MB / 0.5206 GB, free: 11.41 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.394e-06/0.6251, allocations: 0 / 0.5206 GB, free: 11.41 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0001935/0.6253, allocations: 75.88 kB / 0.5207 GB, free: 11.34 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: 660 * Number of variables: 660 Notification: Performance of Generate backend data structure: time 0.005651/0.631, allocations: 2.589 MB / 0.5232 GB, free: 8.691 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.662e-05/0.631, allocations: 8.031 kB / 0.5232 GB, free: 8.684 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005135/0.6316, allocations: 366.8 kB / 0.5236 GB, free: 8.316 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000926/0.6325, allocations: 348.1 kB / 0.5239 GB, free: 7.973 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003736/0.6362, allocations: 1.904 MB / 0.5258 GB, free: 6.012 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001551/0.6364, allocations: 189 kB / 0.526 GB, free: 5.824 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003917/0.6368, allocations: 248.2 kB / 0.5262 GB, free: 5.582 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005548/0.6424, allocations: 3.209 MB / 0.5293 GB, free: 2.223 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.918e-05/0.6424, allocations: 7.906 kB / 0.5293 GB, free: 2.215 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002326/0.6427, allocations: 104 kB / 0.5294 GB, free: 2.113 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001477/0.6428, allocations: 124.9 kB / 0.5296 GB, free: 1.988 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.2403/0.8832, allocations: 2.519 MB / 0.532 GB, free: 96.88 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02004/0.9033, allocations: 10.48 MB / 0.5423 GB, free: 94.27 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002022/0.9053, allocations: 1.41 MB / 0.5436 GB, free: 93.94 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001168/0.9065, allocations: 0.7502 MB / 0.5444 GB, free: 93.93 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003644/0.9069, allocations: 220.2 kB / 0.5446 GB, free: 93.74 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.76e-05/0.9069, allocations: 45.72 kB / 0.5446 GB, free: 93.7 MB / 410.7 MB Notification: Performance of pre-optimization done (n=103): time 4.048e-06/0.9069, allocations: 0 / 0.5446 GB, free: 93.7 MB / 410.7 MB Notification: Performance of matching and sorting (n=131): time 0.01471/0.9217, allocations: 6.152 MB / 0.5506 GB, free: 92.91 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.894e-05/0.9218, allocations: 68.19 kB / 0.5507 GB, free: 92.84 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002915/0.9247, allocations: 1.535 MB / 0.5522 GB, free: 92.67 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001936/0.9249, allocations: 47.98 kB / 0.5522 GB, free: 92.64 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008301/0.9257, allocations: 1.269 MB / 0.5535 GB, free: 92.16 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000383/0.9261, allocations: 454.9 kB / 0.5539 GB, free: 91.88 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.979e-05/0.9262, allocations: 30.88 kB / 0.5539 GB, free: 91.88 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001203/0.9263, allocations: 379.3 kB / 0.5543 GB, free: 91.57 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001013/0.9274, allocations: 0.778 MB / 0.5551 GB, free: 91.56 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001191/0.9286, allocations: 1.286 MB / 0.5563 GB, free: 90.96 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001182/0.9297, allocations: 1 MB / 0.5573 GB, free: 90.82 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.001e-05/0.9298, allocations: 7.719 kB / 0.5573 GB, free: 90.82 MB / 410.7 MB Notification: Performance of matching and sorting (n=211) (initialization): time 0.003527/0.9333, allocations: 2.485 MB / 0.5597 GB, free: 89.96 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.924e-05/0.9333, allocations: 14.27 kB / 0.5597 GB, free: 89.96 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.291e-05/0.9334, allocations: 19.53 kB / 0.5598 GB, free: 89.96 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000568/0.934, allocations: 241.7 kB / 0.56 GB, free: 89.89 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001455/0.9354, allocations: 440.5 kB / 0.5604 GB, free: 89.88 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002019/0.9375, allocations: 3.004 MB / 0.5634 GB, free: 87.15 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001897/0.9394, allocations: 129.5 kB / 0.5635 GB, free: 87.12 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001579/0.9395, allocations: 78.25 kB / 0.5635 GB, free: 87.11 MB / 410.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 () * 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.0003205/0.9399, allocations: 207.2 kB / 0.5637 GB, free: 86.95 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004348/0.9403, allocations: 188.1 kB / 0.5639 GB, free: 86.85 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003251/0.9436, allocations: 2.099 MB / 0.566 GB, free: 86.02 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.203e-05/0.9436, allocations: 17.34 kB / 0.566 GB, free: 86.02 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.542e-06/0.9436, allocations: 0 / 0.566 GB, free: 86.02 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.592e-05/0.9436, allocations: 10.72 kB / 0.566 GB, free: 86.02 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008237/0.9519, allocations: 4.83 MB / 0.5707 GB, free: 84.07 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.038e-05/0.9519, allocations: 3.594 kB / 0.5707 GB, free: 84.07 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001147/0.9531, allocations: 287.6 kB / 0.571 GB, free: 84.07 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005152/0.9536, allocations: 200.1 kB / 0.5712 GB, free: 84 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.977e-05/0.9537, allocations: 27.73 kB / 0.5712 GB, free: 83.98 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002154/0.9559, allocations: 2.965 MB / 0.5741 GB, free: 81.27 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.476e-06/0.9559, allocations: 6.25 kB / 0.5741 GB, free: 81.27 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004515/0.9605, allocations: 3.352 MB / 0.5774 GB, free: 79.68 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001206/0.9617, allocations: 446 kB / 0.5778 GB, free: 79.39 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005507/0.9622, allocations: 29 kB / 0.5778 GB, free: 79.37 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001301/0.9635, allocations: 94.34 kB / 0.5779 GB, free: 79.36 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001862/0.9637, allocations: 91.58 kB / 0.578 GB, free: 79.34 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.4e-05/0.9638, allocations: 38.3 kB / 0.5781 GB, free: 79.33 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.002234/0.9661, allocations: 1.167 MB / 0.5792 GB, free: 78.88 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.9661, allocations: 0 / 0.5792 GB, free: 78.88 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.002401/0.9685, allocations: 0.525 MB / 0.5797 GB, free: 78.82 MB / 410.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 () * 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.005172/0.9737, allocations: 4.797 MB / 0.5844 GB, free: 76.08 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.003699/0.9774, allocations: 2.37 MB / 0.5867 GB, free: 74.99 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 7.234e-06/0.9775, allocations: 4.062 kB / 0.5867 GB, free: 74.99 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001634/0.9791, allocations: 1.358 MB / 0.588 GB, free: 74.23 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002725/0.9818, allocations: 460.3 kB / 0.5885 GB, free: 74.09 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01117/0.993, allocations: 4.615 MB / 0.593 GB, free: 72.21 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001941/0.995, allocations: 2.072 MB / 0.595 GB, free: 71.24 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.001936/0.997, allocations: 0.5135 MB / 0.5955 GB, free: 71.2 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001413/0.9984, allocations: 1.003 MB / 0.5965 GB, free: 70.39 MB / 410.7 MB Notification: Performance of SimCode: time 9.91e-07/0.9984, allocations: 0 / 0.5965 GB, free: 70.39 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08269/1.081, allocations: 47.84 MB / 0.6432 GB, free: 32.97 MB / 410.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001424/1.081, allocations: 213.1 kB / 0.6434 GB, free: 32.75 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.2/4.281, allocations: 0 / 0.6434 GB, free: 32.75 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