Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical.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/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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) 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) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_FourbarVariants_UniversalSpherical",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_FourbarVariants_UniversalSpherical",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.001037/0.001037, allocations: 186.5 kB / 8.523 MB, free: 1.738 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.252/1.252, allocations: 221.4 MB / 230.3 MB, free: 7.625 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.001035/0.001035, allocations: 89.86 kB / 281.2 MB, free: 5.461 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2048/0.2048, allocations: 44.15 MB / 376.1 MB, free: 3.227 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2342/0.4391, allocations: 68.02 MB / 444.1 MB, free: 15.52 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1477/0.5868, allocations: 61.91 MB / 0.4942 GB, free: 1.535 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4415/1.028, allocations: 110.5 MB / 0.6021 GB, free: 2.18 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002973/1.029, allocations: 91.09 kB / 0.6022 GB, free: 2.094 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: 2242 * Number of variables: 2242 Notification: Performance of Generate backend data structure: time 0.6776/1.706, allocations: 130.7 MB / 0.7298 GB, free: 103.9 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 4.294e-05/1.706, allocations: 14.88 kB / 0.7298 GB, free: 103.9 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03241/1.739, allocations: 7.633 MB / 0.7372 GB, free: 103.5 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02135/1.76, allocations: 7.106 MB / 0.7442 GB, free: 102.6 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005208/1.761, allocations: 191 kB / 0.7444 GB, free: 102.6 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003838/1.765, allocations: 356.8 kB / 0.7447 GB, free: 102.6 MB / 0.4948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01855/1.783, allocations: 10.43 MB / 0.7549 GB, free: 102.2 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03579/1.819, allocations: 14.35 MB / 0.7689 GB, free: 95.21 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005571/1.82, allocations: 76.67 kB / 0.769 GB, free: 95.19 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002989/1.823, allocations: 35.16 kB / 0.769 GB, free: 95.19 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002745/1.825, allocations: 1.727 MB / 0.7707 GB, free: 94.88 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08179/1.907, allocations: 62.43 MB / 0.8317 GB, free: 41.01 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.006256/1.914, allocations: 4.678 MB / 0.8362 GB, free: 36.58 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004955/1.919, allocations: 3.627 MB / 0.8398 GB, free: 33.22 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02482/1.943, allocations: 15.5 MB / 0.8549 GB, free: 17.2 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.638e-05/1.944, allocations: 56.56 kB / 0.855 GB, free: 17.13 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=295): time 8.326e-06/1.944, allocations: 4 kB / 0.855 GB, free: 17.13 MB / 0.4948 GB Notification: Performance of matching and sorting (n=345): time 0.07454/2.018, allocations: 29.09 MB / 0.8834 GB, free: 4.035 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001185/2.018, allocations: 218 kB / 0.8836 GB, free: 3.777 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.1994/2.218, allocations: 4.329 MB / 0.8878 GB, free: 167.5 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.0006584/2.218, allocations: 25.7 kB / 0.8878 GB, free: 167.5 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.001865/2.22, allocations: 4.174 MB / 0.8919 GB, free: 166.2 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.001032/2.221, allocations: 1.246 MB / 0.8931 GB, free: 165.4 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004668/2.222, allocations: 0 / 0.8931 GB, free: 165.4 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0003387/2.222, allocations: 0.6968 MB / 0.8938 GB, free: 165.1 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004755/2.227, allocations: 4.554 MB / 0.8983 GB, free: 165.1 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006377/2.233, allocations: 9.743 MB / 0.9078 GB, free: 158.4 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007187/2.24, allocations: 6.609 MB / 0.9142 GB, free: 158.4 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.069e-05/2.241, allocations: 50.41 kB / 0.9143 GB, free: 158.4 MB / 0.5105 GB Notification: Performance of matching and sorting (n=1206) (initialization): time 0.03668/2.277, allocations: 17.71 MB / 0.9316 GB, free: 156.2 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 2.21e-05/2.277, allocations: 6.562 kB / 0.9316 GB, free: 156.2 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002172/2.278, allocations: 182.4 kB / 0.9317 GB, free: 156.2 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0206/2.298, allocations: 5.342 MB / 0.937 GB, free: 155.4 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007828/2.306, allocations: 2.093 MB / 0.939 GB, free: 155.2 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02469/2.331, allocations: 20.89 MB / 0.9594 GB, free: 145.4 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007514/2.338, allocations: 313.1 kB / 0.9597 GB, free: 145.4 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001915/2.34, allocations: 0.5314 MB / 0.9602 GB, free: 145.3 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 841 * Number of states: 0 () * Number of discrete variables: 45 (fixedFrame4.color_x[3],fixedFrame4.color_x[2],fixedFrame4.color_x[1],b3.color[3],b3.color[2],b3.color[1],universalSpherical.cylinderColor[3],universalSpherical.cylinderColor[2],universalSpherical.cylinderColor[1],universalSpherical.sphereColor[3],universalSpherical.sphereColor[2],universalSpherical.sphereColor[1],universalSpherical.rodColor[3],universalSpherical.rodColor[2],universalSpherical.rodColor[1],b2.color[3],b2.color[2],b2.color[1],b2.body.sphereColor[3],b2.body.sphereColor[2],b2.body.sphereColor[1],b1.color[3],b1.color[2],b1.color[1],b1.body.sphereColor[3],b1.body.sphereColor[2],b1.body.sphereColor[1],j2.boxColor[3],j2.boxColor[2],j2.boxColor[1],j1.cylinderColor[3],j1.cylinderColor[2],j1.cylinderColor[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 (1115): * Single equations (assignments): 1107 * Array equations: 6 * 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): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 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 prepare postOptimizeDAE: time 0.00271/2.343, allocations: 0.5654 MB / 0.9608 GB, free: 144.8 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001282/2.344, allocations: 479.7 kB / 0.9612 GB, free: 144.6 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02963/2.374, allocations: 12.08 MB / 0.973 GB, free: 140 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001659/2.374, allocations: 54.89 kB / 0.9731 GB, free: 140 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.552e-05/2.374, allocations: 12 kB / 0.9731 GB, free: 140 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.035e-05/2.374, allocations: 17.3 kB / 0.9731 GB, free: 140 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04711/2.421, allocations: 22.52 MB / 0.9951 GB, free: 121.6 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.042e-05/2.421, allocations: 11.94 kB / 0.9951 GB, free: 121.6 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003358/2.425, allocations: 0.5106 MB / 0.9956 GB, free: 121.2 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01849/2.443, allocations: 4.332 MB / 0.9998 GB, free: 118.5 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007731/2.444, allocations: 12 kB / 0.9999 GB, free: 118.5 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.019/2.463, allocations: 16.81 MB / 1.016 GB, free: 103.6 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.967e-06/2.463, allocations: 11.94 kB / 1.016 GB, free: 103.6 MB / 0.5105 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.03209/2.495, allocations: 17.31 MB / 1.033 GB, free: 87.96 MB / 0.5105 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.04778/2.543, allocations: 33.52 MB / 1.066 GB, free: 54.13 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001427/2.545, allocations: 0.4949 MB / 1.066 GB, free: 53.61 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00172/2.546, allocations: 11.94 kB / 1.066 GB, free: 53.6 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003713/2.55, allocations: 131.7 kB / 1.067 GB, free: 53.47 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008274/2.551, allocations: 157.7 kB / 1.067 GB, free: 53.31 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005849/2.552, allocations: 87.36 kB / 1.067 GB, free: 53.23 MB / 0.5105 GB Notification: Performance of sort global known variables: time 0.005419/2.557, allocations: 2.9 MB / 1.07 GB, free: 50.34 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.009871/2.567, allocations: 1.484 MB / 1.071 GB, free: 48.87 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 23 * Number of states: 2 (j1.phi,j1.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (260): * Single equations (assignments): 252 * Array equations: 6 * 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): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 38} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0008716/2.568, allocations: 173.9 kB / 1.071 GB, free: 48.7 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.0143/2.582, allocations: 10.31 MB / 1.081 GB, free: 38.41 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.18e-05/2.582, allocations: 4 kB / 1.081 GB, free: 38.4 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.005669/2.588, allocations: 3.914 MB / 1.085 GB, free: 34.48 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00337/2.591, allocations: 448.4 kB / 1.086 GB, free: 34.05 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.227/2.818, allocations: 13.71 MB / 1.099 GB, free: 159.8 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00811/2.826, allocations: 5.147 MB / 1.104 GB, free: 158.9 MB / 0.5105 GB Notification: Performance of SimCode: time 8.11e-07/2.826, allocations: 0 / 1.104 GB, free: 158.9 MB / 0.5105 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_MultiBody_FourbarVariants_UniversalSpherical_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_MultiBody_FourbarVariants_UniversalSpherical.fmu > ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical.pipe 2>&1)