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.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.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource,fileNamePrefix="Modelica_4_0_0_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_4_0_0_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 4.0.0+maint.om/package.mo): time 0.0009622/0.000962, allocations: 176.5 kB / 8.345 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.384/1.384, allocations: 221.5 MB / 230.3 MB, free: 7.504 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.0009231/0.000923, allocations: 86.83 kB / 281.2 MB, free: 5.258 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.854e-05/1.854e-05, allocations: 0 / 337.2 MB, free: 9.895 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1158/0.1159, allocations: 50.43 MB / 387.6 MB, free: 7.434 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4809/0.5968, allocations: 163.2 MB / 0.5379 GB, free: 11.29 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003064/0.5971, allocations: 107.9 kB / 0.538 GB, free: 11.18 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.7/2.297, allocations: 381.9 MB / 0.911 GB, free: 44.1 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.425e-06/2.297, allocations: 0 / 0.911 GB, free: 44.1 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.001154/2.299, allocations: 295.5 kB / 0.9112 GB, free: 44.07 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: 3414 * Number of variables: 3414 Notification: Performance of Generate backend data structure: time 0.0399/2.339, allocations: 11.01 MB / 0.922 GB, free: 40.56 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.399e-05/2.339, allocations: 14.69 kB / 0.922 GB, free: 40.56 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02558/2.364, allocations: 4.474 MB / 0.9264 GB, free: 39.88 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02586/2.39, allocations: 9.537 MB / 0.9357 GB, free: 38.68 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007925/2.391, allocations: 397.8 kB / 0.9361 GB, free: 38.68 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005402/2.396, allocations: 0.7001 MB / 0.9367 GB, free: 38.67 MB / 458.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.03499/2.431, allocations: 14.15 MB / 0.9506 GB, free: 38.62 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05325/2.485, allocations: 16.67 MB / 0.9668 GB, free: 36.88 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0007585/2.486, allocations: 29.8 kB / 0.9669 GB, free: 36.87 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.005055/2.491, allocations: 7.75 kB / 0.9669 GB, free: 36.87 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0009911/2.492, allocations: 0.8294 MB / 0.9677 GB, free: 36.7 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1245/2.616, allocations: 59.72 MB / 1.026 GB, free: 14.52 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.427/3.043, allocations: 32.78 MB / 1.058 GB, free: 44.71 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.007736/3.051, allocations: 3.913 MB / 1.062 GB, free: 44.65 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01716/3.068, allocations: 9.018 MB / 1.071 GB, free: 44.02 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.46e-05/3.068, allocations: 77.28 kB / 1.071 GB, free: 43.98 MB / 490.7 MB Notification: Performance of pre-optimization done (n=364): time 6.512e-06/3.068, allocations: 1.406 kB / 1.071 GB, free: 43.98 MB / 490.7 MB Notification: Performance of matching and sorting (n=408): time 0.03384/3.102, allocations: 16.07 MB / 1.086 GB, free: 42.15 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.061e-05/3.102, allocations: 97.97 kB / 1.087 GB, free: 42.08 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00783/3.11, allocations: 3.933 MB / 1.09 GB, free: 41.73 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001157/3.111, allocations: 25.7 kB / 1.09 GB, free: 41.7 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003684/3.115, allocations: 5.622 MB / 1.096 GB, free: 38.68 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001722/3.117, allocations: 1.362 MB / 1.097 GB, free: 37.81 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003729/3.117, allocations: 0 / 1.097 GB, free: 37.81 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0003281/3.118, allocations: 0.5847 MB / 1.098 GB, free: 37.49 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003543/3.121, allocations: 2.863 MB / 1.101 GB, free: 37.48 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004656/3.126, allocations: 5.917 MB / 1.106 GB, free: 33.64 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008344/3.134, allocations: 4.909 MB / 1.111 GB, free: 33.59 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001664/3.134, allocations: 29.78 kB / 1.111 GB, free: 33.59 MB / 490.7 MB Notification: Performance of matching and sorting (n=900) (initialization): time 0.02073/3.155, allocations: 10.06 MB / 1.121 GB, free: 33.12 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001093/3.155, allocations: 50.91 kB / 1.121 GB, free: 33.12 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002056/3.155, allocations: 107.6 kB / 1.121 GB, free: 33.12 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002665/3.158, allocations: 1.021 MB / 1.122 GB, free: 33.08 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006725/3.165, allocations: 1.655 MB / 1.124 GB, free: 33.08 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0117/3.177, allocations: 9.922 MB / 1.133 GB, free: 29.24 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007224/3.184, allocations: 322.4 kB / 1.134 GB, free: 29.21 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001769/3.186, allocations: 370.3 kB / 1.134 GB, free: 29.21 MB / 490.7 MB 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.001524/3.187, allocations: 375.5 kB / 1.134 GB, free: 29.04 MB / 490.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.01205/3.199, allocations: 6.408 MB / 1.141 GB, free: 28.34 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001884/3.201, allocations: 0.5093 MB / 1.141 GB, free: 28.08 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01574/3.217, allocations: 7.132 MB / 1.148 GB, free: 25.46 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.324e-05/3.217, allocations: 40.06 kB / 1.148 GB, free: 25.46 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.683e-05/3.217, allocations: 9.75 kB / 1.148 GB, free: 25.46 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.325e-05/3.217, allocations: 22.12 kB / 1.148 GB, free: 25.46 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03912/3.256, allocations: 15.16 MB / 1.163 GB, free: 19.53 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.616e-05/3.256, allocations: 6.969 kB / 1.163 GB, free: 19.52 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003461/3.26, allocations: 0.7874 MB / 1.164 GB, free: 19.5 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002196/3.262, allocations: 0.8583 MB / 1.165 GB, free: 19.27 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004126/3.262, allocations: 32.28 kB / 1.165 GB, free: 19.26 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009323/3.272, allocations: 9.079 MB / 1.174 GB, free: 13.06 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.556e-06/3.272, allocations: 4.969 kB / 1.174 GB, free: 13.06 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01607/3.288, allocations: 10.82 MB / 1.184 GB, free: 8.102 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003372/3.291, allocations: 1.094 MB / 1.185 GB, free: 7.438 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001541/3.293, allocations: 17.81 kB / 1.185 GB, free: 7.434 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00394/3.297, allocations: 208.7 kB / 1.185 GB, free: 7.434 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007699/3.298, allocations: 275.8 kB / 1.186 GB, free: 7.266 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002965/3.298, allocations: 118.4 kB / 1.186 GB, free: 7.156 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.005386/3.303, allocations: 2.847 MB / 1.189 GB, free: 4.668 MB / 490.7 MB Notification: Performance of sort global known variables: time 9.42e-07/3.303, allocations: 0 / 1.189 GB, free: 4.668 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.01035/3.314, allocations: 1.771 MB / 1.19 GB, free: 2.91 MB / 490.7 MB 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,64.1%) 46,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.02626/3.34, allocations: 13.11 MB / 1.203 GB, free: 8.695 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.01512/3.355, allocations: 7.594 MB / 1.211 GB, free: 1.723 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 1.144e-05/3.355, allocations: 0 / 1.211 GB, free: 1.723 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.008503/3.364, allocations: 3.767 MB / 1.214 GB, free: 14.69 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007931/3.372, allocations: 1.067 MB / 1.215 GB, free: 13.88 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05808/3.43, allocations: 20.27 MB / 1.235 GB, free: 12.29 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01584/3.446, allocations: 7.633 MB / 1.242 GB, free: 6.602 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 0.008233/3.454, allocations: 2.173 MB / 1.245 GB, free: 5.191 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.007974/3.462, allocations: 4.442 MB / 1.249 GB, free: 1.055 MB / 0.5261 GB Notification: Performance of SimCode: time 1.322e-06/3.462, allocations: 0 / 1.249 GB, free: 1.055 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5448/4.007, allocations: 144.1 MB / 1.39 GB, free: 54.59 MB / 0.5261 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001812/4.007, allocations: 204.9 kB / 1.39 GB, free: 54.3 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.95/10.96, allocations: 4 kB / 1.39 GB, free: 54.3 MB / 0.5261 GB (rm -f Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_CurrentSource_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_CurrentSource.fmu > Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_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.SMPM_CurrentSource_res.mat does not exist to compare? outputFormat=mat