Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.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.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_CurrentSource",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_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.001319/0.001319, allocations: 176.2 kB / 8.348 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.411/1.411, allocations: 221.5 MB / 230.3 MB, free: 7.551 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.0008402/0.0008402, allocations: 98.16 kB / 281.2 MB, free: 5.305 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.929e-05/1.932e-05, allocations: 0 / 337.2 MB, free: 9.902 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1276/0.1277, allocations: 50.42 MB / 387.6 MB, free: 7.441 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4582/0.5859, allocations: 116.1 MB / 0.4918 GB, free: 10.53 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002972/0.5863, allocations: 97.47 kB / 0.4919 GB, free: 10.44 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4952/1.082, allocations: 74.3 MB / 0.5645 GB, free: 96.8 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.673e-06/1.082, allocations: 0 / 0.5645 GB, free: 96.8 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0002969/1.082, allocations: 96.52 kB / 0.5646 GB, free: 96.79 MB / 426.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 826 * Number of variables: 826 Notification: Performance of Generate backend data structure: time 0.01072/1.093, allocations: 3.145 MB / 0.5677 GB, free: 95.51 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.486e-05/1.093, allocations: 9.406 kB / 0.5677 GB, free: 95.51 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004107/1.097, allocations: 0.586 MB / 0.5682 GB, free: 95.32 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01138/1.108, allocations: 3.11 MB / 0.5713 GB, free: 94.77 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003382/1.109, allocations: 108.3 kB / 0.5714 GB, free: 94.77 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001726/1.11, allocations: 187.3 kB / 0.5716 GB, free: 94.77 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0067/1.117, allocations: 2.87 MB / 0.5744 GB, free: 94.75 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005567/1.123, allocations: 3.463 MB / 0.5777 GB, free: 94.32 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.371e-05/1.123, allocations: 9.438 kB / 0.5777 GB, free: 94.32 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002318/1.123, allocations: 3.906 kB / 0.5778 GB, free: 94.32 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001314/1.123, allocations: 147.6 kB / 0.5779 GB, free: 94.31 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01893/1.142, allocations: 12.82 MB / 0.5904 GB, free: 89.45 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003141/1.145, allocations: 3.892 MB / 0.5942 GB, free: 86.05 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001227/1.147, allocations: 0.9529 MB / 0.5951 GB, free: 85.7 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003808/1.15, allocations: 2.613 MB / 0.5977 GB, free: 84.21 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.738e-05/1.15, allocations: 39.19 kB / 0.5977 GB, free: 84.17 MB / 426.7 MB Notification: Performance of pre-optimization done (n=111): time 3.456e-06/1.15, allocations: 0 / 0.5977 GB, free: 84.17 MB / 426.7 MB Notification: Performance of matching and sorting (n=147): time 0.009828/1.16, allocations: 5.324 MB / 0.6029 GB, free: 81.88 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.188e-05/1.16, allocations: 73.11 kB / 0.603 GB, free: 81.81 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001897/1.162, allocations: 1.368 MB / 0.6043 GB, free: 81.25 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 8.412e-05/1.162, allocations: 29.33 kB / 0.6044 GB, free: 81.22 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007772/1.163, allocations: 1.513 MB / 0.6058 GB, free: 80.06 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003105/1.163, allocations: 490.5 kB / 0.6063 GB, free: 79.68 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.091e-05/1.164, allocations: 0 / 0.6063 GB, free: 79.68 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.00011/1.164, allocations: 378 kB / 0.6067 GB, free: 79.35 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008942/1.165, allocations: 0.7202 MB / 0.6074 GB, free: 79.05 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00121/1.166, allocations: 1.292 MB / 0.6086 GB, free: 78 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00144/1.167, allocations: 1.044 MB / 0.6097 GB, free: 77.58 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.746e-06/1.167, allocations: 3.812 kB / 0.6097 GB, free: 77.58 MB / 426.7 MB Notification: Performance of matching and sorting (n=238) (initialization): time 0.003426/1.171, allocations: 2.313 MB / 0.6119 GB, free: 76.66 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.959e-05/1.171, allocations: 12.84 kB / 0.6119 GB, free: 76.66 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.099e-05/1.171, allocations: 18.09 kB / 0.6119 GB, free: 76.66 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003305/1.171, allocations: 124.3 kB / 0.6121 GB, free: 76.61 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001698/1.173, allocations: 484.7 kB / 0.6125 GB, free: 76.57 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007262/1.174, allocations: 1.263 MB / 0.6138 GB, free: 75.32 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001439/1.175, allocations: 79.28 kB / 0.6138 GB, free: 75.31 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00013/1.175, allocations: 87.86 kB / 0.6139 GB, free: 75.29 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 85 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (235): * Single equations (assignments): 232 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 1 * 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: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002597/1.175, allocations: 171.6 kB / 0.6141 GB, free: 75.13 MB / 426.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.00259/1.178, allocations: 1.747 MB / 0.6158 GB, free: 74.42 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002393/1.178, allocations: 187.2 kB / 0.616 GB, free: 74.32 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002994/1.181, allocations: 1.904 MB / 0.6178 GB, free: 73.54 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.111e-05/1.181, allocations: 15.59 kB / 0.6178 GB, free: 73.54 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.492e-06/1.181, allocations: 4 kB / 0.6178 GB, free: 73.54 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.528e-05/1.181, allocations: 9.938 kB / 0.6179 GB, free: 73.54 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007058/1.188, allocations: 4.59 MB / 0.6223 GB, free: 71.53 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.063e-06/1.188, allocations: 3.594 kB / 0.6223 GB, free: 71.53 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001287/1.19, allocations: 328.4 kB / 0.6227 GB, free: 71.5 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002634/1.19, allocations: 88.14 kB / 0.6227 GB, free: 71.45 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.609e-05/1.19, allocations: 9.609 kB / 0.6227 GB, free: 71.45 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006115/1.191, allocations: 1.23 MB / 0.6239 GB, free: 70.21 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.476e-06/1.191, allocations: 0 / 0.6239 GB, free: 70.21 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003796/1.194, allocations: 3.19 MB / 0.6271 GB, free: 68.61 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008634/1.195, allocations: 455.6 kB / 0.6275 GB, free: 68.3 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002258/1.196, allocations: 0 / 0.6275 GB, free: 68.3 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009132/1.197, allocations: 65.98 kB / 0.6276 GB, free: 68.3 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001449/1.197, allocations: 91.38 kB / 0.6276 GB, free: 68.29 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001144/1.197, allocations: 40.06 kB / 0.6277 GB, free: 68.28 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.001432/1.198, allocations: 1.017 MB / 0.6287 GB, free: 67.85 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.5e-07/1.198, allocations: 3.781 kB / 0.6287 GB, free: 67.85 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.002123/1.2, allocations: 0.5005 MB / 0.6292 GB, free: 67.77 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 2 (smpm.inertiaRotor.w,quadraticSpeedDependentTorque.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (144): * Single equations (assignments): 141 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 1 * 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: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.004702/1.205, allocations: 4.582 MB / 0.6336 GB, free: 63.46 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.002877/1.208, allocations: 2.09 MB / 0.6357 GB, free: 61.45 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 4.95e-06/1.208, allocations: 0 / 0.6357 GB, free: 61.45 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00123/1.209, allocations: 1.149 MB / 0.6368 GB, free: 60.32 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00231/1.212, allocations: 400.9 kB / 0.6372 GB, free: 60.02 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01069/1.222, allocations: 5.073 MB / 0.6421 GB, free: 55.53 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001699/1.224, allocations: 2.319 MB / 0.6444 GB, free: 53.71 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.001817/1.226, allocations: 0.5159 MB / 0.6449 GB, free: 53.36 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001336/1.227, allocations: 1.176 MB / 0.6461 GB, free: 52.27 MB / 426.7 MB Notification: Performance of SimCode: time 1.413e-06/1.227, allocations: 0 / 0.6461 GB, free: 52.27 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07962/1.307, allocations: 43.42 MB / 0.6885 GB, free: 13.05 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001528/1.307, allocations: 202 kB / 0.6887 GB, free: 12.84 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.36/4.667, allocations: 3.938 kB / 0.6887 GB, free: 12.84 MB / 426.7 MB (rm -f Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_CurrentSource_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_CurrentSource.fmu > Modelica_4.0.0_Modelica.Magnetic.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.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource_res.mat does not exist to compare? outputFormat=mat