Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMPM_CurrentSource",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_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 3.2.3+maint.om/package.mo): time 0.001089/0.001088, allocations: 183.7 kB / 8.479 MB, free: 1.875 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.281/1.281, allocations: 205.2 MB / 214.1 MB, free: 1.875 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009023/0.0009022, allocations: 87.38 kB / 262.1 MB, free: 1.824 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.143/0.144, allocations: 52.98 MB / 315.1 MB, free: 22.93 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07003/0.214, allocations: 47.58 MB / 362.7 MB, free: 7.289 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2473/0.4613, allocations: 115.2 MB / 477.9 MB, free: 13.1 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002947/0.4617, allocations: 85.33 kB / 478 MB, free: 13.06 MB / 362.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.3338/0.7955, allocations: 76.97 MB / 0.5419 GB, free: 89.18 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.766e-05/0.7956, allocations: 9.75 kB / 0.5419 GB, free: 89.18 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003391/0.799, allocations: 0.5891 MB / 0.5425 GB, free: 88.99 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007204/0.8062, allocations: 3.123 MB / 0.5456 GB, free: 88.46 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000149/0.8064, allocations: 103 kB / 0.5457 GB, free: 88.46 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007906/0.8072, allocations: 179.7 kB / 0.5458 GB, free: 88.46 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.005431/0.8127, allocations: 2.918 MB / 0.5487 GB, free: 88.44 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005256/0.8179, allocations: 3.509 MB / 0.5521 GB, free: 88.02 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.128e-05/0.818, allocations: 6.438 kB / 0.5521 GB, free: 88.02 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002641/0.8183, allocations: 3.5 kB / 0.5521 GB, free: 88.02 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001149/0.8184, allocations: 150.5 kB / 0.5523 GB, free: 88.01 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01682/0.8353, allocations: 12.85 MB / 0.5648 GB, free: 84.55 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001071/0.8364, allocations: 0.9016 MB / 0.5657 GB, free: 84.53 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001346/0.8377, allocations: 0.9949 MB / 0.5667 GB, free: 84.5 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004024/0.8418, allocations: 2.699 MB / 0.5693 GB, free: 83.85 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.114e-05/0.8418, allocations: 43.5 kB / 0.5693 GB, free: 83.81 MB / 410.7 MB Notification: Performance of pre-optimization done (n=123): time 3.617e-06/0.8418, allocations: 0 / 0.5693 GB, free: 83.81 MB / 410.7 MB Notification: Performance of matching and sorting (n=159): time 0.01026/0.8521, allocations: 5.361 MB / 0.5746 GB, free: 81.52 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.482e-05/0.8521, allocations: 72.16 kB / 0.5746 GB, free: 81.45 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001815/0.854, allocations: 1.38 MB / 0.576 GB, free: 80.89 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 9.524e-05/0.8541, allocations: 29.58 kB / 0.576 GB, free: 80.86 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004422/0.8545, allocations: 1.235 MB / 0.5772 GB, free: 79.96 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003016/0.8548, allocations: 0.5101 MB / 0.5777 GB, free: 79.55 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.175e-05/0.8549, allocations: 0 / 0.5777 GB, free: 79.55 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001054/0.855, allocations: 379.5 kB / 0.5781 GB, free: 79.22 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001019/0.8561, allocations: 0.774 MB / 0.5788 GB, free: 78.9 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001197/0.8573, allocations: 1.357 MB / 0.5802 GB, free: 77.82 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001489/0.8588, allocations: 1.055 MB / 0.5812 GB, free: 77.4 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.143e-06/0.8588, allocations: 3.656 kB / 0.5812 GB, free: 77.4 MB / 410.7 MB Notification: Performance of matching and sorting (n=250) (initialization): time 0.003472/0.8623, allocations: 2.378 MB / 0.5835 GB, free: 76.55 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.267e-05/0.8623, allocations: 7.906 kB / 0.5835 GB, free: 76.55 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.958e-05/0.8623, allocations: 16.31 kB / 0.5835 GB, free: 76.55 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003353/0.8627, allocations: 126.8 kB / 0.5837 GB, free: 76.5 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002058/0.8647, allocations: 0.4913 MB / 0.5841 GB, free: 76.48 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000741/0.8655, allocations: 1.263 MB / 0.5854 GB, free: 75.25 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001461/0.867, allocations: 61.73 kB / 0.5854 GB, free: 75.25 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001391/0.8671, allocations: 90.41 kB / 0.5855 GB, free: 75.23 MB / 410.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.0002678/0.8674, allocations: 156.7 kB / 0.5857 GB, free: 75.11 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002489/0.8676, allocations: 191.9 kB / 0.5859 GB, free: 75.01 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003148/0.8708, allocations: 2 MB / 0.5878 GB, free: 74.21 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.029e-05/0.8708, allocations: 15.66 kB / 0.5878 GB, free: 74.21 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.962e-06/0.8708, allocations: 0 / 0.5878 GB, free: 74.21 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.484e-05/0.8709, allocations: 10.12 kB / 0.5878 GB, free: 74.21 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007207/0.8781, allocations: 4.866 MB / 0.5926 GB, free: 72.04 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.414e-06/0.8781, allocations: 2.125 kB / 0.5926 GB, free: 72.04 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001695/0.8798, allocations: 343.4 kB / 0.5929 GB, free: 72.02 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003052/0.8801, allocations: 94.84 kB / 0.593 GB, free: 71.98 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001019/0.8803, allocations: 9.422 kB / 0.593 GB, free: 71.98 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006763/0.8809, allocations: 1.228 MB / 0.5942 GB, free: 70.75 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.242e-06/0.881, allocations: 6.359 kB / 0.5942 GB, free: 70.75 MB / 410.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.004606/0.8856, allocations: 3.346 MB / 0.5975 GB, free: 69.11 MB / 410.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.005863/0.8914, allocations: 4.941 MB / 0.6023 GB, free: 66.56 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008904/0.8924, allocations: 459.7 kB / 0.6027 GB, free: 66.25 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003127/0.8927, allocations: 3.938 kB / 0.6027 GB, free: 66.25 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001071/0.8938, allocations: 45.95 kB / 0.6028 GB, free: 66.25 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001675/0.8939, allocations: 89.73 kB / 0.6029 GB, free: 66.23 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000105/0.8941, allocations: 38.66 kB / 0.6029 GB, free: 66.22 MB / 410.7 MB Notification: Performance of sort global known variables: time 0.00154/0.8956, allocations: 1.027 MB / 0.6039 GB, free: 65.8 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.002477/0.8981, allocations: 0.5414 MB / 0.6044 GB, free: 65.74 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.0006338/0.8987, allocations: 438.2 kB / 0.6049 GB, free: 65.59 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.003141/0.9019, allocations: 2.218 MB / 0.607 GB, free: 64.6 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 4.088e-06/0.9019, allocations: 1.469 kB / 0.607 GB, free: 64.6 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001396/0.9033, allocations: 1.21 MB / 0.6082 GB, free: 63.73 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001983/0.9053, allocations: 378.3 kB / 0.6086 GB, free: 63.43 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00801/0.9133, allocations: 4.475 MB / 0.6129 GB, free: 59.34 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002305/0.9157, allocations: 2.487 MB / 0.6154 GB, free: 57.37 MB / 410.7 MB Notification: Performance of SimCode: time 6.91e-07/0.9157, allocations: 0 / 0.6154 GB, free: 57.37 MB / 410.7 MB (rm -f Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMPM_CurrentSource_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMPM_CurrentSource.fmu > Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource_res.mat does not exist to compare? outputFormat=mat