Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource.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_VoltageSource,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_VoltageSource",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_VoltageSource",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.001652/0.001652, allocations: 181.9 kB / 16.39 MB, free: 5.762 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.366/1.366, allocations: 223.2 MB / 240.3 MB, free: 11.87 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000852/0.000852, allocations: 109.9 kB / 291.5 MB, free: 10.89 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002313/0.0002312, allocations: 8 kB / 351.2 MB, free: 15.2 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.245/0.2452, allocations: 50.4 MB / 401.6 MB, free: 32.57 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3487/0.594, allocations: 114.5 MB / 0.504 GB, free: 48.88 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002335/0.5942, allocations: 87.78 kB / 0.5041 GB, free: 48.88 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1463/0.7406, allocations: 60.13 MB / 0.5628 GB, free: 36.01 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.765e-06/0.7406, allocations: 0 / 0.5628 GB, free: 36.01 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0003472/0.741, allocations: 89.06 kB / 0.5629 GB, free: 35.99 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: 775 * Number of variables: 775 Notification: Performance of Generate backend data structure: time 0.009791/0.7508, allocations: 3.369 MB / 0.5662 GB, free: 33.99 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.576e-05/0.7509, allocations: 15.75 kB / 0.5662 GB, free: 33.99 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00179/0.7527, allocations: 424.4 kB / 0.5666 GB, free: 33.86 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002298/0.755, allocations: 417.7 kB / 0.567 GB, free: 33.66 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007089/0.7621, allocations: 2.238 MB / 0.5692 GB, free: 32.67 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003005/0.7625, allocations: 224.7 kB / 0.5694 GB, free: 32.66 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001304/0.7638, allocations: 295.4 kB / 0.5697 GB, free: 32.65 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009866/0.7737, allocations: 3.8 MB / 0.5734 GB, free: 30.36 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001563/0.7739, allocations: 16.19 kB / 0.5734 GB, free: 30.34 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007502/0.7746, allocations: 124 kB / 0.5735 GB, free: 30.22 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001514/0.7748, allocations: 141.7 kB / 0.5737 GB, free: 30.08 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006618/0.7814, allocations: 3.083 MB / 0.5767 GB, free: 26.99 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0211/0.8026, allocations: 12.2 MB / 0.5886 GB, free: 14.43 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002538/0.8051, allocations: 2.106 MB / 0.5907 GB, free: 12.21 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003507/0.8055, allocations: 227.5 kB / 0.5909 GB, free: 11.95 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.534e-05/0.8056, allocations: 47.88 kB / 0.5909 GB, free: 11.89 MB / 378.7 MB Notification: Performance of pre-optimization done (n=141): time 3.286e-06/0.8056, allocations: 0 / 0.5909 GB, free: 11.89 MB / 378.7 MB Notification: Performance of matching and sorting (n=162): time 0.0144/0.82, allocations: 7.844 MB / 0.5986 GB, free: 3.949 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.836e-05/0.8201, allocations: 72.7 kB / 0.5987 GB, free: 3.867 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002791/0.8229, allocations: 1.764 MB / 0.6004 GB, free: 2.07 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001667/0.823, allocations: 53.7 kB / 0.6004 GB, free: 2.012 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006818/0.8237, allocations: 1.444 MB / 0.6018 GB, free: 0.5508 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004048/0.8241, allocations: 0.5624 MB / 0.6024 GB, free: 15.98 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000137/0.8243, allocations: 36 kB / 0.6024 GB, free: 15.94 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.00017/0.8245, allocations: 381.9 kB / 0.6028 GB, free: 15.56 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001521/0.826, allocations: 0.937 MB / 0.6037 GB, free: 14.62 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001925/0.8279, allocations: 1.487 MB / 0.6052 GB, free: 12.9 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002066/0.83, allocations: 1.185 MB / 0.6063 GB, free: 11.72 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.123e-05/0.8301, allocations: 12 kB / 0.6063 GB, free: 11.71 MB / 394.7 MB Notification: Performance of matching and sorting (n=251) (initialization): time 0.00691/0.837, allocations: 3.215 MB / 0.6095 GB, free: 8.473 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.063e-05/0.8371, allocations: 15.12 kB / 0.6095 GB, free: 8.461 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.182e-05/0.8371, allocations: 16 kB / 0.6095 GB, free: 8.445 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001547/0.8387, allocations: 0.542 MB / 0.61 GB, free: 7.895 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002232/0.8409, allocations: 475.2 kB / 0.6105 GB, free: 7.43 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008741/0.8497, allocations: 6.494 MB / 0.6168 GB, free: 0.6719 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002176/0.8519, allocations: 147.7 kB / 0.617 GB, free: 0.5273 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004656/0.8524, allocations: 83.98 kB / 0.617 GB, free: 456 kB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 78 * Number of states: 0 () * Number of discrete variables: 1 (sinCosEvaluation.integrator.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (225): * Single equations (assignments): 222 * 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.002844/0.8553, allocations: 0.9389 MB / 0.618 GB, free: 15.5 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008339/0.8561, allocations: 217.3 kB / 0.6182 GB, free: 15.28 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006238/0.8624, allocations: 2.854 MB / 0.6209 GB, free: 12.41 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.23e-05/0.8624, allocations: 19.95 kB / 0.621 GB, free: 12.39 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.074e-05/0.8625, allocations: 8 kB / 0.621 GB, free: 12.38 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.768e-05/0.8625, allocations: 7.969 kB / 0.621 GB, free: 12.38 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01394/0.8764, allocations: 6.021 MB / 0.6269 GB, free: 6.242 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.282e-05/0.8765, allocations: 7.953 kB / 0.6269 GB, free: 6.234 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001364/0.8779, allocations: 283.5 kB / 0.6271 GB, free: 5.957 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001675/0.8796, allocations: 0.5845 MB / 0.6277 GB, free: 5.363 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001874/0.8798, allocations: 43.97 kB / 0.6278 GB, free: 5.32 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009684/0.8895, allocations: 8.21 MB / 0.6358 GB, free: 12.71 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.061e-06/0.8895, allocations: 7.953 kB / 0.6358 GB, free: 12.7 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007771/0.8973, allocations: 4.295 MB / 0.64 GB, free: 8.277 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001586/0.8989, allocations: 0.4981 MB / 0.6405 GB, free: 7.758 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005892/0.8995, allocations: 39.98 kB / 0.6405 GB, free: 7.719 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001647/0.9012, allocations: 104.2 kB / 0.6406 GB, free: 7.617 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002931/0.9015, allocations: 117.1 kB / 0.6407 GB, free: 7.504 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001247/0.9016, allocations: 43.98 kB / 0.6408 GB, free: 7.461 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.002755/0.9044, allocations: 1.363 MB / 0.6421 GB, free: 6.078 MB / 426.7 MB Notification: Performance of sort global known variables: time 3.21e-07/0.9044, allocations: 0 / 0.6421 GB, free: 6.078 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.0029/0.9073, allocations: 0.6368 MB / 0.6427 GB, free: 5.441 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 7 (smpm.inertiaRotor.w,smpm.idq_sr[1],smpm.idq_sr[2],quadraticSpeedDependentTorque.phi,dqCurrentController.PI_d.x,dqCurrentController.PI_q.x,sinCosEvaluation.integrator.y) * 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 (139): * Single equations (assignments): 136 * 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.007644/0.915, allocations: 5.739 MB / 0.6483 GB, free: 15.6 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.004435/0.9194, allocations: 2.771 MB / 0.651 GB, free: 12.79 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 5.4e-06/0.9195, allocations: 0 / 0.651 GB, free: 12.79 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002529/0.922, allocations: 1.663 MB / 0.6526 GB, free: 11.09 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002435/0.9244, allocations: 0.4933 MB / 0.6531 GB, free: 10.59 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2342/1.159, allocations: 30.27 MB / 0.6827 GB, free: 94.77 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002578/1.161, allocations: 2.328 MB / 0.685 GB, free: 94.02 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.001937/1.163, allocations: 0.5219 MB / 0.6855 GB, free: 94 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001596/1.165, allocations: 1.19 MB / 0.6866 GB, free: 93.99 MB / 442.7 MB Notification: Performance of SimCode: time 7.31e-07/1.165, allocations: 0 / 0.6866 GB, free: 93.99 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08968/1.255, allocations: 57.48 MB / 0.7428 GB, free: 73.17 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001741/1.255, allocations: 242.2 kB / 0.743 GB, free: 72.92 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.614/4.869, allocations: 0 / 0.743 GB, free: 72.92 MB / 442.7 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_VoltageSource_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_VoltageSource.fmu > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource_res.mat does not exist to compare? outputFormat=mat