Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr HanserModelica_HanserModelica.Rotational.Drive.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.Rotational.Drive,fileNamePrefix="HanserModelica_HanserModelica_Rotational_Drive",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HanserModelica.Rotational.Drive,fileNamePrefix="HanserModelica_HanserModelica_Rotational_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 4.0.0+maint.om/package.mo): time 0.006778/0.006778, allocations: 182.2 kB / 7.46 MB, free: 2.5 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.06819/0.06819, allocations: 8.709 MB / 16.58 MB, free: 432 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.4/2.4, allocations: 221.4 MB / 240.5 MB, free: 8.188 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.001118/0.001118, allocations: 101.1 kB / 293.5 MB, free: 5.387 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2529/0.2541, allocations: 58.66 MB / 352.2 MB, free: 10.68 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6163/0.8704, allocations: 52.54 MB / 404.7 MB, free: 24.69 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1983/1.069, allocations: 81.39 MB / 486.1 MB, free: 7.176 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004138/1.069, allocations: 71.95 kB / 486.2 MB, free: 7.105 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: 28 * Number of variables: 28 Notification: Performance of Generate backend data structure: time 0.02709/1.096, allocations: 5.197 MB / 491.4 MB, free: 1.883 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 9.077e-05/1.097, allocations: 8 kB / 491.4 MB, free: 1.875 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001818/1.097, allocations: 27.7 kB / 491.4 MB, free: 1.848 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008509/1.098, allocations: 246.9 kB / 491.6 MB, free: 1.566 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.544e-05/1.098, allocations: 4 kB / 491.6 MB, free: 1.562 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.327e-05/1.098, allocations: 11.91 kB / 491.7 MB, free: 1.551 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003032/1.098, allocations: 60.45 kB / 491.7 MB, free: 1.492 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003736/1.099, allocations: 125.2 kB / 491.8 MB, free: 1.359 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.693e-05/1.099, allocations: 0 / 491.8 MB, free: 1.359 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.558e-05/1.099, allocations: 0 / 491.8 MB, free: 1.359 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.572e-05/1.099, allocations: 4 kB / 491.8 MB, free: 1.355 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001435/1.1, allocations: 0.6037 MB / 492.4 MB, free: 0.6953 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002377/1.1, allocations: 74.66 kB / 492.5 MB, free: 0.6133 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001012/1.1, allocations: 36.89 kB / 492.6 MB, free: 0.5742 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.638e-05/1.101, allocations: 4 kB / 492.6 MB, free: 0.5703 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001977/1.101, allocations: 75.52 kB / 492.6 MB, free: 496 kB / 362.7 MB Notification: Performance of pre-optimization done (n=10): time 2.454e-06/1.101, allocations: 0 / 492.6 MB, free: 496 kB / 362.7 MB Notification: Performance of matching and sorting (n=10): time 0.0004426/1.101, allocations: 105.4 kB / 492.7 MB, free: 384 kB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.411e-05/1.101, allocations: 59.34 kB / 492.8 MB, free: 312 kB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004118/1.102, allocations: 235 kB / 493 MB, free: 68 kB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 3.358e-05/1.102, allocations: 29.7 kB / 493.1 MB, free: 32 kB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001387/1.102, allocations: 124 kB / 493.2 MB, free: 15.9 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.67e-05/1.102, allocations: 35.55 kB / 493.2 MB, free: 15.87 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.648e-06/1.102, allocations: 96 / 493.2 MB, free: 15.87 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0002401/1.102, allocations: 338.8 kB / 493.5 MB, free: 15.53 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.534e-05/1.102, allocations: 20 kB / 493.6 MB, free: 15.51 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001196/1.102, allocations: 64.28 kB / 493.6 MB, free: 15.43 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001222/1.103, allocations: 39.92 kB / 493.7 MB, free: 15.39 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.604e-06/1.103, allocations: 0 / 493.7 MB, free: 15.39 MB / 378.7 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0004576/1.103, allocations: 133.3 kB / 493.8 MB, free: 15.25 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.002e-05/1.103, allocations: 4 kB / 493.8 MB, free: 15.25 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.013e-05/1.103, allocations: 128 / 493.8 MB, free: 15.25 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.03e-05/1.103, allocations: 8 kB / 493.8 MB, free: 15.24 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003056/1.104, allocations: 27.98 kB / 493.8 MB, free: 15.21 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.329e-05/1.104, allocations: 0 / 493.8 MB, free: 15.21 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001621/1.104, allocations: 7.906 kB / 493.8 MB, free: 15.21 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.738e-05/1.104, allocations: 15.98 kB / 493.9 MB, free: 15.19 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 5 ($whenCondition1,$PRE.combiTimeTable.nextTimeEvent,combiTimeTable.nextTimeEvent,$PRE.combiTimeTable.nextTimeEventScaled,combiTimeTable.nextTimeEventScaled) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (16): * Single equations (assignments): 16 * 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.0002415/1.104, allocations: 116.8 kB / 494 MB, free: 15.07 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.978e-05/1.104, allocations: 15.81 kB / 494 MB, free: 15.05 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004334/1.105, allocations: 130.9 kB / 494.1 MB, free: 14.93 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.293e-06/1.105, allocations: 0 / 494.1 MB, free: 14.93 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.799e-06/1.105, allocations: 0 / 494.1 MB, free: 14.93 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.499e-05/1.105, allocations: 7.984 kB / 494.1 MB, free: 14.92 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004035/1.105, allocations: 214 kB / 494.3 MB, free: 14.67 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.496e-06/1.105, allocations: 4 kB / 494.3 MB, free: 14.67 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002027/1.105, allocations: 19.92 kB / 494.4 MB, free: 14.65 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.777e-06/1.105, allocations: 4 kB / 494.4 MB, free: 14.64 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.146e-05/1.105, allocations: 0 / 494.4 MB, free: 14.64 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.494e-06/1.105, allocations: 0 / 494.4 MB, free: 14.64 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.206e-06/1.105, allocations: 0 / 494.4 MB, free: 14.64 MB / 378.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0005079/1.106, allocations: 186.4 kB / 494.5 MB, free: 14.45 MB / 378.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0007434/1.107, allocations: 0.5874 MB / 495.1 MB, free: 13.84 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001388/1.107, allocations: 101.2 kB / 495.2 MB, free: 13.72 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.804e-05/1.107, allocations: 4 kB / 495.2 MB, free: 13.71 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000114/1.107, allocations: 4.125 kB / 495.2 MB, free: 13.71 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.568e-05/1.107, allocations: 11.92 kB / 495.2 MB, free: 13.7 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.011e-05/1.107, allocations: 4 kB / 495.2 MB, free: 13.7 MB / 378.7 MB Notification: Performance of sort global known variables: time 0.0003189/1.107, allocations: 197.5 kB / 495.4 MB, free: 13.5 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001652/1.109, allocations: 51.92 kB / 495.5 MB, free: 13.45 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (inertia.w,load.phi) * Number of discrete variables: 3 ($whenCondition1,combiTimeTable.nextTimeEvent,combiTimeTable.nextTimeEventScaled) * Number of discrete states: 2 (combiTimeTable.nextTimeEvent,combiTimeTable.nextTimeEventScaled) * Top-level inputs: 0 Notification: Strong component statistics for simulation (11): * Single equations (assignments): 9 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.001374/1.11, allocations: 303.3 kB / 495.8 MB, free: 13.23 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0003951/1.111, allocations: 83.92 kB / 495.9 MB, free: 13.15 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 5.811e-06/1.111, allocations: 0 / 495.9 MB, free: 13.15 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001241/1.111, allocations: 35.94 kB / 495.9 MB, free: 13.12 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005529/1.112, allocations: 40.2 kB / 495.9 MB, free: 13.08 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001365/1.113, allocations: 373.8 kB / 496.3 MB, free: 12.7 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006418/1.114, allocations: 0.7679 MB / 497.1 MB, free: 11.91 MB / 378.7 MB Notification: Performance of SimCode: time 5.21e-07/1.114, allocations: 7.875 kB / 497.1 MB, free: 11.9 MB / 378.7 MB (rm -f HanserModelica_HanserModelica.Rotational.Drive.pipe ; mkfifo HanserModelica_HanserModelica.Rotational.Drive.pipe ; head -c 1048576 < HanserModelica_HanserModelica.Rotational.Drive.pipe >> ../files/HanserModelica_HanserModelica.Rotational.Drive.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_HanserModelica_HanserModelica_Rotational_Drive_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 HanserModelica_HanserModelica_Rotational_Drive.fmu > HanserModelica_HanserModelica.Rotational.Drive.pipe 2>&1)