Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Drive.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Drive,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Drive",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Drive,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Drive",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 trunk/package.mo): time 0.001135/0.001135, allocations: 199 kB / 8.539 MB, free: 1.797 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.166/1.166, allocations: 225.5 MB / 234.4 MB, free: 3.355 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008485/0.0008485, allocations: 88.22 kB / 286.3 MB, free: 5.305 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.08777/0.08864, allocations: 56.9 MB / 343.2 MB, free: 8.625 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07742/0.1661, allocations: 51.48 MB / 394.7 MB, free: 5.09 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2261/0.3922, allocations: 113.1 MB / 0.4959 GB, free: 12.39 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002039/0.3925, allocations: 87.16 kB / 0.496 GB, free: 12.35 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: 658 * Number of variables: 658 Notification: Performance of Generate backend data structure: time 0.1425/0.5349, allocations: 59.07 MB / 0.5537 GB, free: 6.176 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.607e-05/0.535, allocations: 8 kB / 0.5537 GB, free: 6.168 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001398/0.5364, allocations: 376.2 kB / 0.5541 GB, free: 5.797 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003016/0.5394, allocations: 1.527 MB / 0.5556 GB, free: 4.211 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001188/0.5396, allocations: 84 kB / 0.5557 GB, free: 4.129 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003805/0.54, allocations: 159.8 kB / 0.5558 GB, free: 3.973 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002989/0.543, allocations: 1.365 MB / 0.5571 GB, free: 2.602 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00357/0.5465, allocations: 1.975 MB / 0.5591 GB, free: 0.5195 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.84e-05/0.5466, allocations: 4 kB / 0.5591 GB, free: 0.5156 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001601/0.5468, allocations: 7.906 kB / 0.5591 GB, free: 0.5078 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.798e-05/0.5468, allocations: 64 kB / 0.5591 GB, free: 456 kB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01272/0.5596, allocations: 10.01 MB / 0.5689 GB, free: 5.941 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001291/0.5609, allocations: 485.1 kB / 0.5694 GB, free: 5.461 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007396/0.5616, allocations: 415.7 kB / 0.5698 GB, free: 5.055 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.357e-05/0.5617, allocations: 16.75 kB / 0.5698 GB, free: 5.035 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.948e-05/0.5618, allocations: 55.22 kB / 0.5698 GB, free: 4.973 MB / 442.7 MB Notification: Performance of pre-optimization done (n=83): time 2.816e-06/0.5618, allocations: 4 kB / 0.5699 GB, free: 4.969 MB / 442.7 MB Notification: Performance of matching and sorting (n=89): time 0.003424/0.5652, allocations: 1.948 MB / 0.5718 GB, free: 2.965 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.889e-05/0.5653, allocations: 115.6 kB / 0.5719 GB, free: 2.824 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001562/0.5668, allocations: 1.092 MB / 0.5729 GB, free: 1.727 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 5.378e-05/0.5669, allocations: 29.7 kB / 0.573 GB, free: 1.691 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005645/0.5675, allocations: 1.08 MB / 0.574 GB, free: 0.5938 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000227/0.5677, allocations: 323.3 kB / 0.5743 GB, free: 280 kB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.813e-05/0.5678, allocations: 0 / 0.5743 GB, free: 280 kB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.1495/0.7173, allocations: 365.9 kB / 0.5747 GB, free: 65.03 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001118/0.7184, allocations: 315 kB / 0.575 GB, free: 65.03 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001087/0.7196, allocations: 0.9954 MB / 0.5759 GB, free: 64.16 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008257/0.7204, allocations: 0.4919 MB / 0.5764 GB, free: 64.16 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.408e-05/0.7204, allocations: 10.03 kB / 0.5764 GB, free: 64.16 MB / 442.7 MB Notification: Performance of matching and sorting (n=214) (initialization): time 0.002315/0.7227, allocations: 1.349 MB / 0.5777 GB, free: 64.09 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001338/0.7241, allocations: 9.313 MB / 0.5868 GB, free: 54.57 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.948e-05/0.7242, allocations: 28.64 kB / 0.5869 GB, free: 54.57 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000239/0.7244, allocations: 57.64 kB / 0.5869 GB, free: 54.56 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001947/0.7264, allocations: 420.4 kB / 0.5873 GB, free: 54.56 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001025/0.7274, allocations: 1.264 MB / 0.5886 GB, free: 53.39 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001888/0.7293, allocations: 76.53 kB / 0.5886 GB, free: 53.39 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001494/0.7295, allocations: 78.47 kB / 0.5887 GB, free: 53.39 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.106e-06/0.7295, allocations: 5.812 kB / 0.5887 GB, free: 53.39 MB / 442.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002719/0.7322, allocations: 1.14 MB / 0.5898 GB, free: 53.36 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.52e-05/0.7323, allocations: 26.94 kB / 0.5899 GB, free: 53.36 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001526/0.7325, allocations: 55.64 kB / 0.5899 GB, free: 53.35 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002002/0.7345, allocations: 399 kB / 0.5903 GB, free: 53.35 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008768/0.7354, allocations: 1.27 MB / 0.5915 GB, free: 52.18 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001657/0.7371, allocations: 50.81 kB / 0.5916 GB, free: 52.18 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001569/0.7372, allocations: 80.97 kB / 0.5917 GB, free: 52.18 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 106 * Number of states: 0 () * Number of discrete variables: 3 (booleanStep.y,dcdcInverter2.idealDcDc.powerController.local_reset,dcdcInverter1.idealDcDc.powerController.local_reset) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (213): * Single equations (assignments): 212 * 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: 1 * Mixed (continuous/discrete) equation systems: 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.0003034/0.7376, allocations: 167.6 kB / 0.5918 GB, free: 52.07 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003458/0.7379, allocations: 162.5 kB / 0.592 GB, free: 52.07 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00128/0.7392, allocations: 0.7247 MB / 0.5927 GB, free: 52 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.726e-06/0.7392, allocations: 13.62 kB / 0.5927 GB, free: 52 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.411e-06/0.7392, allocations: 0 / 0.5927 GB, free: 52 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.157e-06/0.7393, allocations: 3.703 kB / 0.5927 GB, free: 52 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003385/0.7426, allocations: 2.377 MB / 0.595 GB, free: 51.57 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.282e-06/0.7427, allocations: 9.75 kB / 0.595 GB, free: 51.57 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008817/0.7436, allocations: 200.4 kB / 0.5952 GB, free: 51.57 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.357e-05/0.7437, allocations: 27.48 kB / 0.5952 GB, free: 51.56 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.624e-05/0.7437, allocations: 10.59 kB / 0.5953 GB, free: 51.56 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005666/0.7443, allocations: 1.246 MB / 0.5965 GB, free: 50.38 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.989e-06/0.7443, allocations: 5.781 kB / 0.5965 GB, free: 50.38 MB / 442.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001385/0.7457, allocations: 1.452 MB / 0.5979 GB, free: 49.79 MB / 442.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001772/0.7475, allocations: 2.159 MB / 0.6 GB, free: 48.73 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004087/0.7479, allocations: 302.4 kB / 0.6003 GB, free: 48.56 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000229/0.7482, allocations: 17 kB / 0.6003 GB, free: 48.56 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007137/0.7489, allocations: 56.05 kB / 0.6004 GB, free: 48.56 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.931e-05/0.749, allocations: 54.23 kB / 0.6004 GB, free: 48.55 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.914e-05/0.749, allocations: 29.56 kB / 0.6004 GB, free: 48.55 MB / 442.7 MB Notification: Performance of sort global known variables: time 0.0008854/0.7499, allocations: 0.7832 MB / 0.6012 GB, free: 48.45 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.003692/0.7536, allocations: 0.7161 MB / 0.6019 GB, free: 48.45 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 16 (dcpm1.inertiaRotor.w,dcpm1.la.i,dcpm2.la.i,coupling.flange_a.phi,dcdcInverter1.vDCFilter.y,dcdcInverter1.iMotFilter.y,dcdcInverter1.vMotFilter.y,dcdcInverter1.iDCFilter.y,dcdcInverter1.idealDcDc.deadTime.y,dcdcInverter1.idealDcDc.powerController.y,dcdcInverter2.vDCFilter.y,dcdcInverter2.iMotFilter.y,dcdcInverter2.vMotFilter.y,dcdcInverter2.iDCFilter.y,dcdcInverter2.idealDcDc.deadTime.y,dcdcInverter2.idealDcDc.powerController.y) * Number of discrete variables: 1 (booleanStep.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (88): * Single equations (assignments): 87 * 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: 1 * Mixed (continuous/discrete) equation systems: 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.0003266/0.754, allocations: 288 kB / 0.6022 GB, free: 48.36 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.002114/0.7561, allocations: 1.766 MB / 0.6039 GB, free: 48.02 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 3.827e-06/0.7561, allocations: 6.594 kB / 0.6039 GB, free: 48.02 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004958/0.7566, allocations: 455 kB / 0.6043 GB, free: 47.89 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001264/0.7579, allocations: 339.7 kB / 0.6047 GB, free: 47.89 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004943/0.7628, allocations: 2.951 MB / 0.6075 GB, free: 46.84 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001251/0.7641, allocations: 1.674 MB / 0.6092 GB, free: 46.07 MB / 442.7 MB Notification: Performance of SimCode: time 4.51e-07/0.7641, allocations: 0 / 0.6092 GB, free: 46.07 MB / 442.7 MB (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Drive.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Drive.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Drive.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Drive.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Modelica_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Drive_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Drive.fmu > Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Drive.pipe 2>&1)