Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_CurrentSource",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_CurrentSource",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001905/0.001905, allocations: 202.8 kB / 8.768 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.627/1.627, allocations: 225.6 MB / 234.8 MB, free: 3.305 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001076/0.001076, allocations: 95.78 kB / 286.7 MB, free: 5.273 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.477e-05/3.481e-05, allocations: 3.984 kB / 343.8 MB, free: 8.168 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1175/0.1175, allocations: 51.48 MB / 395.3 MB, free: 4.648 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4788/0.5964, allocations: 164.2 MB / 0.5464 GB, free: 9.988 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000372/0.5969, allocations: 100.6 kB / 0.5465 GB, free: 9.934 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.654/2.251, allocations: 400.3 MB / 0.9374 GB, free: 41.18 MB / 474.7 MB Notification: Performance of FrontEnd: time 3.687e-06/2.251, allocations: 3.469 kB / 0.9374 GB, free: 41.18 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.00176/2.253, allocations: 292.3 kB / 0.9377 GB, free: 41.14 MB / 474.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3414 * Number of variables: 3414 Notification: Performance of Generate backend data structure: time 0.04723/2.3, allocations: 11.05 MB / 0.9485 GB, free: 37.63 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.866e-05/2.3, allocations: 9.719 kB / 0.9485 GB, free: 37.63 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02889/2.329, allocations: 4.468 MB / 0.9528 GB, free: 36.95 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03026/2.359, allocations: 9.557 MB / 0.9622 GB, free: 35.74 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001604/2.361, allocations: 398.5 kB / 0.9625 GB, free: 35.74 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.007538/2.368, allocations: 0.7027 MB / 0.9632 GB, free: 35.73 MB / 474.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.03924/2.408, allocations: 14.15 MB / 0.977 GB, free: 35.68 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.06058/2.468, allocations: 16.67 MB / 0.9933 GB, free: 34.19 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0009647/2.469, allocations: 28.16 kB / 0.9934 GB, free: 34.18 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.005885/2.475, allocations: 7.625 kB / 0.9934 GB, free: 34.18 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001189/2.476, allocations: 0.8245 MB / 0.9942 GB, free: 34.16 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1289/2.605, allocations: 60.57 MB / 1.053 GB, free: 6.676 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02969/2.635, allocations: 33.12 MB / 1.086 GB, free: 7.723 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.008401/2.644, allocations: 3.948 MB / 1.09 GB, free: 4.805 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.4088/3.052, allocations: 9.223 MB / 1.099 GB, free: 72.81 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.2e-05/3.053, allocations: 70.11 kB / 1.099 GB, free: 72.77 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=364): time 5.641e-06/3.053, allocations: 1.969 kB / 1.099 GB, free: 72.77 MB / 0.4948 GB Notification: Performance of matching and sorting (n=408): time 0.04707/3.1, allocations: 17.12 MB / 1.115 GB, free: 71.17 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.887e-05/3.1, allocations: 92.08 kB / 1.115 GB, free: 71.11 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01168/3.111, allocations: 3.941 MB / 1.119 GB, free: 70.75 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.001247/3.113, allocations: 26.45 kB / 1.119 GB, free: 70.72 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.004859/3.118, allocations: 5.634 MB / 1.125 GB, free: 67.84 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.002347/3.12, allocations: 1.36 MB / 1.126 GB, free: 66.96 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005855/3.121, allocations: 0 / 1.126 GB, free: 66.96 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0004906/3.121, allocations: 0.5872 MB / 1.127 GB, free: 66.65 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005915/3.127, allocations: 2.859 MB / 1.129 GB, free: 66.63 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007739/3.135, allocations: 5.916 MB / 1.135 GB, free: 62.8 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01271/3.148, allocations: 5.277 MB / 1.14 GB, free: 62.74 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002766/3.148, allocations: 30.69 kB / 1.14 GB, free: 62.74 MB / 0.4948 GB Notification: Performance of matching and sorting (n=900) (initialization): time 0.03134/3.179, allocations: 10.44 MB / 1.151 GB, free: 62.28 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.0004183/3.18, allocations: 47.78 kB / 1.151 GB, free: 62.28 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003806/3.18, allocations: 105.2 kB / 1.151 GB, free: 62.28 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002873/3.183, allocations: 1.024 MB / 1.152 GB, free: 62.23 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007085/3.19, allocations: 1.654 MB / 1.153 GB, free: 62.23 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01208/3.202, allocations: 9.914 MB / 1.163 GB, free: 58.39 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008758/3.211, allocations: 324.2 kB / 1.163 GB, free: 58.36 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002007/3.213, allocations: 367.4 kB / 1.164 GB, free: 58.36 MB / 0.4948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 480 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (842): * Single equations (assignments): 836 * 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 prepare postOptimizeDAE: time 0.001866/3.215, allocations: 376 kB / 1.164 GB, free: 58.19 MB / 0.4948 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.01567/3.231, allocations: 6.756 MB / 1.171 GB, free: 57.73 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001838/3.233, allocations: 0.5053 MB / 1.171 GB, free: 57.46 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01717/3.25, allocations: 7.453 MB / 1.178 GB, free: 57.14 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.238e-05/3.25, allocations: 46.84 kB / 1.178 GB, free: 57.14 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.852e-05/3.25, allocations: 9.656 kB / 1.179 GB, free: 57.14 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.02e-05/3.25, allocations: 20.16 kB / 1.179 GB, free: 57.14 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0406/3.29, allocations: 15.48 MB / 1.194 GB, free: 54.56 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.161e-05/3.291, allocations: 8.734 kB / 1.194 GB, free: 54.56 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004/3.295, allocations: 0.7902 MB / 1.194 GB, free: 54.53 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002584/3.297, allocations: 0.8595 MB / 1.195 GB, free: 54.3 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008929/3.298, allocations: 30.98 kB / 1.195 GB, free: 54.3 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01/3.308, allocations: 9.089 MB / 1.204 GB, free: 48.1 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.516e-06/3.308, allocations: 3.906 kB / 1.204 GB, free: 48.1 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0199/3.328, allocations: 11.14 MB / 1.215 GB, free: 43.13 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003538/3.332, allocations: 1.095 MB / 1.216 GB, free: 42.47 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001774/3.333, allocations: 3.656 kB / 1.216 GB, free: 42.47 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004241/3.338, allocations: 213.2 kB / 1.216 GB, free: 42.46 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000917/3.339, allocations: 280.5 kB / 1.217 GB, free: 42.42 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003464/3.339, allocations: 116.8 kB / 1.217 GB, free: 42.39 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.005955/3.345, allocations: 2.847 MB / 1.219 GB, free: 41.26 MB / 0.4948 GB Notification: Performance of sort global known variables: time 9.02e-07/3.345, allocations: 0 / 1.219 GB, free: 41.26 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.01164/3.357, allocations: 1.783 MB / 1.221 GB, free: 41.23 MB / 0.4948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 17 * 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 (378): * Single equations (assignments): 372 * 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 Backend phase and start with SimCode phase: time 0.02353/3.38, allocations: 13 MB / 1.234 GB, free: 30.25 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.01403/3.394, allocations: 7.599 MB / 1.241 GB, free: 23.39 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 9.357e-06/3.394, allocations: 0 / 1.241 GB, free: 23.39 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.006708/3.401, allocations: 3.637 MB / 1.245 GB, free: 20.02 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008761/3.41, allocations: 1.077 MB / 1.246 GB, free: 19.2 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06626/3.476, allocations: 20.42 MB / 1.266 GB, free: 1.461 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.02443/3.501, allocations: 8.012 MB / 1.274 GB, free: 12.77 MB / 0.5105 GB Notification: Performance of simCode: alias equations: time 0.01016/3.511, allocations: 2.176 MB / 1.276 GB, free: 11.36 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.3975/3.908, allocations: 4.964 MB / 1.281 GB, free: 73.2 MB / 0.5105 GB Notification: Performance of SimCode: time 1.012e-06/3.908, allocations: 2.688 kB / 1.281 GB, free: 73.2 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2681/4.176, allocations: 144.5 MB / 1.422 GB, free: 29.23 MB / 0.5105 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002316/4.177, allocations: 204.8 kB / 1.422 GB, free: 28.95 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.729/11.91, allocations: 2.812 kB / 1.422 GB, free: 28.95 MB / 0.5105 GB (rm -f Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource_res.mat --tempDir=temp_Modelica_trunk_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_CurrentSource_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_CurrentSource.fmu > Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource_res.mat does not exist to compare? outputFormat=mat