Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource.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.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_VoltageSource",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_VoltageSource",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.001014/0.001014, allocations: 182.9 kB / 8.135 MB, free: 2.223 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.089/1.089, allocations: 221.4 MB / 229.9 MB, free: 3.02 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.001062/0.001062, allocations: 93.86 kB / 280.8 MB, free: 1.258 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.08957/0.09067, allocations: 55.83 MB / 336.6 MB, free: 9.414 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1746/0.2653, allocations: 50.39 MB / 387 MB, free: 38.09 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1083/0.3735, allocations: 113.7 MB / 0.489 GB, free: 5.074 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000205/0.3738, allocations: 83.94 kB / 0.4891 GB, free: 4.992 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: 775 * Number of variables: 775 Notification: Performance of Generate backend data structure: time 0.2665/0.6403, allocations: 62.17 MB / 0.5498 GB, free: 60.95 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.489e-05/0.6403, allocations: 12 kB / 0.5498 GB, free: 60.94 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001262/0.6416, allocations: 415.4 kB / 0.5502 GB, free: 60.53 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003812/0.6454, allocations: 2.239 MB / 0.5524 GB, free: 58.23 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.553e-05/0.6455, allocations: 99.98 kB / 0.5525 GB, free: 58.14 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003485/0.6459, allocations: 175.9 kB / 0.5526 GB, free: 57.96 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003993/0.6499, allocations: 2.847 MB / 0.5554 GB, free: 55.11 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00441/0.6543, allocations: 3.36 MB / 0.5587 GB, free: 51.61 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.088e-05/0.6544, allocations: 4 kB / 0.5587 GB, free: 51.6 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002331/0.6546, allocations: 4 kB / 0.5587 GB, free: 51.6 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.309e-05/0.6547, allocations: 149.7 kB / 0.5589 GB, free: 51.45 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01376/0.6685, allocations: 11.64 MB / 0.5702 GB, free: 39.47 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001462/0.67, allocations: 1.228 MB / 0.5714 GB, free: 38.24 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001188/0.6712, allocations: 1.05 MB / 0.5725 GB, free: 37.19 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002875/0.6715, allocations: 237.3 kB / 0.5727 GB, free: 36.92 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.019e-05/0.6715, allocations: 51.78 kB / 0.5727 GB, free: 36.86 MB / 378.7 MB Notification: Performance of pre-optimization done (n=149): time 3.517e-06/0.6715, allocations: 0 / 0.5727 GB, free: 36.86 MB / 378.7 MB Notification: Performance of matching and sorting (n=171): time 0.008857/0.6804, allocations: 5.952 MB / 0.5785 GB, free: 30.85 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.548e-05/0.6804, allocations: 69.41 kB / 0.5786 GB, free: 30.77 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001635/0.6821, allocations: 1.503 MB / 0.5801 GB, free: 29.23 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 9.475e-05/0.6822, allocations: 25.7 kB / 0.5801 GB, free: 29.2 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000347/0.6825, allocations: 1.142 MB / 0.5812 GB, free: 28.04 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000285/0.6828, allocations: 0.5618 MB / 0.5818 GB, free: 27.47 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.927e-05/0.6829, allocations: 0 / 0.5818 GB, free: 27.47 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 8.957e-05/0.683, allocations: 393.9 kB / 0.5821 GB, free: 27.08 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001033/0.6841, allocations: 0.9138 MB / 0.583 GB, free: 26.16 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001241/0.6853, allocations: 1.46 MB / 0.5845 GB, free: 24.45 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001315/0.6866, allocations: 1.185 MB / 0.5856 GB, free: 23.27 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.131e-06/0.6866, allocations: 4 kB / 0.5856 GB, free: 23.27 MB / 378.7 MB Notification: Performance of matching and sorting (n=260) (initialization): time 0.003938/0.6906, allocations: 3.036 MB / 0.5886 GB, free: 20.21 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.087e-05/0.6906, allocations: 4 kB / 0.5886 GB, free: 20.21 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.43e-05/0.6906, allocations: 16 kB / 0.5886 GB, free: 20.2 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001193/0.6918, allocations: 0.5416 MB / 0.5891 GB, free: 19.64 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001682/0.6935, allocations: 463.3 kB / 0.5896 GB, free: 19.19 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005204/0.6987, allocations: 5.727 MB / 0.5952 GB, free: 13.22 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001352/0.7001, allocations: 75.81 kB / 0.5952 GB, free: 13.15 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001465/0.7003, allocations: 87.98 kB / 0.5953 GB, free: 13.06 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 78 * Number of states: 0 () * Number of discrete variables: 1 (sinCosEvaluation.integrator.local_reset) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (234): * Single equations (assignments): 231 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(5,76.0%) 20,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002631/0.7005, allocations: 157.5 kB / 0.5955 GB, free: 12.9 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002698/0.7008, allocations: 201.5 kB / 0.5957 GB, free: 12.7 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00389/0.7047, allocations: 2.759 MB / 0.5984 GB, free: 9.918 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.12e-05/0.7047, allocations: 16 kB / 0.5984 GB, free: 9.902 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.878e-06/0.7048, allocations: 12 kB / 0.5984 GB, free: 9.891 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.547e-05/0.7048, allocations: 11.95 kB / 0.5984 GB, free: 9.879 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007572/0.7124, allocations: 5.626 MB / 0.6039 GB, free: 4.145 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.871e-06/0.7124, allocations: 0 / 0.6039 GB, free: 4.145 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001234/0.7136, allocations: 295.6 kB / 0.6042 GB, free: 3.855 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001362/0.715, allocations: 0.5767 MB / 0.6047 GB, free: 3.27 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001103/0.7151, allocations: 23.97 kB / 0.6048 GB, free: 3.246 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007299/0.7224, allocations: 7.319 MB / 0.6119 GB, free: 11.57 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.669e-06/0.7224, allocations: 4 kB / 0.6119 GB, free: 11.57 MB / 394.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.005756/0.7282, allocations: 4.384 MB / 0.6162 GB, free: 7.008 MB / 394.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.007671/0.7359, allocations: 6.191 MB / 0.6222 GB, free: 0.6367 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009205/0.7368, allocations: 0.4905 MB / 0.6227 GB, free: 128 kB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003404/0.7372, allocations: 8 kB / 0.6227 GB, free: 120 kB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001083/0.7383, allocations: 63.84 kB / 0.6228 GB, free: 56 kB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001891/0.7385, allocations: 97.08 kB / 0.6229 GB, free: 15.96 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001178/0.7386, allocations: 47.98 kB / 0.6229 GB, free: 15.91 MB / 410.7 MB Notification: Performance of sort global known variables: time 0.001519/0.7401, allocations: 1.128 MB / 0.624 GB, free: 14.76 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.002701/0.7428, allocations: 0.5586 MB / 0.6246 GB, free: 14.2 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 13 * Number of states: 7 (smpm.inertiaRotor.w,smpm.idq_sr[1],smpm.idq_sr[2],quadraticSpeedDependentTorque.phi,dqCurrentController.PI_d.x,dqCurrentController.PI_q.x,sinCosEvaluation.integrator.y) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (145): * Single equations (assignments): 142 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(5,76.0%) 20,(1,100.0%) 1,(2,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005469/0.7434, allocations: 393.5 kB / 0.6249 GB, free: 13.81 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.003481/0.7469, allocations: 2.66 MB / 0.6275 GB, free: 11.11 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 3.507e-06/0.7469, allocations: 0 / 0.6275 GB, free: 11.11 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002081/0.749, allocations: 1.548 MB / 0.6291 GB, free: 9.531 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001826/0.7508, allocations: 412.4 kB / 0.6294 GB, free: 9.129 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008305/0.7591, allocations: 4.85 MB / 0.6342 GB, free: 4.18 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002546/0.7617, allocations: 2.496 MB / 0.6366 GB, free: 1.652 MB / 410.7 MB Notification: Performance of SimCode: time 4.01e-07/0.7617, allocations: 0 / 0.6366 GB, free: 1.652 MB / 410.7 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_VoltageSource_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_VoltageSource.fmu > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource.pipe 2>&1)