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.001635/0.001635, allocations: 196.9 kB / 14.16 MB, free: 1.16 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.602/1.602, allocations: 225.4 MB / 240.1 MB, free: 15.06 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001092/0.001093, allocations: 88.58 kB / 292.1 MB, free: 5.957 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 4.825e-05/4.835e-05, allocations: 8.203 kB / 350.7 MB, free: 2.391 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1252/0.1253, allocations: 51.48 MB / 402.2 MB, free: 14.86 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.518/0.6434, allocations: 164.9 MB / 0.5537 GB, free: 5.719 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003297/0.6437, allocations: 102 kB / 0.5538 GB, free: 5.664 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.723/2.367, allocations: 404.6 MB / 0.9489 GB, free: 40.4 MB / 474.7 MB Notification: Performance of FrontEnd: time 1.764e-06/2.367, allocations: 0 / 0.9489 GB, free: 40.4 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.00116/2.368, allocations: 288.6 kB / 0.9492 GB, free: 40.38 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.04542/2.413, allocations: 11.06 MB / 0.96 GB, free: 36.86 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.585e-05/2.413, allocations: 8.438 kB / 0.96 GB, free: 36.86 MB / 474.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.008662/2.422, allocations: 1.733 MB / 0.9617 GB, free: 36.73 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02778/2.45, allocations: 4.485 MB / 0.9661 GB, free: 36.05 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02843/2.478, allocations: 9.564 MB / 0.9754 GB, free: 34.85 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001084/2.479, allocations: 0.9005 MB / 0.9763 GB, free: 34.82 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005319/2.485, allocations: 1.182 MB / 0.9775 GB, free: 34.81 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05441/2.539, allocations: 18.56 MB / 0.9956 GB, free: 33.27 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000682/2.54, allocations: 29.64 kB / 0.9956 GB, free: 33.26 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.005004/2.545, allocations: 0.503 MB / 0.9961 GB, free: 33.26 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001057/2.546, allocations: 0.8229 MB / 0.9969 GB, free: 33.23 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04051/2.587, allocations: 15.5 MB / 1.012 GB, free: 29.76 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1196/2.706, allocations: 61.9 MB / 1.072 GB, free: 7.293 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.3914/3.098, allocations: 33.33 MB / 1.105 GB, free: 40.86 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.007274/3.105, allocations: 3.706 MB / 1.109 GB, free: 40.81 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01884/3.124, allocations: 8.998 MB / 1.117 GB, free: 40.03 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.19e-05/3.124, allocations: 71.69 kB / 1.118 GB, free: 39.98 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=362): time 6.803e-06/3.124, allocations: 0 / 1.118 GB, free: 39.98 MB / 0.4948 GB Notification: Performance of matching and sorting (n=404): time 0.02981/3.154, allocations: 14.01 MB / 1.131 GB, free: 38.14 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.713e-05/3.154, allocations: 92.33 kB / 1.131 GB, free: 38.07 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01225/3.166, allocations: 4.493 MB / 1.136 GB, free: 37.7 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.001171/3.167, allocations: 88.23 kB / 1.136 GB, free: 37.67 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.004742/3.172, allocations: 5.633 MB / 1.141 GB, free: 34.7 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.001813/3.174, allocations: 1.408 MB / 1.143 GB, free: 33.83 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005106/3.175, allocations: 139.5 kB / 1.143 GB, free: 33.83 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0004022/3.175, allocations: 0.5824 MB / 1.143 GB, free: 33.51 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004577/3.18, allocations: 2.846 MB / 1.146 GB, free: 33.5 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007059/3.187, allocations: 5.941 MB / 1.152 GB, free: 29.65 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007627/3.194, allocations: 4.234 MB / 1.156 GB, free: 29.58 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001933/3.195, allocations: 29.81 kB / 1.156 GB, free: 29.58 MB / 0.4948 GB Notification: Performance of matching and sorting (n=896) (initialization): time 0.01957/3.214, allocations: 9.876 MB / 1.166 GB, free: 29.09 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001278/3.214, allocations: 49.84 kB / 1.166 GB, free: 29.09 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002084/3.215, allocations: 105.4 kB / 1.166 GB, free: 29.09 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002536/3.217, allocations: 0.9458 MB / 1.167 GB, free: 29.04 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006414/3.223, allocations: 1.641 MB / 1.168 GB, free: 29.04 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01076/3.234, allocations: 9.388 MB / 1.178 GB, free: 25.04 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008316/3.243, allocations: 425.7 kB / 1.178 GB, free: 25 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001836/3.245, allocations: 372 kB / 1.178 GB, free: 25 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 (846): * Single equations (assignments): 840 * 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,59.4%) 38} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001612/3.246, allocations: 0.5617 MB / 1.179 GB, free: 24.82 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001609/3.248, allocations: 0.5375 MB / 1.179 GB, free: 24.54 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01163/3.259, allocations: 6.483 MB / 1.186 GB, free: 23.87 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.353e-05/3.259, allocations: 40.47 kB / 1.186 GB, free: 23.87 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.965e-05/3.26, allocations: 11.53 kB / 1.186 GB, free: 23.87 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.464e-05/3.26, allocations: 23.5 kB / 1.186 GB, free: 23.87 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04039/3.3, allocations: 15.93 MB / 1.201 GB, free: 17.56 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.488e-05/3.3, allocations: 3.75 kB / 1.201 GB, free: 17.56 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003535/3.304, allocations: 0.7694 MB / 1.202 GB, free: 17.54 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002162/3.306, allocations: 0.7735 MB / 1.203 GB, free: 17.32 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006178/3.306, allocations: 86.05 kB / 1.203 GB, free: 17.27 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008622/3.315, allocations: 8.553 MB / 1.211 GB, free: 11.23 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.981e-06/3.315, allocations: 11.12 kB / 1.211 GB, free: 11.23 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01462/3.33, allocations: 9.915 MB / 1.221 GB, free: 6.531 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003233/3.333, allocations: 1.087 MB / 1.222 GB, free: 5.863 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001099/3.334, allocations: 71.34 kB / 1.222 GB, free: 5.812 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003208/3.337, allocations: 239.1 kB / 1.222 GB, free: 5.754 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006115/3.338, allocations: 273.9 kB / 1.223 GB, free: 5.711 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002824/3.338, allocations: 117.5 kB / 1.223 GB, free: 5.684 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.006388/3.345, allocations: 3.328 MB / 1.226 GB, free: 4.434 MB / 0.4948 GB Notification: Performance of sort global known variables: time 3.41e-07/3.345, allocations: 4.734 kB / 1.226 GB, free: 4.434 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.01154/3.356, allocations: 2.002 MB / 1.228 GB, free: 4.227 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 (384): * Single equations (assignments): 378 * 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%) 38,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01584/3.372, allocations: 11.97 MB / 1.24 GB, free: 13.78 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.01423/3.386, allocations: 7.59 MB / 1.247 GB, free: 6.734 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.282e-05/3.386, allocations: 4 kB / 1.247 GB, free: 6.73 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.006904/3.393, allocations: 3.493 MB / 1.25 GB, free: 3.449 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008545/3.402, allocations: 1.269 MB / 1.252 GB, free: 2.473 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05898/3.461, allocations: 20.73 MB / 1.272 GB, free: 0.8438 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01324/3.474, allocations: 7.632 MB / 1.279 GB, free: 11.18 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 0.007737/3.482, allocations: 2.19 MB / 1.282 GB, free: 9.754 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.008141/3.49, allocations: 4.44 MB / 1.286 GB, free: 5.625 MB / 0.5417 GB Notification: Performance of SimCode: time 1.202e-06/3.49, allocations: 0 / 1.286 GB, free: 5.625 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6582/4.148, allocations: 157.5 MB / 1.44 GB, free: 53.35 MB / 0.5417 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001677/4.149, allocations: 234.1 kB / 1.44 GB, free: 53.04 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.104/11.25, allocations: 2.406 kB / 1.44 GB, free: 53.04 MB / 0.5417 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