Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_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.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMR_CurrentSource",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMR_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.0009607/0.0009608, allocations: 177.1 kB / 8.35 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.49/1.49, allocations: 221.5 MB / 230.3 MB, free: 7.527 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.00103/0.00103, allocations: 98.94 kB / 281.2 MB, free: 5.285 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.869e-05/1.888e-05, allocations: 4 kB / 337.2 MB, free: 9.906 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1074/0.1074, allocations: 50.42 MB / 387.6 MB, free: 7.449 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4442/0.5517, allocations: 156.4 MB / 0.5313 GB, free: 2.117 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000313/0.552, allocations: 103.9 kB / 0.5314 GB, free: 2.016 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.692/2.244, allocations: 370.9 MB / 0.8936 GB, free: 40.27 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.545e-06/2.244, allocations: 1.062 kB / 0.8936 GB, free: 40.27 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.002126/2.246, allocations: 287.4 kB / 0.8939 GB, free: 40.24 MB / 458.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3329 * Number of variables: 3329 Notification: Performance of Generate backend data structure: time 0.05001/2.296, allocations: 10.73 MB / 0.9043 GB, free: 36.84 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.293e-05/2.296, allocations: 8.406 kB / 0.9044 GB, free: 36.84 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02696/2.323, allocations: 4.399 MB / 0.9086 GB, free: 36.18 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02844/2.352, allocations: 9.317 MB / 0.9177 GB, free: 35.02 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009467/2.353, allocations: 389.5 kB / 0.9181 GB, free: 35.01 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.006054/2.359, allocations: 0.6846 MB / 0.9188 GB, free: 35 MB / 458.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.03551/2.394, allocations: 13.91 MB / 0.9324 GB, free: 34.95 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.06056/2.455, allocations: 16.37 MB / 0.9484 GB, free: 33.53 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0008942/2.456, allocations: 26.66 kB / 0.9484 GB, free: 33.52 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.005435/2.461, allocations: 10.56 kB / 0.9484 GB, free: 33.52 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00113/2.462, allocations: 0.8072 MB / 0.9492 GB, free: 33.49 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1329/2.595, allocations: 57.89 MB / 1.006 GB, free: 9.18 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03489/2.63, allocations: 32.48 MB / 1.037 GB, free: 7.902 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.01152/2.642, allocations: 3.851 MB / 1.041 GB, free: 4.457 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.4609/3.103, allocations: 8.794 MB / 1.05 GB, free: 70.29 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.519e-05/3.103, allocations: 70.86 kB / 1.05 GB, free: 70.24 MB / 490.7 MB Notification: Performance of pre-optimization done (n=352): time 7.334e-06/3.103, allocations: 0.75 kB / 1.05 GB, free: 70.24 MB / 490.7 MB Notification: Performance of matching and sorting (n=394): time 0.0433/3.146, allocations: 15.56 MB / 1.065 GB, free: 68.68 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.512e-05/3.146, allocations: 95.47 kB / 1.065 GB, free: 68.61 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008909/3.155, allocations: 3.776 MB / 1.069 GB, free: 68.27 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001036/3.156, allocations: 31.61 kB / 1.069 GB, free: 68.23 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003936/3.16, allocations: 5.461 MB / 1.074 GB, free: 65.41 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00219/3.163, allocations: 1.315 MB / 1.075 GB, free: 64.57 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005309/3.163, allocations: 0 / 1.075 GB, free: 64.57 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0004239/3.164, allocations: 0.5795 MB / 1.076 GB, free: 64.25 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00384/3.167, allocations: 2.802 MB / 1.079 GB, free: 64.23 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00556/3.173, allocations: 5.795 MB / 1.084 GB, free: 60.48 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008304/3.181, allocations: 4.792 MB / 1.089 GB, free: 60.43 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001395/3.182, allocations: 32.44 kB / 1.089 GB, free: 60.43 MB / 490.7 MB Notification: Performance of matching and sorting (n=876) (initialization): time 0.01982/3.201, allocations: 9.82 MB / 1.099 GB, free: 59.97 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001218/3.202, allocations: 49.12 kB / 1.099 GB, free: 59.97 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002159/3.202, allocations: 100.8 kB / 1.099 GB, free: 59.97 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002588/3.204, allocations: 1.031 MB / 1.1 GB, free: 59.93 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006712/3.211, allocations: 1.607 MB / 1.101 GB, free: 59.93 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01158/3.223, allocations: 9.909 MB / 1.111 GB, free: 56.09 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007173/3.23, allocations: 317.6 kB / 1.111 GB, free: 56.05 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002245/3.232, allocations: 359.3 kB / 1.112 GB, free: 56.05 MB / 490.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 470 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (818): * Single equations (assignments): 812 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 3 * 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: 3 {(1,100.0%) 1,(8,62.5%) 46,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.00287/3.235, allocations: 365.2 kB / 1.112 GB, free: 55.89 MB / 490.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.01606/3.251, allocations: 6.247 MB / 1.118 GB, free: 55.44 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00202/3.253, allocations: 492 kB / 1.119 GB, free: 55.18 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0154/3.269, allocations: 6.958 MB / 1.125 GB, free: 54.88 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.17e-05/3.269, allocations: 46.72 kB / 1.126 GB, free: 54.88 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.873e-05/3.269, allocations: 13.81 kB / 1.126 GB, free: 54.88 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.611e-05/3.269, allocations: 20.2 kB / 1.126 GB, free: 54.88 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04251/3.311, allocations: 14.68 MB / 1.14 GB, free: 53.89 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.242e-05/3.312, allocations: 2.938 kB / 1.14 GB, free: 53.89 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003915/3.315, allocations: 0.7633 MB / 1.141 GB, free: 53.87 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002569/3.318, allocations: 0.8442 MB / 1.141 GB, free: 53.64 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007949/3.319, allocations: 32.38 kB / 1.141 GB, free: 53.64 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01097/3.33, allocations: 9.073 MB / 1.15 GB, free: 47.44 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.586e-06/3.33, allocations: 10.34 kB / 1.15 GB, free: 47.43 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01932/3.349, allocations: 10.43 MB / 1.161 GB, free: 42.76 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003583/3.353, allocations: 1.05 MB / 1.162 GB, free: 42.13 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001884/3.355, allocations: 7.594 kB / 1.162 GB, free: 42.13 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003972/3.359, allocations: 199.2 kB / 1.162 GB, free: 42.13 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008465/3.36, allocations: 271.6 kB / 1.162 GB, free: 42.09 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000515/3.36, allocations: 113.8 kB / 1.162 GB, free: 42.06 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.007254/3.367, allocations: 2.725 MB / 1.165 GB, free: 40.97 MB / 490.7 MB Notification: Performance of sort global known variables: time 6.41e-07/3.367, allocations: 0 / 1.165 GB, free: 40.97 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.01359/3.381, allocations: 1.709 MB / 1.166 GB, free: 40.82 MB / 490.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 13 * Number of states: 4 (inertiaLoad.w,quadraticSpeedDependentTorque.phi,inertiaLoadQS.w,quadraticSpeedDependentTorqueQS.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (362): * Single equations (assignments): 356 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 3 * 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: 3 {(1,100.0%) 1,(1,100.0%) 1,(8,62.5%) 46} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.02189/3.403, allocations: 12.02 MB / 1.178 GB, free: 30.13 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.01318/3.416, allocations: 7.467 MB / 1.186 GB, free: 23.55 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.126e-05/3.416, allocations: 0 / 1.186 GB, free: 23.55 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.006086/3.422, allocations: 3.561 MB / 1.189 GB, free: 20.3 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007429/3.43, allocations: 0.9808 MB / 1.19 GB, free: 19.55 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06402/3.494, allocations: 19.86 MB / 1.209 GB, free: 2.34 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01817/3.512, allocations: 7.576 MB / 1.217 GB, free: 12.83 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 0.01057/3.523, allocations: 2.138 MB / 1.219 GB, free: 11.45 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01081/3.534, allocations: 4.317 MB / 1.223 GB, free: 7.531 MB / 0.4948 GB Notification: Performance of SimCode: time 1.222e-06/3.534, allocations: 336 / 1.223 GB, free: 7.531 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6156/4.149, allocations: 138.9 MB / 1.359 GB, free: 26.66 MB / 0.4948 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002554/4.15, allocations: 211.8 kB / 1.359 GB, free: 26.38 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.382/10.53, allocations: 3.938 kB / 1.359 GB, free: 26.37 MB / 0.4948 GB (rm -f Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMR_CurrentSource_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMR_CurrentSource.fmu > Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource_res.mat does not exist to compare? outputFormat=mat