Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BLDC_BLDC.Examples.SMPM_NominalOperation.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.SMPM_NominalOperation,fileNamePrefix="BLDC_BLDC_Examples_SMPM_NominalOperation",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BLDC.Examples.SMPM_NominalOperation,fileNamePrefix="BLDC_BLDC_Examples_SMPM_NominalOperation",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.01514/0.01514, allocations: 2.542 MB / 9.825 MB, free: 448 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.0009361/0.000936, allocations: 184.3 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.197/1.197, allocations: 221.4 MB / 233.4 MB, free: 15.89 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.0008893/0.0008895, allocations: 88.27 kB / 284.8 MB, free: 13.8 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1294/0.1303, allocations: 57.14 MB / 342 MB, free: 4.648 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2306/0.3609, allocations: 51 MB / 393 MB, free: 35.3 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1248/0.4858, allocations: 111.4 MB / 0.4926 GB, free: 3.684 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002052/0.486, allocations: 72.78 kB / 0.4926 GB, free: 3.613 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: 673 * Number of variables: 673 Notification: Performance of Generate backend data structure: time 0.3292/0.8152, allocations: 71.98 MB / 0.5629 GB, free: 34.88 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.828e-05/0.8152, allocations: 15.98 kB / 0.5629 GB, free: 34.86 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003313/0.8186, allocations: 0.5196 MB / 0.5635 GB, free: 34.34 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00781/0.8264, allocations: 2.911 MB / 0.5663 GB, free: 31.43 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001263/0.8266, allocations: 80 kB / 0.5664 GB, free: 31.35 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008422/0.8274, allocations: 159.9 kB / 0.5665 GB, free: 31.19 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.005239/0.8327, allocations: 2.326 MB / 0.5688 GB, free: 28.86 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005786/0.8385, allocations: 2.834 MB / 0.5716 GB, free: 25.89 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.859e-05/0.8386, allocations: 4 kB / 0.5716 GB, free: 25.88 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003022/0.8389, allocations: 3.984 kB / 0.5716 GB, free: 25.88 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.888e-05/0.839, allocations: 129 kB / 0.5717 GB, free: 25.75 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01561/0.8546, allocations: 10.66 MB / 0.5821 GB, free: 14.79 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008393/0.8555, allocations: 0.6931 MB / 0.5828 GB, free: 14.09 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001167/0.8567, allocations: 0.8146 MB / 0.5836 GB, free: 13.28 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003907/0.8606, allocations: 2.447 MB / 0.586 GB, free: 10.79 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.908e-05/0.8607, allocations: 39.34 kB / 0.586 GB, free: 10.74 MB / 378.7 MB Notification: Performance of pre-optimization done (n=94): time 2.454e-06/0.8607, allocations: 0 / 0.586 GB, free: 10.74 MB / 378.7 MB Notification: Performance of matching and sorting (n=132): time 0.01065/0.8713, allocations: 4.939 MB / 0.5908 GB, free: 5.758 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.452e-05/0.8714, allocations: 68.72 kB / 0.5909 GB, free: 5.68 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001625/0.873, allocations: 1.04 MB / 0.5919 GB, free: 4.629 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 8.155e-05/0.8731, allocations: 25.7 kB / 0.5919 GB, free: 4.598 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004319/0.8735, allocations: 1.035 MB / 0.5929 GB, free: 3.547 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003054/0.8739, allocations: 437.5 kB / 0.5934 GB, free: 3.113 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.697e-05/0.8739, allocations: 4 kB / 0.5934 GB, free: 3.109 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 8.219e-05/0.874, allocations: 369.9 kB / 0.5937 GB, free: 2.742 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007835/0.8748, allocations: 0.617 MB / 0.5943 GB, free: 2.125 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000958/0.8758, allocations: 1.118 MB / 0.5954 GB, free: 0.7773 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001303/0.8771, allocations: 0.8602 MB / 0.5963 GB, free: 15.92 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.608e-05/0.8771, allocations: 4 kB / 0.5963 GB, free: 15.91 MB / 394.7 MB Notification: Performance of matching and sorting (n=209) (initialization): time 0.003731/0.8809, allocations: 1.947 MB / 0.5982 GB, free: 13.95 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.846e-05/0.8809, allocations: 4 kB / 0.5982 GB, free: 13.95 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.827e-05/0.8809, allocations: 16 kB / 0.5982 GB, free: 13.93 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003197/0.8813, allocations: 102.2 kB / 0.5983 GB, free: 13.83 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001798/0.8831, allocations: 419.3 kB / 0.5987 GB, free: 13.42 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.576e-05/0.8831, allocations: 31.88 kB / 0.5987 GB, free: 13.39 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001468/0.8846, allocations: 39.95 kB / 0.5987 GB, free: 13.35 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001885/0.8848, allocations: 79.98 kB / 0.5988 GB, free: 13.27 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 75 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (207): * Single equations (assignments): 205 * 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: 0 * 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: Performance of prepare postOptimizeDAE: time 0.0002795/0.8851, allocations: 156.3 kB / 0.599 GB, free: 13.11 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004164/0.8855, allocations: 154.1 kB / 0.5991 GB, free: 12.96 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004085/0.8896, allocations: 1.863 MB / 0.6009 GB, free: 11.08 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.852e-05/0.8896, allocations: 19.94 kB / 0.601 GB, free: 11.06 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.143e-05/0.8897, allocations: 0 / 0.601 GB, free: 11.06 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.633e-05/0.8897, allocations: 7.969 kB / 0.601 GB, free: 11.05 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01168/0.9014, allocations: 5.614 MB / 0.6064 GB, free: 5.34 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.013e-06/0.9014, allocations: 0 / 0.6064 GB, free: 5.34 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000986/0.9024, allocations: 207.7 kB / 0.6066 GB, free: 5.137 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00133/0.9038, allocations: 397.6 kB / 0.607 GB, free: 4.742 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.279e-05/0.9039, allocations: 11.98 kB / 0.607 GB, free: 4.73 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007171/0.911, allocations: 4.459 MB / 0.6114 GB, free: 148 kB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.007201/0.9183, allocations: 4.587 MB / 0.6159 GB, free: 11.43 MB / 410.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.005099/0.9234, allocations: 3.013 MB / 0.6188 GB, free: 8.285 MB / 410.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.006452/0.9299, allocations: 4.361 MB / 0.6231 GB, free: 3.789 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001191/0.9311, allocations: 371.1 kB / 0.6234 GB, free: 3.406 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005605/0.9317, allocations: 4 kB / 0.6234 GB, free: 3.402 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001085/0.9328, allocations: 39.95 kB / 0.6235 GB, free: 3.363 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001532/0.933, allocations: 68.88 kB / 0.6235 GB, free: 3.297 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.63e-05/0.9331, allocations: 43.98 kB / 0.6236 GB, free: 3.254 MB / 410.7 MB Notification: Performance of sort global known variables: time 0.001528/0.9346, allocations: 0.7725 MB / 0.6243 GB, free: 2.48 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.003001/0.9376, allocations: 0.5077 MB / 0.6248 GB, free: 1.973 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * Number of states: 1 ($STATESET1.x) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (101): * Single equations (assignments): 99 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {3 28} Notification: Performance of Backend phase and start with SimCode phase: time 0.0008143/0.9384, allocations: 382.9 kB / 0.6252 GB, free: 1.621 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.002998/0.9414, allocations: 1.737 MB / 0.6269 GB, free: 15.84 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 6.633e-06/0.9415, allocations: 4.75 kB / 0.6269 GB, free: 15.84 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001716/0.9432, allocations: 1.05 MB / 0.6279 GB, free: 14.76 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001817/0.945, allocations: 335.6 kB / 0.6282 GB, free: 14.43 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007957/0.953, allocations: 3.714 MB / 0.6319 GB, free: 10.62 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0023/0.9553, allocations: 2.12 MB / 0.6339 GB, free: 8.469 MB / 426.7 MB Notification: Performance of SimCode: time 6.12e-07/0.9554, allocations: 4 kB / 0.6339 GB, free: 8.465 MB / 426.7 MB (rm -f BLDC_BLDC.Examples.SMPM_NominalOperation.pipe ; mkfifo BLDC_BLDC.Examples.SMPM_NominalOperation.pipe ; head -c 1048576 < BLDC_BLDC.Examples.SMPM_NominalOperation.pipe >> ../files/BLDC_BLDC.Examples.SMPM_NominalOperation.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_BLDC_BLDC_Examples_SMPM_NominalOperation_fmu --startTime=0 --stopTime=0.1 --timeout=50 --tolerance=1e-06 BLDC_BLDC_Examples_SMPM_NominalOperation.fmu > BLDC_BLDC.Examples.SMPM_NominalOperation.pipe 2>&1)