Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.MultiBody.FourbarVariants.JointUSR.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.FourbarVariants.JointUSR,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_MultiBody_FourbarVariants_JointUSR",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.FourbarVariants.JointUSR,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_MultiBody_FourbarVariants_JointUSR",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 3.2.3+maint.om/package.mo): time 0.001341/0.00134, allocations: 189.7 kB / 7.804 MB, free: 2.488 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.51/1.51, allocations: 205.2 MB / 213.4 MB, free: 13.86 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001073/0.001073, allocations: 88.55 kB / 261.4 MB, free: 13.56 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2335/0.2335, allocations: 43.48 MB / 352.8 MB, free: 1.977 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2193/0.4529, allocations: 64.97 MB / 417.8 MB, free: 40.49 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3252/0.7781, allocations: 58.84 MB / 476.6 MB, free: 5.195 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1609/0.9391, allocations: 116.7 MB / 0.5795 GB, free: 14.13 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002033/0.9394, allocations: 87.39 kB / 0.5796 GB, free: 14.05 MB / 426.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2782 * Number of variables: 2782 Notification: Performance of Generate backend data structure: time 0.706/1.645, allocations: 174.4 MB / 0.7499 GB, free: 57.4 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.27e-05/1.645, allocations: 12 kB / 0.7499 GB, free: 57.39 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02981/1.675, allocations: 6.077 MB / 0.7558 GB, free: 51.29 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02701/1.702, allocations: 9.921 MB / 0.7655 GB, free: 41.37 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006911/1.703, allocations: 248 kB / 0.7657 GB, free: 41.12 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005951/1.709, allocations: 459.7 kB / 0.7662 GB, free: 40.68 MB / 474.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.027/1.736, allocations: 13.59 MB / 0.7794 GB, free: 27.09 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04841/1.785, allocations: 18.03 MB / 0.797 GB, free: 7.629 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006561/1.785, allocations: 95.11 kB / 0.7971 GB, free: 7.535 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.005023/1.79, allocations: 44 kB / 0.7972 GB, free: 7.492 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003189/1.794, allocations: 2.096 MB / 0.7992 GB, free: 5.398 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3433/2.137, allocations: 80.71 MB / 0.878 GB, free: 83.51 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007569/2.144, allocations: 5.131 MB / 0.8831 GB, free: 82.86 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006156/2.151, allocations: 4.276 MB / 0.8872 GB, free: 82.82 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03464/2.185, allocations: 20.09 MB / 0.9068 GB, free: 74.96 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.292e-05/2.185, allocations: 71.44 kB / 0.9069 GB, free: 74.89 MB / 490.7 MB Notification: Performance of pre-optimization done (n=340): time 8.075e-06/2.185, allocations: 2.438 kB / 0.9069 GB, free: 74.89 MB / 490.7 MB Notification: Performance of matching and sorting (n=432): time 0.0713/2.257, allocations: 25.91 MB / 0.9322 GB, free: 65.62 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000122/2.257, allocations: 198.5 kB / 0.9324 GB, free: 65.43 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01434/2.271, allocations: 5.155 MB / 0.9374 GB, free: 63.61 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001092/2.272, allocations: 30.23 kB / 0.9375 GB, free: 63.57 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003906/2.276, allocations: 5.086 MB / 0.9424 GB, free: 59.77 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002193/2.279, allocations: 1.539 MB / 0.9439 GB, free: 58.61 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009387/2.28, allocations: 0 / 0.9439 GB, free: 58.61 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0005358/2.28, allocations: 0.776 MB / 0.9447 GB, free: 58.11 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005827/2.286, allocations: 4.121 MB / 0.9487 GB, free: 56.64 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008779/2.295, allocations: 10.19 MB / 0.9587 GB, free: 47.04 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0117/2.306, allocations: 6.539 MB / 0.9651 GB, free: 45.03 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002087/2.307, allocations: 67.56 kB / 0.9651 GB, free: 44.97 MB / 490.7 MB Notification: Performance of matching and sorting (n=1440) (initialization): time 0.03804/2.345, allocations: 14.92 MB / 0.9797 GB, free: 32.46 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.178e-05/2.345, allocations: 4 kB / 0.9797 GB, free: 32.46 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0007113/2.346, allocations: 216 kB / 0.9799 GB, free: 32.25 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.008418/2.354, allocations: 2.229 MB / 0.9821 GB, free: 30.58 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01032/2.364, allocations: 2.508 MB / 0.9845 GB, free: 28.38 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01807/2.382, allocations: 10.66 MB / 0.9949 GB, free: 19.01 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009696/2.392, allocations: 427.1 kB / 0.9953 GB, free: 18.67 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00268/2.395, allocations: 0.6155 MB / 0.9959 GB, free: 18.06 MB / 490.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 982 * Number of states: 0 () * Number of discrete variables: 49 (jointUSR.revolute.positiveBranch,Body3.sphereColor[3],Body3.sphereColor[2],Body3.sphereColor[1],Body2.sphereColor[3],Body2.sphereColor[2],Body2.sphereColor[1],Body1.sphereColor[3],Body1.sphereColor[2],Body1.sphereColor[1],jointUSR.rod1Color[3],jointUSR.rod1Color[2],jointUSR.rod1Color[1],jointUSR.cylinderColor[3],jointUSR.cylinderColor[2],jointUSR.cylinderColor[1],jointUSR.sphereColor[3],jointUSR.sphereColor[2],jointUSR.sphereColor[1],jointUSR.revoluteColor[3],jointUSR.revoluteColor[2],jointUSR.revoluteColor[1],fixedFrame.color_x[3],fixedFrame.color_x[2],fixedFrame.color_x[1],b3.color[3],b3.color[2],b3.color[1],b2.color[3],b2.color[2],b2.color[1],b2.body.sphereColor[3],b2.body.sphereColor[2],b2.body.sphereColor[1],j2.boxColor[3],j2.boxColor[2],j2.boxColor[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 (1339): * Single equations (assignments): 1332 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 52} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.003626/2.399, allocations: 0.6398 MB / 0.9966 GB, free: 17.41 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001926/2.401, allocations: 0.5707 MB / 0.9971 GB, free: 16.84 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01956/2.42, allocations: 8.098 MB / 1.005 GB, free: 10.22 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001637/2.42, allocations: 59.52 kB / 1.005 GB, free: 10.17 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.592e-05/2.42, allocations: 11.94 kB / 1.005 GB, free: 10.16 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.99e-05/2.42, allocations: 16.83 kB / 1.005 GB, free: 10.16 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3125/2.733, allocations: 17.81 MB / 1.023 GB, free: 115.9 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.814e-05/2.733, allocations: 11.44 kB / 1.023 GB, free: 115.9 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003441/2.736, allocations: 0.6191 MB / 1.023 GB, free: 115.9 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00672/2.743, allocations: 1.74 MB / 1.025 GB, free: 115.9 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008189/2.744, allocations: 28.47 kB / 1.025 GB, free: 115.9 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01448/2.759, allocations: 8.993 MB / 1.034 GB, free: 114.6 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.626e-05/2.759, allocations: 21.06 kB / 1.034 GB, free: 114.6 MB / 490.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.02207/2.781, allocations: 14.37 MB / 1.048 GB, free: 111.3 MB / 490.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.03674/2.818, allocations: 27.38 MB / 1.074 GB, free: 104.3 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004141/2.822, allocations: 1.148 MB / 1.076 GB, free: 103.9 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001924/2.824, allocations: 16.91 kB / 1.076 GB, free: 103.9 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004112/2.828, allocations: 137.4 kB / 1.076 GB, free: 103.9 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005363/2.828, allocations: 218.6 kB / 1.076 GB, free: 103.8 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003105/2.829, allocations: 116.1 kB / 1.076 GB, free: 103.8 MB / 490.7 MB Notification: Performance of sort global known variables: time 0.007334/2.836, allocations: 3.458 MB / 1.079 GB, free: 102.6 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.009749/2.846, allocations: 1.677 MB / 1.081 GB, free: 102.6 MB / 490.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 52 * Number of states: 2 (j2.s,j2.v) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (343): * Single equations (assignments): 336 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 42} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001125/2.847, allocations: 230.9 kB / 1.081 GB, free: 102.5 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.02353/2.87, allocations: 9.613 MB / 1.091 GB, free: 99.61 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 2.751e-05/2.871, allocations: 7.219 kB / 1.091 GB, free: 99.61 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01103/2.882, allocations: 3.295 MB / 1.094 GB, free: 98.41 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005963/2.888, allocations: 0.5653 MB / 1.094 GB, free: 98.17 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03374/2.921, allocations: 15.08 MB / 1.109 GB, free: 92.83 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0107/2.932, allocations: 6.253 MB / 1.115 GB, free: 88.56 MB / 490.7 MB Notification: Performance of SimCode: time 2.474e-06/2.932, allocations: 0 / 1.115 GB, free: 88.56 MB / 490.7 MB (rm -f ModelicaTest_3.2.3_ModelicaTest.MultiBody.FourbarVariants.JointUSR.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.MultiBody.FourbarVariants.JointUSR.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.MultiBody.FourbarVariants.JointUSR.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.FourbarVariants.JointUSR.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.MultiBody.FourbarVariants.JointUSR_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_MultiBody_FourbarVariants_JointUSR_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_MultiBody_FourbarVariants_JointUSR.fmu > ModelicaTest_3.2.3_ModelicaTest.MultiBody.FourbarVariants.JointUSR.pipe 2>&1)