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_Inverter.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_Inverter,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_Inverter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_Inverter",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.001073/0.001073, allocations: 183.3 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.223/1.223, allocations: 221.4 MB / 229.9 MB, free: 3.039 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.0009297/0.0009297, allocations: 101.6 kB / 280.8 MB, free: 1.262 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.09245/0.09341, allocations: 55.83 MB / 336.6 MB, free: 9.406 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1868/0.2802, allocations: 50.39 MB / 387 MB, free: 37.98 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.251/0.5313, allocations: 130.7 MB / 0.5056 GB, free: 106.1 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002189/0.5315, allocations: 104.5 kB / 0.5057 GB, free: 106.1 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: 1413 * Number of variables: 1413 Notification: Performance of Generate backend data structure: time 0.2964/0.828, allocations: 128 MB / 0.6307 GB, free: 9.582 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.74e-05/0.828, allocations: 12 kB / 0.6307 GB, free: 9.57 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006136/0.8342, allocations: 1.019 MB / 0.6317 GB, free: 8.543 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01218/0.8464, allocations: 4.608 MB / 0.6362 GB, free: 3.859 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002831/0.8467, allocations: 180 kB / 0.6364 GB, free: 3.684 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001456/0.8482, allocations: 319.8 kB / 0.6367 GB, free: 3.371 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01076/0.8589, allocations: 5.188 MB / 0.6417 GB, free: 14.18 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01092/0.8699, allocations: 6.111 MB / 0.6477 GB, free: 7.863 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001365/0.87, allocations: 27.81 kB / 0.6477 GB, free: 7.836 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004589/0.8705, allocations: 4 kB / 0.6477 GB, free: 7.832 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002086/0.8707, allocations: 250.6 kB / 0.648 GB, free: 7.586 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1506/1.021, allocations: 21.61 MB / 0.6691 GB, free: 78.73 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002611/1.024, allocations: 1.811 MB / 0.6708 GB, free: 78.71 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002841/1.027, allocations: 2.17 MB / 0.673 GB, free: 78.68 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01051/1.037, allocations: 6.605 MB / 0.6794 GB, free: 77.79 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.356e-05/1.037, allocations: 58.73 kB / 0.6795 GB, free: 77.74 MB / 426.7 MB Notification: Performance of pre-optimization done (n=267): time 5.11e-06/1.037, allocations: 3.969 kB / 0.6795 GB, free: 77.74 MB / 426.7 MB Notification: Performance of matching and sorting (n=294): time 0.01637/1.054, allocations: 9.191 MB / 0.6884 GB, free: 76.2 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.203e-05/1.054, allocations: 81.69 kB / 0.6885 GB, free: 76.14 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003113/1.057, allocations: 2.224 MB / 0.6907 GB, free: 75.91 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002255/1.057, allocations: 25.7 kB / 0.6907 GB, free: 75.88 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007839/1.058, allocations: 1.962 MB / 0.6926 GB, free: 75.05 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005878/1.059, allocations: 0.9685 MB / 0.6936 GB, free: 74.45 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00018/1.059, allocations: 7.594 kB / 0.6936 GB, free: 74.45 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001493/1.059, allocations: 445.1 kB / 0.694 GB, free: 74.14 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001902/1.061, allocations: 1.456 MB / 0.6954 GB, free: 74.13 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002223/1.063, allocations: 2.422 MB / 0.6978 GB, free: 73 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002767/1.066, allocations: 1.945 MB / 0.6997 GB, free: 72.96 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.528e-05/1.066, allocations: 7.688 kB / 0.6997 GB, free: 72.96 MB / 426.7 MB Notification: Performance of matching and sorting (n=455) (initialization): time 0.007539/1.074, allocations: 4.888 MB / 0.7045 GB, free: 72.52 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.346e-05/1.074, allocations: 9.469 kB / 0.7045 GB, free: 72.52 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.471e-05/1.074, allocations: 29.97 kB / 0.7045 GB, free: 72.52 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001698/1.075, allocations: 0.7184 MB / 0.7052 GB, free: 72.46 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003235/1.079, allocations: 0.8072 MB / 0.706 GB, free: 72.46 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008156/1.087, allocations: 9.024 MB / 0.7148 GB, free: 67.47 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002965/1.09, allocations: 115 kB / 0.7149 GB, free: 67.46 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000414/1.09, allocations: 155.3 kB / 0.7151 GB, free: 67.46 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 139 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (418): * Single equations (assignments): 412 * 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: 4 * 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: 4 {(6,72.2%) 23,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000539/1.091, allocations: 196.9 kB / 0.7153 GB, free: 67.34 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005979/1.091, allocations: 330 kB / 0.7156 GB, free: 67.17 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0073/1.099, allocations: 4.478 MB / 0.7199 GB, free: 66.72 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.004e-05/1.099, allocations: 30.09 kB / 0.72 GB, free: 66.72 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.16e-05/1.099, allocations: 10.88 kB / 0.72 GB, free: 66.72 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.433e-05/1.099, allocations: 17.58 kB / 0.72 GB, free: 66.72 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01365/1.112, allocations: 9.321 MB / 0.7291 GB, free: 65.64 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.214e-05/1.112, allocations: 3.781 kB / 0.7291 GB, free: 65.64 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002223/1.115, allocations: 469.3 kB / 0.7296 GB, free: 65.64 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002487/1.117, allocations: 0.9528 MB / 0.7305 GB, free: 65.57 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000212/1.117, allocations: 38.94 kB / 0.7305 GB, free: 65.57 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01354/1.131, allocations: 14.85 MB / 0.745 GB, free: 54.32 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.913e-06/1.131, allocations: 6.938 kB / 0.745 GB, free: 54.32 MB / 426.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0095/1.14, allocations: 6.889 MB / 0.7518 GB, free: 50.94 MB / 426.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.01108/1.152, allocations: 9.452 MB / 0.761 GB, free: 46.25 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001686/1.153, allocations: 0.7269 MB / 0.7617 GB, free: 45.79 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006597/1.154, allocations: 22.22 kB / 0.7617 GB, free: 45.79 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001949/1.156, allocations: 106 kB / 0.7618 GB, free: 45.79 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003158/1.156, allocations: 158.1 kB / 0.762 GB, free: 45.76 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001986/1.156, allocations: 83.14 kB / 0.7621 GB, free: 45.74 MB / 426.7 MB Notification: Performance of sort global known variables: time 0.002264/1.159, allocations: 1.641 MB / 0.7637 GB, free: 45.06 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.004187/1.163, allocations: 1.006 MB / 0.7646 GB, free: 45 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 17 * Number of states: 13 (vfController.x,smpmM.inertiaRotor.w,smpmM.stator.core.Phi.re,smpmM.stator.core.Phi.im,smpmM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.re,smpmM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.im,smpmE.inertiaRotor.w,smpmE.idq_sr[1],smpmE.idq_sr[2],smpmE.idq_rr[2],smpmE.idq_dr[1],loadInertiaM.phi,loadInertiaE.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (235): * Single equations (assignments): 228 * 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: 7 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 7 {(6,72.2%) 23,(1,100.0%) 5,(1,100.0%) 1,(2,100.0%) 4,(1,100.0%) 1,(1,100.0%) 8,(2,100.0%) 14} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000694/1.164, allocations: 495.1 kB / 0.7651 GB, free: 44.88 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.005396/1.169, allocations: 4.327 MB / 0.7693 GB, free: 43.02 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 5.48e-06/1.169, allocations: 7 kB / 0.7693 GB, free: 43.02 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003792/1.173, allocations: 2.74 MB / 0.772 GB, free: 41.64 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003222/1.176, allocations: 0.6566 MB / 0.7727 GB, free: 41.49 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01539/1.191, allocations: 8.463 MB / 0.7809 GB, free: 34.8 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003758/1.195, allocations: 3.795 MB / 0.7846 GB, free: 31.89 MB / 426.7 MB Notification: Performance of SimCode: time 5.61e-07/1.195, allocations: 0 / 0.7846 GB, free: 31.89 MB / 426.7 MB (rm -f Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_Inverter_fmu --startTime=0 --stopTime=1.5 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_Inverter.fmu > Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter.pipe 2>&1)