Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Electrical.Machines.DCPM_SpeedControlled.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) 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(ModelicaTest.Electrical.Machines.DCPM_SpeedControlled,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Electrical_Machines_DCPM_SpeedControlled",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Electrical.Machines.DCPM_SpeedControlled,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Electrical_Machines_DCPM_SpeedControlled",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.001063/0.001063, allocations: 194.9 kB / 8.539 MB, free: 1.805 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.159/1.159, allocations: 225.5 MB / 234.4 MB, free: 3.492 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008671/0.0008672, allocations: 92.17 kB / 286.3 MB, free: 5.215 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1634/0.1634, allocations: 45.15 MB / 383.4 MB, free: 0.6641 MB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 0.184/0.3475, allocations: 69.36 MB / 452.7 MB, free: 76.15 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08195/0.4294, allocations: 63.24 MB / 0.5039 GB, free: 12.99 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2531/0.6826, allocations: 97.65 MB / 0.5992 GB, free: 5.289 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001763/0.6828, allocations: 77.02 kB / 0.5993 GB, free: 5.25 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 150 * Number of variables: 150 Notification: Performance of Generate backend data structure: time 0.0349/0.7177, allocations: 14.1 MB / 0.6131 GB, free: 9.602 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.397e-05/0.7177, allocations: 12 kB / 0.6131 GB, free: 9.59 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001303/0.7179, allocations: 82.97 kB / 0.6132 GB, free: 9.508 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006492/0.7185, allocations: 490.1 kB / 0.6136 GB, free: 9.07 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.973e-05/0.7186, allocations: 20 kB / 0.6136 GB, free: 9.051 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.312e-05/0.7186, allocations: 39.91 kB / 0.6137 GB, free: 9.012 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005834/0.7192, allocations: 330.2 kB / 0.614 GB, free: 8.816 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007101/0.7199, allocations: 468.9 kB / 0.6144 GB, free: 8.461 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.999e-05/0.72, allocations: 0.875 kB / 0.6144 GB, free: 8.461 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.694e-05/0.72, allocations: 4 kB / 0.6145 GB, free: 8.457 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.403e-05/0.72, allocations: 12 kB / 0.6145 GB, free: 8.445 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002727/0.7228, allocations: 2.08 MB / 0.6165 GB, free: 6.707 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006113/0.7234, allocations: 265.6 kB / 0.6167 GB, free: 6.5 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002582/0.7237, allocations: 157.3 kB / 0.6169 GB, free: 6.398 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.151e-05/0.7237, allocations: 7.984 kB / 0.6169 GB, free: 6.391 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.329e-05/0.7237, allocations: 41.66 kB / 0.6169 GB, free: 6.344 MB / 410.7 MB Notification: Performance of pre-optimization done (n=32): time 1.403e-06/0.7237, allocations: 0 / 0.6169 GB, free: 6.344 MB / 410.7 MB Notification: Performance of matching and sorting (n=33): time 0.001198/0.7249, allocations: 0.7644 MB / 0.6177 GB, free: 5.652 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.372e-05/0.725, allocations: 59.41 kB / 0.6177 GB, free: 5.582 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004205/0.7254, allocations: 389.4 kB / 0.6181 GB, free: 5.289 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 2.625e-05/0.7255, allocations: 25.7 kB / 0.6181 GB, free: 5.258 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001482/0.7256, allocations: 288.2 kB / 0.6184 GB, free: 5 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.702e-05/0.7257, allocations: 110.9 kB / 0.6185 GB, free: 4.902 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.495e-05/0.7257, allocations: 0 / 0.6185 GB, free: 4.902 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001373/0.7259, allocations: 361.8 kB / 0.6189 GB, free: 4.562 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001639/0.726, allocations: 103.8 kB / 0.619 GB, free: 4.5 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002072/0.7262, allocations: 177.9 kB / 0.6191 GB, free: 4.344 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000189/0.7264, allocations: 124.1 kB / 0.6193 GB, free: 4.27 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.412e-06/0.7264, allocations: 0 / 0.6193 GB, free: 4.27 MB / 410.7 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.0006183/0.7271, allocations: 380.3 kB / 0.6196 GB, free: 3.973 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003031/0.7274, allocations: 0.8657 MB / 0.6205 GB, free: 3.055 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.873e-06/0.7274, allocations: 3.906 kB / 0.6205 GB, free: 3.051 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001202/0.7275, allocations: 36.09 kB / 0.6205 GB, free: 3.016 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004624/0.728, allocations: 107.2 kB / 0.6206 GB, free: 2.914 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009126/0.7289, allocations: 1.237 MB / 0.6218 GB, free: 1.598 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002719/0.7292, allocations: 24.48 kB / 0.6218 GB, free: 1.574 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.291e-05/0.7292, allocations: 19.36 kB / 0.6219 GB, free: 1.559 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.929e-06/0.7293, allocations: 4 kB / 0.6219 GB, free: 1.555 MB / 410.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.000496/0.7298, allocations: 284.6 kB / 0.6221 GB, free: 1.352 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.685e-06/0.7298, allocations: 0 / 0.6221 GB, free: 1.352 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.094e-05/0.7298, allocations: 28.72 kB / 0.6222 GB, free: 1.324 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003706/0.7302, allocations: 96.11 kB / 0.6222 GB, free: 1.234 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008558/0.7311, allocations: 1.23 MB / 0.6235 GB, free: 15.93 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002082/0.7313, allocations: 15.94 kB / 0.6235 GB, free: 15.92 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.537e-05/0.7313, allocations: 15.88 kB / 0.6235 GB, free: 15.91 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 2 (speedController.integrator.local_reset,currentController.integrator.local_reset) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (51): * Single equations (assignments): 50 * 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 9.844e-05/0.7315, allocations: 113.5 kB / 0.6236 GB, free: 15.79 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.864e-05/0.7315, allocations: 51.34 kB / 0.6236 GB, free: 15.74 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.532e-05/0.7316, allocations: 51.95 kB / 0.6237 GB, free: 15.71 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.514e-06/0.7316, allocations: 4 kB / 0.6237 GB, free: 15.71 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.669e-06/0.7316, allocations: 4 kB / 0.6237 GB, free: 15.7 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.711e-06/0.7317, allocations: 3.984 kB / 0.6237 GB, free: 15.7 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001217/0.7329, allocations: 0.9028 MB / 0.6246 GB, free: 14.97 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.004e-06/0.7329, allocations: 0 / 0.6246 GB, free: 14.97 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003898/0.7333, allocations: 79.2 kB / 0.6247 GB, free: 14.89 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.217e-05/0.7334, allocations: 24.17 kB / 0.6247 GB, free: 14.87 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.167e-05/0.7334, allocations: 0 / 0.6247 GB, free: 14.87 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008267/0.7342, allocations: 1.227 MB / 0.6259 GB, free: 13.56 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.517e-06/0.7343, allocations: 4.031 kB / 0.6259 GB, free: 13.56 MB / 426.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0006441/0.7349, allocations: 0.541 MB / 0.6264 GB, free: 13.11 MB / 426.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.000925/0.7358, allocations: 1.038 MB / 0.6274 GB, free: 12.21 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001041/0.736, allocations: 129.5 kB / 0.6275 GB, free: 12.08 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.047e-05/0.736, allocations: 3.984 kB / 0.6275 GB, free: 12.07 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002902/0.7363, allocations: 31.92 kB / 0.6276 GB, free: 12.04 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.373e-05/0.7364, allocations: 19.41 kB / 0.6276 GB, free: 12.03 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.204e-05/0.7364, allocations: 11.44 kB / 0.6276 GB, free: 12.02 MB / 426.7 MB Notification: Performance of sort global known variables: time 0.0003056/0.7367, allocations: 301 kB / 0.6279 GB, free: 11.8 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.001712/0.7384, allocations: 170.6 kB / 0.6281 GB, free: 11.64 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 7 (dcpm.inductor.i,dcpm.inertia.w,inertiaLoad.phi,deadTime.y,currentController.integrator.y,preFilter.y,speedController.integrator.y) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (32): * Single equations (assignments): 31 * 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.0002447/0.7387, allocations: 205.9 kB / 0.6283 GB, free: 11.45 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.0008917/0.7396, allocations: 0.6317 MB / 0.6289 GB, free: 10.93 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 2.224e-06/0.7396, allocations: 0 / 0.6289 GB, free: 10.93 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002755/0.7399, allocations: 227.5 kB / 0.6291 GB, free: 10.74 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004707/0.7404, allocations: 81.17 kB / 0.6292 GB, free: 10.69 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001697/0.7421, allocations: 0.9429 MB / 0.6301 GB, free: 9.777 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005742/0.7427, allocations: 0.9561 MB / 0.631 GB, free: 8.797 MB / 426.7 MB Notification: Performance of SimCode: time 2.5e-07/0.7427, allocations: 0 / 0.631 GB, free: 8.797 MB / 426.7 MB (rm -f ModelicaTest_trunk_ModelicaTest.Electrical.Machines.DCPM_SpeedControlled.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Electrical.Machines.DCPM_SpeedControlled.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Electrical.Machines.DCPM_SpeedControlled.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Electrical.Machines.DCPM_SpeedControlled.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Electrical_Machines_DCPM_SpeedControlled_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Electrical_Machines_DCPM_SpeedControlled.fmu > ModelicaTest_trunk_ModelicaTest.Electrical.Machines.DCPM_SpeedControlled.pipe 2>&1)