Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.AbsoluteSensor2.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.MultiBody.Sensors.AbsoluteSensor2,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Sensors_AbsoluteSensor2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Sensors.AbsoluteSensor2,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Sensors_AbsoluteSensor2",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.001442/0.001442, allocations: 209.3 kB / 8.541 MB, free: 1.828 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.226/1.226, allocations: 225.5 MB / 234.4 MB, free: 3.379 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009277/0.0009277, allocations: 93.67 kB / 286.3 MB, free: 5.27 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1708/0.1708, allocations: 45.14 MB / 383.3 MB, free: 476 kB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1837/0.3546, allocations: 69.37 MB / 452.7 MB, free: 76.11 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07795/0.4325, allocations: 63.24 MB / 0.5039 GB, free: 12.94 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2625/0.6951, allocations: 106.9 MB / 0.6083 GB, free: 12.13 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002078/0.6953, allocations: 76.89 kB / 0.6083 GB, free: 12.09 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1568 * Number of variables: 1568 Notification: Performance of Generate backend data structure: time 0.2032/0.8985, allocations: 81.39 MB / 0.6878 GB, free: 2.879 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.298e-05/0.8986, allocations: 16 kB / 0.6878 GB, free: 2.863 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01336/0.9119, allocations: 2.72 MB / 0.6905 GB, free: 136 kB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005245/0.9172, allocations: 2.293 MB / 0.6927 GB, free: 13.79 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001341/0.9174, allocations: 128 kB / 0.6928 GB, free: 13.66 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008014/0.9182, allocations: 228 kB / 0.6931 GB, free: 13.44 MB / 490.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.009543/0.9277, allocations: 6.596 MB / 0.6995 GB, free: 6.84 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01316/0.9409, allocations: 9.853 MB / 0.7091 GB, free: 12.04 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.00012/0.941, allocations: 47.56 kB / 0.7092 GB, free: 11.99 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006024/0.9417, allocations: 28 kB / 0.7092 GB, free: 11.96 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001406/0.9431, allocations: 1.17 MB / 0.7103 GB, free: 10.78 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1701/1.113, allocations: 45.49 MB / 0.7548 GB, free: 179.8 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002288/1.115, allocations: 2.732 MB / 0.7574 GB, free: 178.6 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009815/1.116, allocations: 1.016 MB / 0.7584 GB, free: 178.5 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 7.782e-05/1.117, allocations: 28.72 kB / 0.7585 GB, free: 178.5 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.776e-05/1.117, allocations: 44.28 kB / 0.7585 GB, free: 178.5 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=171): time 3.717e-06/1.117, allocations: 2.297 kB / 0.7585 GB, free: 178.5 MB / 0.5261 GB Notification: Performance of matching and sorting (n=171): time 0.003764/1.12, allocations: 2.433 MB / 0.7609 GB, free: 178.4 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.144e-05/1.12, allocations: 166.3 kB / 0.761 GB, free: 178.3 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003084/1.124, allocations: 3.124 MB / 0.7641 GB, free: 178 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 7.635e-05/1.124, allocations: 25.7 kB / 0.7641 GB, free: 178 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.001164/1.125, allocations: 3.18 MB / 0.7672 GB, free: 176.4 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004417/1.125, allocations: 0.6665 MB / 0.7679 GB, free: 176.1 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002442/1.125, allocations: 0 / 0.7679 GB, free: 176.1 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0003729/1.126, allocations: 0.6541 MB / 0.7685 GB, free: 175.7 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002562/1.128, allocations: 1.92 MB / 0.7704 GB, free: 175.7 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003396/1.132, allocations: 6.354 MB / 0.7766 GB, free: 169.9 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003785/1.136, allocations: 3.597 MB / 0.7801 GB, free: 169.9 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.524e-05/1.136, allocations: 47.75 kB / 0.7801 GB, free: 169.9 MB / 0.5261 GB Notification: Performance of matching and sorting (n=903) (initialization): time 0.009355/1.145, allocations: 7.141 MB / 0.7871 GB, free: 169.3 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.465e-05/1.145, allocations: 3.969 kB / 0.7871 GB, free: 169.3 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001068/1.145, allocations: 158 kB / 0.7873 GB, free: 169.3 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001625/1.145, allocations: 234.4 kB / 0.7875 GB, free: 169.3 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004156/1.15, allocations: 1.56 MB / 0.789 GB, free: 169.1 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000151/1.15, allocations: 310.3 kB / 0.7893 GB, free: 169.1 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003791/1.154, allocations: 0.7813 MB / 0.7901 GB, free: 168.6 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004374/1.154, allocations: 439.8 kB / 0.7905 GB, free: 168.6 MB / 0.5261 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 730 * Number of states: 0 () * Number of discrete variables: 23 (freeMotion.arrow.arrowLine.twoHeadedArrow,freeMotion.arrow.headAtOrigin,freeMotion.arrowColor[3],freeMotion.arrowColor[2],freeMotion.arrowColor[1],frame_a.color_x[3],frame_a.color_x[2],frame_a.color_x[1],fixedRotation.color[3],fixedRotation.color[2],fixedRotation.color[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1],world.groundColor[3],world.groundColor[2],world.groundColor[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (855): * Single equations (assignments): 849 * Array equations: 6 * 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.0005407/1.155, allocations: 476.9 kB / 0.7909 GB, free: 168.2 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003409/1.155, allocations: 300.5 kB / 0.7912 GB, free: 168.1 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002264/1.157, allocations: 1.782 MB / 0.793 GB, free: 167.9 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.662e-05/1.157, allocations: 33.97 kB / 0.793 GB, free: 167.9 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.675e-06/1.157, allocations: 0 / 0.793 GB, free: 167.9 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.071e-05/1.157, allocations: 6.375 kB / 0.793 GB, free: 167.9 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007417/1.165, allocations: 5.762 MB / 0.7986 GB, free: 166.9 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.398e-06/1.165, allocations: 11.58 kB / 0.7986 GB, free: 166.9 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001005/1.166, allocations: 213.2 kB / 0.7989 GB, free: 166.9 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.402e-05/1.166, allocations: 18.66 kB / 0.7989 GB, free: 166.9 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001023/1.166, allocations: 12.91 kB / 0.7989 GB, free: 166.9 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.638e-06/1.166, allocations: 17.06 kB / 0.7989 GB, free: 166.9 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.821e-06/1.166, allocations: 9.5 kB / 0.7989 GB, free: 166.9 MB / 0.5261 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002547/1.168, allocations: 3.426 MB / 0.8023 GB, free: 165.3 MB / 0.5261 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.00261/1.171, allocations: 3.859 MB / 0.806 GB, free: 162.9 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003575/1.171, allocations: 366 kB / 0.8064 GB, free: 162.6 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003735/1.172, allocations: 7.906 kB / 0.8064 GB, free: 162.6 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009991/1.173, allocations: 37.27 kB / 0.8064 GB, free: 162.6 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001535/1.173, allocations: 83.89 kB / 0.8065 GB, free: 162.6 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000114/1.173, allocations: 47.34 kB / 0.8065 GB, free: 162.5 MB / 0.5261 GB Notification: Performance of sort global known variables: time 0.002116/1.175, allocations: 2.04 MB / 0.8085 GB, free: 161.8 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.005132/1.18, allocations: 0.9985 MB / 0.8095 GB, free: 161.6 MB / 0.5261 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 30 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (125): * Single equations (assignments): 119 * Array equations: 6 * 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.0003072/1.181, allocations: 143.4 kB / 0.8096 GB, free: 161.5 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.005274/1.186, allocations: 4.421 MB / 0.814 GB, free: 159.4 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 3.186e-06/1.186, allocations: 8 kB / 0.814 GB, free: 159.4 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.001063/1.187, allocations: 1.05 MB / 0.815 GB, free: 158.5 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001004/1.188, allocations: 263.2 kB / 0.8152 GB, free: 158.2 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00995/1.198, allocations: 7.276 MB / 0.8224 GB, free: 151.6 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003633/1.202, allocations: 3.577 MB / 0.8258 GB, free: 148.8 MB / 0.5261 GB Notification: Performance of SimCode: time 5.62e-07/1.202, allocations: 0 / 0.8258 GB, free: 148.8 MB / 0.5261 GB (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.AbsoluteSensor2.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.AbsoluteSensor2.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.AbsoluteSensor2.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.AbsoluteSensor2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.AbsoluteSensor2_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_MultiBody_Sensors_AbsoluteSensor2_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_MultiBody_Sensors_AbsoluteSensor2.fmu > ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.AbsoluteSensor2.pipe 2>&1)