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"}) [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001953/0.001953, allocations: 182.6 kB / 8.132 MB, free: 2.219 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.197/1.197, allocations: 221.4 MB / 229.9 MB, free: 3.316 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.0009434/0.0009434, allocations: 94.3 kB / 280.8 MB, free: 1.281 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.09333/0.0943, allocations: 55.84 MB / 336.6 MB, free: 9.414 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1676/0.262, allocations: 50.39 MB / 387 MB, free: 38.08 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1183/0.3804, allocations: 116 MB / 0.4912 GB, free: 2.707 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002431/0.3806, allocations: 95.89 kB / 0.4913 GB, free: 2.613 MB / 378.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.2964/0.677, allocations: 77.3 MB / 0.5668 GB, free: 43.43 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.467e-05/0.6771, allocations: 12 kB / 0.5668 GB, free: 43.42 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002949/0.68, allocations: 0.6006 MB / 0.5674 GB, free: 42.81 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00704/0.6871, allocations: 3.103 MB / 0.5704 GB, free: 39.65 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001104/0.6872, allocations: 108 kB / 0.5705 GB, free: 39.55 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005595/0.6878, allocations: 191.9 kB / 0.5707 GB, free: 39.36 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.005113/0.6929, allocations: 2.906 MB / 0.5736 GB, free: 36.45 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005945/0.6989, allocations: 3.498 MB / 0.577 GB, free: 32.81 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.583e-05/0.699, allocations: 3.938 kB / 0.577 GB, free: 32.81 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002996/0.6993, allocations: 4 kB / 0.577 GB, free: 32.8 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001045/0.6994, allocations: 150.2 kB / 0.5771 GB, free: 32.66 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01685/0.7163, allocations: 12.85 MB / 0.5897 GB, free: 19.37 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001107/0.7174, allocations: 0.9038 MB / 0.5906 GB, free: 18.46 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001411/0.7188, allocations: 1.008 MB / 0.5915 GB, free: 17.45 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004044/0.7229, allocations: 2.698 MB / 0.5942 GB, free: 14.66 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.226e-05/0.7229, allocations: 43.56 kB / 0.5942 GB, free: 14.61 MB / 378.7 MB Notification: Performance of pre-optimization done (n=123): time 3.657e-06/0.723, allocations: 0 / 0.5942 GB, free: 14.61 MB / 378.7 MB Notification: Performance of matching and sorting (n=159): time 0.01063/0.7336, allocations: 5.349 MB / 0.5994 GB, free: 9.191 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.253e-05/0.7336, allocations: 68.72 kB / 0.5995 GB, free: 9.113 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002073/0.7357, allocations: 1.387 MB / 0.6009 GB, free: 7.727 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001161/0.7359, allocations: 25.7 kB / 0.6009 GB, free: 7.695 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004994/0.7364, allocations: 1.238 MB / 0.6021 GB, free: 6.434 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003125/0.7367, allocations: 0.5119 MB / 0.6026 GB, free: 5.914 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.548e-05/0.7368, allocations: 0 / 0.6026 GB, free: 5.914 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 9.396e-05/0.7369, allocations: 381.9 kB / 0.603 GB, free: 5.535 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001033/0.7379, allocations: 0.7693 MB / 0.6037 GB, free: 4.766 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00121/0.7392, allocations: 1.357 MB / 0.605 GB, free: 3.145 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001563/0.7407, allocations: 1.049 MB / 0.6061 GB, free: 2.098 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.005e-05/0.7407, allocations: 4 kB / 0.6061 GB, free: 2.094 MB / 378.7 MB Notification: Performance of matching and sorting (n=250) (initialization): time 0.003773/0.7445, allocations: 2.385 MB / 0.6084 GB, free: 15.68 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.451e-05/0.7446, allocations: 4 kB / 0.6084 GB, free: 15.68 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.698e-05/0.7446, allocations: 20 kB / 0.6084 GB, free: 15.66 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003815/0.745, allocations: 114.9 kB / 0.6085 GB, free: 15.54 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002192/0.7472, allocations: 0.4914 MB / 0.609 GB, free: 15.04 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001065/0.7483, allocations: 1.259 MB / 0.6102 GB, free: 13.67 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001556/0.7498, allocations: 63.84 kB / 0.6103 GB, free: 13.61 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001768/0.75, allocations: 88.11 kB / 0.6104 GB, free: 13.52 MB / 394.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 (247): * Single equations (assignments): 244 * 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.0003051/0.7503, allocations: 164.2 kB / 0.6105 GB, free: 13.35 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000379/0.7507, allocations: 193.7 kB / 0.6107 GB, free: 13.16 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003749/0.7545, allocations: 1.99 MB / 0.6127 GB, free: 11.15 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.58e-05/0.7545, allocations: 12 kB / 0.6127 GB, free: 11.14 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.17e-05/0.7545, allocations: 7.906 kB / 0.6127 GB, free: 11.13 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.689e-05/0.7546, allocations: 11.97 kB / 0.6127 GB, free: 11.12 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008667/0.7632, allocations: 4.881 MB / 0.6175 GB, free: 6.137 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.162e-06/0.7633, allocations: 0 / 0.6175 GB, free: 6.137 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001666/0.7649, allocations: 323.5 kB / 0.6178 GB, free: 5.82 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003353/0.7653, allocations: 106.5 kB / 0.6179 GB, free: 5.707 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001059/0.7654, allocations: 4 kB / 0.6179 GB, free: 5.703 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009795/0.7664, allocations: 1.228 MB / 0.6191 GB, free: 4.344 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.246e-06/0.7664, allocations: 0 / 0.6191 GB, free: 4.344 MB / 394.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.005163/0.7716, allocations: 3.343 MB / 0.6223 GB, free: 0.8984 MB / 394.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.006534/0.7781, allocations: 4.93 MB / 0.6272 GB, free: 11.86 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009641/0.7791, allocations: 462.6 kB / 0.6276 GB, free: 11.39 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003782/0.7795, allocations: 15.84 kB / 0.6276 GB, free: 11.37 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001217/0.7807, allocations: 48 kB / 0.6277 GB, free: 11.32 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001818/0.7809, allocations: 81.19 kB / 0.6277 GB, free: 11.25 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001217/0.781, allocations: 39.98 kB / 0.6278 GB, free: 11.21 MB / 410.7 MB Notification: Performance of sort global known variables: time 0.002035/0.7831, allocations: 1.031 MB / 0.6288 GB, free: 10.18 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.002623/0.7857, allocations: 0.539 MB / 0.6293 GB, free: 9.645 MB / 410.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 (156): * Single equations (assignments): 153 * 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.000682/0.7864, allocations: 448.6 kB / 0.6297 GB, free: 9.203 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.003436/0.7899, allocations: 2.214 MB / 0.6319 GB, free: 6.934 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 5.17e-06/0.7899, allocations: 7.938 kB / 0.6319 GB, free: 6.926 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001673/0.7916, allocations: 1.21 MB / 0.6331 GB, free: 5.668 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001944/0.7935, allocations: 371 kB / 0.6334 GB, free: 5.309 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009934/0.8035, allocations: 4.475 MB / 0.6378 GB, free: 0.7539 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003211/0.8067, allocations: 2.478 MB / 0.6402 GB, free: 14.25 MB / 426.7 MB Notification: Performance of SimCode: time 8.41e-07/0.8067, allocations: 4 kB / 0.6402 GB, free: 14.24 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