Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_CurrentSource",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_CurrentSource",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009211/0.0009211, allocations: 176.2 kB / 8.348 MB, free: 0.7266 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.352/1.352, allocations: 221.5 MB / 230.3 MB, free: 7.562 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008946/0.0008944, allocations: 92.52 kB / 281.2 MB, free: 5.309 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.232e-05/2.204e-05, allocations: 4 kB / 337.2 MB, free: 9.906 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1402/0.1402, allocations: 50.42 MB / 387.6 MB, free: 7.445 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5209/0.6612, allocations: 109.5 MB / 497.1 MB, free: 1.188 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003007/0.6615, allocations: 83.95 kB / 497.2 MB, free: 1.105 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.183/0.8445, allocations: 52.49 MB / 0.5368 GB, free: 12.3 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.723e-06/0.8445, allocations: 0 / 0.5368 GB, free: 12.3 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0002326/0.8448, allocations: 75.92 kB / 0.5368 GB, free: 12.23 MB / 426.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 659 * Number of variables: 659 Notification: Performance of Generate backend data structure: time 0.00741/0.8522, allocations: 2.601 MB / 0.5394 GB, free: 9.57 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.674e-05/0.8523, allocations: 12.02 kB / 0.5394 GB, free: 9.559 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00143/0.8537, allocations: 352 kB / 0.5397 GB, free: 9.211 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005268/0.859, allocations: 1.908 MB / 0.5416 GB, free: 7.246 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001395/0.8592, allocations: 84 kB / 0.5417 GB, free: 7.164 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004891/0.8597, allocations: 147.9 kB / 0.5418 GB, free: 7.02 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.006158/0.8658, allocations: 2.353 MB / 0.5441 GB, free: 4.66 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007084/0.873, allocations: 2.817 MB / 0.5469 GB, free: 1.699 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.769e-05/0.8731, allocations: 11.84 kB / 0.5469 GB, free: 1.688 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002773/0.8734, allocations: 7.953 kB / 0.5469 GB, free: 1.68 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001814/0.8736, allocations: 124.9 kB / 0.547 GB, free: 1.555 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3039/1.177, allocations: 9.961 MB / 0.5567 GB, free: 100.5 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001914/1.179, allocations: 1.409 MB / 0.5581 GB, free: 100.2 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00104/1.18, allocations: 0.7384 MB / 0.5588 GB, free: 100.1 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003129/1.181, allocations: 226.1 kB / 0.559 GB, free: 99.95 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.331e-05/1.181, allocations: 42.44 kB / 0.5591 GB, free: 99.91 MB / 426.7 MB Notification: Performance of pre-optimization done (n=108): time 2.785e-06/1.181, allocations: 3.281 kB / 0.5591 GB, free: 99.91 MB / 426.7 MB Notification: Performance of matching and sorting (n=138): time 0.01022/1.191, allocations: 5.167 MB / 0.5641 GB, free: 99.12 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.916e-05/1.191, allocations: 71.55 kB / 0.5642 GB, free: 99.05 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001981/1.193, allocations: 1.294 MB / 0.5655 GB, free: 98.89 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 8.888e-05/1.193, allocations: 25.7 kB / 0.5655 GB, free: 98.86 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000752/1.194, allocations: 1.269 MB / 0.5667 GB, free: 98.42 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000342/1.194, allocations: 460.8 kB / 0.5672 GB, free: 98.16 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.98e-05/1.194, allocations: 1.125 kB / 0.5672 GB, free: 98.16 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.000123/1.195, allocations: 374.9 kB / 0.5675 GB, free: 97.85 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001093/1.196, allocations: 0.7634 MB / 0.5683 GB, free: 97.85 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001246/1.197, allocations: 1.265 MB / 0.5695 GB, free: 97.26 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00133/1.198, allocations: 0.9875 MB / 0.5705 GB, free: 97.25 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.107e-05/1.198, allocations: 4.719 kB / 0.5705 GB, free: 97.25 MB / 426.7 MB Notification: Performance of matching and sorting (n=217) (initialization): time 0.003732/1.202, allocations: 2.35 MB / 0.5728 GB, free: 97.06 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.965e-05/1.202, allocations: 13.09 kB / 0.5728 GB, free: 97.06 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.222e-05/1.202, allocations: 14.69 kB / 0.5728 GB, free: 97.06 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005429/1.203, allocations: 238.6 kB / 0.573 GB, free: 97.03 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001477/1.204, allocations: 447.9 kB / 0.5734 GB, free: 97.03 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001769/1.206, allocations: 2.892 MB / 0.5763 GB, free: 94.64 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00159/1.207, allocations: 99.5 kB / 0.5764 GB, free: 94.63 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001359/1.208, allocations: 73 kB / 0.5764 GB, free: 94.63 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 73 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (212): * Single equations (assignments): 208 * 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.0002691/1.208, allocations: 156.2 kB / 0.5766 GB, free: 94.52 MB / 426.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.002627/1.211, allocations: 1.868 MB / 0.5784 GB, free: 94.1 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002361/1.211, allocations: 173.8 kB / 0.5786 GB, free: 94.01 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002996/1.214, allocations: 2.032 MB / 0.5806 GB, free: 93.23 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.028e-05/1.214, allocations: 15.72 kB / 0.5806 GB, free: 93.23 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.481e-06/1.214, allocations: 3.562 kB / 0.5806 GB, free: 93.23 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.343e-05/1.214, allocations: 7.734 kB / 0.5806 GB, free: 93.23 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00615/1.22, allocations: 4.51 MB / 0.585 GB, free: 91.43 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.402e-06/1.22, allocations: 0 / 0.585 GB, free: 91.43 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001124/1.221, allocations: 304.4 kB / 0.5853 GB, free: 91.42 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004529/1.222, allocations: 200.9 kB / 0.5855 GB, free: 91.35 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.33e-05/1.222, allocations: 7.812 kB / 0.5855 GB, free: 91.35 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00159/1.223, allocations: 2.858 MB / 0.5883 GB, free: 88.76 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.198e-06/1.223, allocations: 9.859 kB / 0.5883 GB, free: 88.75 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003542/1.227, allocations: 3.341 MB / 0.5915 GB, free: 87.18 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006846/1.228, allocations: 442.4 kB / 0.592 GB, free: 86.9 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002092/1.228, allocations: 3.281 kB / 0.592 GB, free: 86.9 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008809/1.229, allocations: 87.59 kB / 0.592 GB, free: 86.9 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001298/1.229, allocations: 85.58 kB / 0.5921 GB, free: 86.89 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.683e-05/1.229, allocations: 42.66 kB / 0.5922 GB, free: 86.88 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.001107/1.23, allocations: 0.9618 MB / 0.5931 GB, free: 86.48 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.51e-07/1.23, allocations: 0 / 0.5931 GB, free: 86.48 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.001567/1.232, allocations: 460.2 kB / 0.5935 GB, free: 86.48 MB / 426.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 (134): * Single equations (assignments): 130 * 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.003971/1.236, allocations: 4.779 MB / 0.5982 GB, free: 83.78 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.002747/1.238, allocations: 2.321 MB / 0.6005 GB, free: 82.71 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 4.158e-06/1.238, allocations: 0 / 0.6005 GB, free: 82.71 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001379/1.24, allocations: 1.355 MB / 0.6018 GB, free: 81.97 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001867/1.242, allocations: 379.8 kB / 0.6022 GB, free: 81.88 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006721/1.248, allocations: 4.523 MB / 0.6066 GB, free: 80.09 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001237/1.25, allocations: 2.072 MB / 0.6086 GB, free: 79.12 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.001322/1.251, allocations: 0.5219 MB / 0.6091 GB, free: 79.08 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001008/1.252, allocations: 0.9937 MB / 0.6101 GB, free: 78.27 MB / 426.7 MB Notification: Performance of SimCode: time 4.81e-07/1.252, allocations: 0 / 0.6101 GB, free: 78.27 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09453/1.347, allocations: 40.53 MB / 0.6497 GB, free: 51.46 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002335/1.347, allocations: 178.3 kB / 0.6498 GB, free: 51.27 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.021/4.368, allocations: 4 kB / 0.6498 GB, free: 51.26 MB / 426.7 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_CurrentSource_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_CurrentSource.fmu > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource_res.mat does not exist to compare? outputFormat=mat