Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr HanserModelica_HanserModelica.Electrical.StarPolygon.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/HanserModelica 2.0.0-master/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 HanserModelica with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/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(HanserModelica.Electrical.StarPolygon,fileNamePrefix="HanserModelica_HanserModelica_Electrical_StarPolygon",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HanserModelica.Electrical.StarPolygon,fileNamePrefix="HanserModelica_HanserModelica_Electrical_StarPolygon",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.006124/0.006124, allocations: 178.2 kB / 7.454 MB, free: 2.512 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.06443/0.06443, allocations: 8.705 MB / 16.57 MB, free: 424 kB / 10.45 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.269/2.269, allocations: 221.4 MB / 240.5 MB, free: 8.281 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001442/0.001442, allocations: 97.56 kB / 293.5 MB, free: 5.488 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.212/0.2135, allocations: 58.66 MB / 352.2 MB, free: 10.79 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5213/0.7349, allocations: 52.55 MB / 404.7 MB, free: 26.73 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1731/0.908, allocations: 84.26 MB / 489 MB, free: 6.34 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0005175/0.9086, allocations: 67.97 kB / 489 MB, free: 6.273 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: 581 * Number of variables: 581 Notification: Performance of Generate backend data structure: time 0.5549/1.464, allocations: 35.84 MB / 0.5126 GB, free: 83.88 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.251e-05/1.464, allocations: 7.438 kB / 0.5126 GB, free: 83.88 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002803/1.467, allocations: 283.6 kB / 0.5128 GB, free: 83.74 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007152/1.474, allocations: 1.459 MB / 0.5143 GB, free: 83.33 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004598/1.474, allocations: 73.12 kB / 0.5143 GB, free: 83.33 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002621/1.477, allocations: 143.1 kB / 0.5145 GB, free: 83.32 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01214/1.489, allocations: 2.278 MB / 0.5167 GB, free: 82.91 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009774/1.499, allocations: 2.687 MB / 0.5193 GB, free: 81.82 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001032/1.499, allocations: 6 kB / 0.5193 GB, free: 81.82 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002454/1.499, allocations: 5.312 kB / 0.5193 GB, free: 81.82 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001639/1.5, allocations: 54.84 kB / 0.5194 GB, free: 81.82 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02192/1.522, allocations: 7.579 MB / 0.5268 GB, free: 77.42 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00194/1.524, allocations: 0.8156 MB / 0.5276 GB, free: 76.7 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001918/1.526, allocations: 1.084 MB / 0.5286 GB, free: 75.74 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.572e-05/1.526, allocations: 20.12 kB / 0.5287 GB, free: 75.72 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001582/1.527, allocations: 0.8977 MB / 0.5295 GB, free: 74.98 MB / 378.7 MB Notification: Performance of pre-optimization done (n=122): time 4.619e-06/1.527, allocations: 0 / 0.5295 GB, free: 74.98 MB / 378.7 MB Notification: Performance of matching and sorting (n=127): time 0.007264/1.535, allocations: 3.663 MB / 0.5331 GB, free: 71.39 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000108/1.535, allocations: 209.2 kB / 0.5333 GB, free: 71.14 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002162/1.537, allocations: 1.025 MB / 0.5343 GB, free: 70.09 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002545/1.537, allocations: 33.69 kB / 0.5344 GB, free: 70.05 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001226/1.538, allocations: 0.7749 MB / 0.5351 GB, free: 69.27 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005525/1.539, allocations: 406 kB / 0.5355 GB, free: 68.87 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.354e-05/1.539, allocations: 4 kB / 0.5355 GB, free: 68.86 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0005657/1.54, allocations: 357.9 kB / 0.5358 GB, free: 68.51 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001396/1.541, allocations: 0.6467 MB / 0.5365 GB, free: 67.86 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001239/1.542, allocations: 0.9165 MB / 0.5374 GB, free: 66.85 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001418/1.544, allocations: 0.7753 MB / 0.5381 GB, free: 66.08 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.555e-05/1.544, allocations: 8 kB / 0.5381 GB, free: 66.07 MB / 378.7 MB Notification: Performance of matching and sorting (n=158) (initialization): time 0.003762/1.548, allocations: 1.883 MB / 0.54 GB, free: 64.18 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.467e-05/1.548, allocations: 5.562 kB / 0.54 GB, free: 64.18 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.264e-05/1.548, allocations: 8 kB / 0.54 GB, free: 64.17 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006081/1.548, allocations: 273 kB / 0.5402 GB, free: 63.91 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001224/1.55, allocations: 259.6 kB / 0.5405 GB, free: 63.65 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007971/1.558, allocations: 3.532 MB / 0.5439 GB, free: 60.01 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002462/1.56, allocations: 64 kB / 0.544 GB, free: 59.95 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005183/1.561, allocations: 47.52 kB / 0.544 GB, free: 59.9 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 27 * Number of states: 0 () * Number of discrete variables: 20 ($whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,$PRE.rootMeanSquare[5].mean.y_last,rootMeanSquare[5].mean.y_last,$PRE.rootMeanSquare[4].mean.y_last,rootMeanSquare[4].mean.y_last,$PRE.rootMeanSquare[3].mean.y_last,rootMeanSquare[3].mean.y_last,$PRE.rootMeanSquare[2].mean.y_last,rootMeanSquare[2].mean.y_last,$PRE.rootMeanSquare[1].mean.y_last,rootMeanSquare[1].mean.y_last,booleanStep[1].y,booleanStep[2].y,booleanStep[3].y,booleanStep[4].y,booleanStep[5].y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (134): * Single equations (assignments): 133 * 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 {(2,100.0%) 23} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001112/1.562, allocations: 154.5 kB / 0.5442 GB, free: 59.74 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001083/1.563, allocations: 130.5 kB / 0.5443 GB, free: 59.61 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00101/1.564, allocations: 153 kB / 0.5445 GB, free: 59.46 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.271e-05/1.564, allocations: 12 kB / 0.5445 GB, free: 59.45 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.239e-05/1.564, allocations: 4 kB / 0.5445 GB, free: 59.45 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.643e-05/1.564, allocations: 15.81 kB / 0.5445 GB, free: 59.43 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01631/1.58, allocations: 3.812 MB / 0.5482 GB, free: 55.58 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.675e-05/1.581, allocations: 3.984 kB / 0.5482 GB, free: 55.57 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001631/1.582, allocations: 195.9 kB / 0.5484 GB, free: 55.38 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00115/1.583, allocations: 267.5 kB / 0.5487 GB, free: 55.12 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002579/1.584, allocations: 27.97 kB / 0.5487 GB, free: 55.09 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005798/1.59, allocations: 3.54 MB / 0.5521 GB, free: 51.46 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.503e-05/1.59, allocations: 0 / 0.5521 GB, free: 51.46 MB / 378.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.006237/1.596, allocations: 2.911 MB / 0.555 GB, free: 48.48 MB / 378.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.007122/1.603, allocations: 4.322 MB / 0.5592 GB, free: 44.11 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001432/1.605, allocations: 367.5 kB / 0.5596 GB, free: 43.73 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006004/1.605, allocations: 28.34 kB / 0.5596 GB, free: 43.7 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001392/1.607, allocations: 55.95 kB / 0.5596 GB, free: 43.64 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003733/1.607, allocations: 112.7 kB / 0.5597 GB, free: 43.54 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001466/1.607, allocations: 35.98 kB / 0.5598 GB, free: 43.5 MB / 378.7 MB Notification: Performance of sort global known variables: time 0.001612/1.609, allocations: 0.7946 MB / 0.5606 GB, free: 42.7 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.002822/1.612, allocations: 380 kB / 0.5609 GB, free: 42.32 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 10 (inductorLoad.inductor[1].i,inductorLoad.inductor[2].i,inductorLoad.inductor[3].i,inductorLoad.inductor[4].i,inductorLoad.inductor[5].i,rootMeanSquare[1].mean.x,rootMeanSquare[2].mean.x,rootMeanSquare[3].mean.x,rootMeanSquare[4].mean.x,rootMeanSquare[5].mean.x) * Number of discrete variables: 15 ($whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,booleanStep[1].y,booleanStep[2].y,booleanStep[3].y,booleanStep[4].y,booleanStep[5].y,rootMeanSquare[1].mean.y_last,rootMeanSquare[2].mean.y_last,rootMeanSquare[3].mean.y_last,rootMeanSquare[4].mean.y_last,rootMeanSquare[5].mean.y_last) * Number of discrete states: 5 (rootMeanSquare[1].mean.x,rootMeanSquare[2].mean.x,rootMeanSquare[3].mean.x,rootMeanSquare[4].mean.x,rootMeanSquare[5].mean.x) * Top-level inputs: 0 Notification: Strong component statistics for simulation (103): * Single equations (assignments): 97 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 5 * 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 {(2,100.0%) 23} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003403/1.612, allocations: 142.4 kB / 0.5611 GB, free: 42.18 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.003316/1.615, allocations: 1.718 MB / 0.5627 GB, free: 40.45 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 6.513e-06/1.615, allocations: 4 kB / 0.5627 GB, free: 40.45 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002226/1.618, allocations: 1.013 MB / 0.5637 GB, free: 39.43 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002459/1.62, allocations: 224 kB / 0.5639 GB, free: 39.21 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01544/1.636, allocations: 3.874 MB / 0.5677 GB, free: 35.31 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003039/1.639, allocations: 2.174 MB / 0.5698 GB, free: 33.1 MB / 378.7 MB Notification: Performance of SimCode: time 2.415e-06/1.639, allocations: 0 / 0.5698 GB, free: 33.1 MB / 378.7 MB (rm -f HanserModelica_HanserModelica.Electrical.StarPolygon.pipe ; mkfifo HanserModelica_HanserModelica.Electrical.StarPolygon.pipe ; head -c 1048576 < HanserModelica_HanserModelica.Electrical.StarPolygon.pipe >> ../files/HanserModelica_HanserModelica.Electrical.StarPolygon.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_HanserModelica_HanserModelica_Electrical_StarPolygon_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 HanserModelica_HanserModelica_Electrical_StarPolygon.fmu > HanserModelica_HanserModelica.Electrical.StarPolygon.pipe 2>&1)