Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.JointSSR.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.JointSSR,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_FourbarVariants_JointSSR",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.FourbarVariants.JointSSR,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_FourbarVariants_JointSSR",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.001163/0.001162, allocations: 178.2 kB / 8.519 MB, free: 1.82 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.298/1.298, allocations: 221.4 MB / 230.3 MB, free: 7.676 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.0009809/0.0009809, allocations: 80.75 kB / 281.2 MB, free: 5.488 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.1762/0.1762, allocations: 44.15 MB / 376.1 MB, free: 3.258 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2414/0.4177, allocations: 68.02 MB / 444.1 MB, free: 15.55 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1169/0.5346, allocations: 61.92 MB / 0.4942 GB, free: 1.562 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3432/0.8778, allocations: 117.4 MB / 0.6089 GB, free: 11.36 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001862/0.8781, allocations: 84.59 kB / 0.6089 GB, free: 11.28 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: 2564 * Number of variables: 2564 Notification: Performance of Generate backend data structure: time 0.6153/1.493, allocations: 158.2 MB / 0.7634 GB, free: 106.8 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 5.321e-05/1.493, allocations: 13.98 kB / 0.7635 GB, free: 106.8 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02987/1.523, allocations: 5.812 MB / 0.7691 GB, free: 105.8 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.024/1.547, allocations: 7.988 MB / 0.7769 GB, free: 101.6 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006278/1.548, allocations: 229.4 kB / 0.7772 GB, free: 101.6 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004003/1.552, allocations: 425.6 kB / 0.7776 GB, free: 101.5 MB / 0.4948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02303/1.575, allocations: 12.05 MB / 0.7893 GB, free: 90.49 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03618/1.611, allocations: 16.24 MB / 0.8052 GB, free: 72.92 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003272/1.612, allocations: 91.17 kB / 0.8053 GB, free: 72.83 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00186/1.614, allocations: 40 kB / 0.8053 GB, free: 72.79 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002089/1.616, allocations: 1.85 MB / 0.8071 GB, free: 70.95 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08361/1.699, allocations: 72.16 MB / 0.8776 GB, free: 13.08 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.006263/1.706, allocations: 3.927 MB / 0.8814 GB, free: 9.012 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004303/1.71, allocations: 2.943 MB / 0.8843 GB, free: 6.055 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.1867/1.897, allocations: 15.45 MB / 0.8994 GB, free: 161.7 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.635e-05/1.897, allocations: 60.88 kB / 0.8994 GB, free: 161.7 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=292): time 7.644e-06/1.897, allocations: 0 / 0.8994 GB, free: 161.7 MB / 0.5105 GB Notification: Performance of matching and sorting (n=352): time 0.04488/1.942, allocations: 17.7 MB / 0.9167 GB, free: 158.2 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.836e-05/1.942, allocations: 184.6 kB / 0.9169 GB, free: 158.1 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006374/1.948, allocations: 4.65 MB / 0.9214 GB, free: 157.6 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.0006462/1.949, allocations: 25.7 kB / 0.9215 GB, free: 157.6 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.002678/1.952, allocations: 4.735 MB / 0.9261 GB, free: 154.5 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.001584/1.953, allocations: 1.266 MB / 0.9273 GB, free: 153.8 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004526/1.954, allocations: 0 / 0.9273 GB, free: 153.8 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0004964/1.954, allocations: 0.7231 MB / 0.928 GB, free: 153.4 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004242/1.958, allocations: 3.204 MB / 0.9312 GB, free: 153.4 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008316/1.967, allocations: 8.903 MB / 0.9399 GB, free: 145 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009565/1.976, allocations: 5.673 MB / 0.9454 GB, free: 143.3 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002345/1.977, allocations: 56.28 kB / 0.9455 GB, free: 143.3 MB / 0.5105 GB Notification: Performance of matching and sorting (n=1298) (initialization): time 0.02658/2.003, allocations: 12.12 MB / 0.9573 GB, free: 139.8 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 2.067e-05/2.003, allocations: 6.5 kB / 0.9573 GB, free: 139.8 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002603/2.004, allocations: 202.1 kB / 0.9575 GB, free: 139.8 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004185/2.008, allocations: 1.31 MB / 0.9588 GB, free: 139.5 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00768/2.015, allocations: 2.249 MB / 0.961 GB, free: 139.2 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01161/2.027, allocations: 7.218 MB / 0.968 GB, free: 135.7 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008513/2.036, allocations: 339.8 kB / 0.9683 GB, free: 135.6 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00348/2.039, allocations: 0.5776 MB / 0.9689 GB, free: 135.6 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 927 * Number of states: 0 () * Number of discrete variables: 46 (jointSSR.revolute.positiveBranch,Body2.sphereColor[3],Body2.sphereColor[2],Body2.sphereColor[1],Body1.sphereColor[3],Body1.sphereColor[2],Body1.sphereColor[1],FixedFrame1.color_x[3],FixedFrame1.color_x[2],FixedFrame1.color_x[1],jointSSR.rod1Color[3],jointSSR.rod1Color[2],jointSSR.rod1Color[1],jointSSR.rod1.massColor[3],jointSSR.rod1.massColor[2],jointSSR.rod1.massColor[1],jointSSR.sphereColor[3],jointSSR.sphereColor[2],jointSSR.sphereColor[1],jointSSR.revoluteColor[3],jointSSR.revoluteColor[2],jointSSR.revoluteColor[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 (1212): * Single equations (assignments): 1205 * 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%) 37} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0033/2.042, allocations: 0.603 MB / 0.9695 GB, free: 135 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00128/2.044, allocations: 0.4983 MB / 0.97 GB, free: 134.8 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0133/2.057, allocations: 5.37 MB / 0.9752 GB, free: 132.9 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.000175/2.057, allocations: 30.72 kB / 0.9753 GB, free: 132.9 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.082e-05/2.057, allocations: 10.44 kB / 0.9753 GB, free: 132.9 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.805e-05/2.057, allocations: 19.62 kB / 0.9753 GB, free: 132.9 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02947/2.087, allocations: 12.64 MB / 0.9876 GB, free: 122.6 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.116e-05/2.087, allocations: 12 kB / 0.9876 GB, free: 122.6 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002638/2.09, allocations: 0.5026 MB / 0.9881 GB, free: 122.2 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003714/2.093, allocations: 0.8589 MB / 0.989 GB, free: 121.5 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007179/2.094, allocations: 27.31 kB / 0.989 GB, free: 121.5 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007668/2.102, allocations: 5.007 MB / 0.9939 GB, free: 117 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.364e-05/2.102, allocations: 23.78 kB / 0.9939 GB, free: 116.9 MB / 0.5105 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01413/2.116, allocations: 10.31 MB / 1.004 GB, free: 107.1 MB / 0.5105 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.02168/2.138, allocations: 19.18 MB / 1.023 GB, free: 89.2 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001582/2.139, allocations: 0.529 MB / 1.023 GB, free: 88.65 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009172/2.14, allocations: 19.75 kB / 1.023 GB, free: 88.64 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002327/2.143, allocations: 94.31 kB / 1.023 GB, free: 88.57 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003594/2.143, allocations: 182.2 kB / 1.024 GB, free: 88.46 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002328/2.143, allocations: 103.8 kB / 1.024 GB, free: 88.36 MB / 0.5105 GB Notification: Performance of sort global known variables: time 0.005482/2.149, allocations: 3.1 MB / 1.027 GB, free: 85.68 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.01024/2.159, allocations: 1.437 MB / 1.028 GB, free: 84.27 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 51 * 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 (276): * Single equations (assignments): 268 * Array equations: 7 * 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%) 30} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001004/2.16, allocations: 227.8 kB / 1.028 GB, free: 84.07 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.01133/2.171, allocations: 7.562 MB / 1.036 GB, free: 77.11 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.228e-05/2.171, allocations: 2.438 kB / 1.036 GB, free: 77.11 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.003713/2.175, allocations: 2.348 MB / 1.038 GB, free: 74.94 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003803/2.179, allocations: 0.4962 MB / 1.038 GB, free: 74.51 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02853/2.208, allocations: 12.93 MB / 1.051 GB, free: 62.7 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.007975/2.216, allocations: 5.749 MB / 1.057 GB, free: 58.33 MB / 0.5105 GB Notification: Performance of SimCode: time 9.81e-07/2.216, allocations: 0 / 1.057 GB, free: 58.33 MB / 0.5105 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.JointSSR.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.JointSSR.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.JointSSR.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.JointSSR.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.JointSSR_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_MultiBody_FourbarVariants_JointSSR_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_MultiBody_FourbarVariants_JointSSR.fmu > ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.JointSSR.pipe 2>&1)