Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BLDC_BLDC.Examples.DemoElectronicCommutator.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BLDC 1.9.0/package.mo", uses=false) 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) Using package BLDC with version 1.9.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BLDC 1.9.0/package.mo) Running command: "" <> buildModelFMU(BLDC.Examples.DemoElectronicCommutator,fileNamePrefix="BLDC_BLDC_Examples_DemoElectronicCommutator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BLDC.Examples.DemoElectronicCommutator,fileNamePrefix="BLDC_BLDC_Examples_DemoElectronicCommutator",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/BLDC 1.9.0/package.mo): time 0.01178/0.01178, allocations: 2.544 MB / 9.829 MB, free: 440 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009535/0.0009533, allocations: 186.7 kB / 10.97 MB, free: 1.906 MB / 7.832 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.207/1.207, allocations: 221.4 MB / 233.4 MB, free: 4.133 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.0009864/0.0009868, allocations: 104 kB / 284.8 MB, free: 1.012 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1693/0.1703, allocations: 57.12 MB / 341.9 MB, free: 6.434 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09634/0.2667, allocations: 51.01 MB / 393 MB, free: 3.371 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2324/0.4991, allocations: 81.6 MB / 474.6 MB, free: 7.449 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001837/0.4993, allocations: 67.97 kB / 474.6 MB, free: 7.383 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 143 * Number of variables: 143 Notification: Performance of Generate backend data structure: time 0.05018/0.5495, allocations: 16.84 MB / 491.5 MB, free: 6.469 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.002e-05/0.5496, allocations: 8 kB / 491.5 MB, free: 6.461 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001946/0.5498, allocations: 79.06 kB / 491.5 MB, free: 6.383 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005019/0.5548, allocations: 1.871 MB / 493.4 MB, free: 4.465 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.792e-05/0.5549, allocations: 23.91 kB / 493.4 MB, free: 4.441 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.376e-05/0.5549, allocations: 32 kB / 493.5 MB, free: 4.41 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0008882/0.5558, allocations: 482.5 kB / 493.9 MB, free: 3.941 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009372/0.5568, allocations: 0.5848 MB / 494.5 MB, free: 3.332 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.988e-05/0.5568, allocations: 9.016 kB / 494.5 MB, free: 3.324 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.694e-05/0.5569, allocations: 0 / 494.5 MB, free: 3.324 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.191e-05/0.5569, allocations: 36.98 kB / 494.6 MB, free: 3.285 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003254/0.5602, allocations: 2.097 MB / 496.7 MB, free: 1.086 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007483/0.561, allocations: 444.1 kB / 497.1 MB, free: 0.6406 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002683/0.5612, allocations: 202 kB / 497.3 MB, free: 448 kB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001157/0.5614, allocations: 174.5 kB / 497.5 MB, free: 236 kB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.371e-05/0.5614, allocations: 34.8 kB / 497.5 MB, free: 192 kB / 362.7 MB Notification: Performance of pre-optimization done (n=43): time 3.026e-06/0.5614, allocations: 0 / 497.5 MB, free: 192 kB / 362.7 MB Notification: Performance of matching and sorting (n=43): time 0.0008194/0.5622, allocations: 415.5 kB / 497.9 MB, free: 15.78 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.731e-05/0.5623, allocations: 85.02 kB / 498 MB, free: 15.68 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005106/0.5628, allocations: 462 kB / 498.4 MB, free: 15.22 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 3.13e-05/0.5629, allocations: 25.7 kB / 498.5 MB, free: 15.19 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001506/0.563, allocations: 291.6 kB / 498.8 MB, free: 14.89 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.664e-05/0.5631, allocations: 122.3 kB / 498.9 MB, free: 14.77 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.556e-05/0.5631, allocations: 0 / 498.9 MB, free: 14.77 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001371/0.5633, allocations: 374.7 kB / 499.2 MB, free: 14.4 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002712/0.5636, allocations: 177.2 kB / 499.4 MB, free: 14.23 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003743/0.564, allocations: 374 kB / 499.8 MB, free: 13.78 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000449/0.5644, allocations: 220.3 kB / 500 MB, free: 13.56 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.577e-06/0.5644, allocations: 0 / 500 MB, free: 13.56 MB / 378.7 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.0009788/0.5654, allocations: 0.5634 MB / 0.4888 GB, free: 12.99 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.588e-05/0.5654, allocations: 7.984 kB / 0.4888 GB, free: 12.98 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.106e-05/0.5654, allocations: 8 kB / 0.4888 GB, free: 12.98 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.124e-05/0.5655, allocations: 12.66 kB / 0.4889 GB, free: 12.96 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004002/0.5659, allocations: 111.8 kB / 0.489 GB, free: 12.86 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.135e-05/0.5659, allocations: 19.98 kB / 0.489 GB, free: 12.84 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000481/0.5664, allocations: 51.56 kB / 0.489 GB, free: 12.79 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.562e-05/0.5665, allocations: 28 kB / 0.4891 GB, free: 12.76 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 29 * Number of states: 0 () * Number of discrete variables: 16 (electronicCommutator.uC[1],electronicCommutator.uC[2],electronicCommutator.uC[3],electronicCommutator.uC[4],electronicCommutator.uC[5],electronicCommutator.fire_p[1],electronicCommutator.fire_p[2],electronicCommutator.fire_p[3],electronicCommutator.fire_p[4],electronicCommutator.fire_p[5],electronicCommutator.fire_n[1],electronicCommutator.fire_n[2],electronicCommutator.fire_n[3],electronicCommutator.fire_n[4],electronicCommutator.fire_n[5],sinCosEvaluation.integralController.local_reset) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (72): * Single equations (assignments): 72 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001477/0.5666, allocations: 138.8 kB / 0.4892 GB, free: 12.62 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000112/0.5667, allocations: 59.25 kB / 0.4892 GB, free: 12.56 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008847/0.5676, allocations: 495.1 kB / 0.4897 GB, free: 12.05 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.234e-06/0.5676, allocations: 4 kB / 0.4897 GB, free: 12.04 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.121e-06/0.5677, allocations: 0 / 0.4897 GB, free: 12.04 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.664e-06/0.5677, allocations: 0 / 0.4897 GB, free: 12.04 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001962/0.5696, allocations: 1.248 MB / 0.4909 GB, free: 10.71 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.462e-06/0.5697, allocations: 7.984 kB / 0.4909 GB, free: 10.71 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002555/0.5699, allocations: 55.89 kB / 0.491 GB, free: 10.65 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.085e-06/0.5699, allocations: 4.312 kB / 0.491 GB, free: 10.65 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.838e-05/0.57, allocations: 12 kB / 0.491 GB, free: 10.64 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.32e-06/0.57, allocations: 4 kB / 0.491 GB, free: 10.63 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.769e-06/0.57, allocations: 8.031 kB / 0.491 GB, free: 10.62 MB / 378.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001026/0.571, allocations: 0.895 MB / 0.4919 GB, free: 9.617 MB / 378.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001384/0.5724, allocations: 1.502 MB / 0.4934 GB, free: 8.004 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002176/0.5727, allocations: 172.3 kB / 0.4935 GB, free: 7.816 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.934e-05/0.5728, allocations: 7.906 kB / 0.4935 GB, free: 7.809 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004032/0.5732, allocations: 19.97 kB / 0.4936 GB, free: 7.789 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001541/0.5733, allocations: 75.81 kB / 0.4936 GB, free: 7.715 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.139e-05/0.5734, allocations: 12 kB / 0.4936 GB, free: 7.703 MB / 378.7 MB Notification: Performance of sort global known variables: time 0.000393/0.5738, allocations: 370.9 kB / 0.494 GB, free: 7.344 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001204/0.575, allocations: 139.5 kB / 0.4941 GB, free: 7.207 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 11 * Number of states: 2 (constantSpeed.phi,sinCosEvaluation.integralController.y) * Number of discrete variables: 15 (electronicCommutator.uC[1],electronicCommutator.uC[2],electronicCommutator.uC[3],electronicCommutator.uC[4],electronicCommutator.uC[5],electronicCommutator.fire_n[5],electronicCommutator.fire_n[4],electronicCommutator.fire_n[3],electronicCommutator.fire_n[2],electronicCommutator.fire_n[1],electronicCommutator.fire_p[5],electronicCommutator.fire_p[4],electronicCommutator.fire_p[3],electronicCommutator.fire_p[2],electronicCommutator.fire_p[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (38): * Single equations (assignments): 38 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002047/0.5752, allocations: 129.2 kB / 0.4943 GB, free: 7.07 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0006565/0.5759, allocations: 449.6 kB / 0.4947 GB, free: 6.633 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.435e-06/0.5759, allocations: 0 / 0.4947 GB, free: 6.633 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003698/0.5762, allocations: 287.8 kB / 0.495 GB, free: 6.352 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003684/0.5766, allocations: 46.08 kB / 0.495 GB, free: 6.309 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003035/0.5797, allocations: 1.236 MB / 0.4962 GB, free: 5.016 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007785/0.5805, allocations: 1.018 MB / 0.4972 GB, free: 3.973 MB / 378.7 MB Notification: Performance of SimCode: time 4.81e-07/0.5805, allocations: 0 / 0.4972 GB, free: 3.973 MB / 378.7 MB (rm -f BLDC_BLDC.Examples.DemoElectronicCommutator.pipe ; mkfifo BLDC_BLDC.Examples.DemoElectronicCommutator.pipe ; head -c 1048576 < BLDC_BLDC.Examples.DemoElectronicCommutator.pipe >> ../files/BLDC_BLDC.Examples.DemoElectronicCommutator.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_BLDC_BLDC_Examples_DemoElectronicCommutator_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 BLDC_BLDC_Examples_DemoElectronicCommutator.fmu > BLDC_BLDC.Examples.DemoElectronicCommutator.pipe 2>&1)