Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical.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.FourbarVariants.UniversalSpherical,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_FourbarVariants_UniversalSpherical",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical,fileNamePrefix="ModelicaTest_trunk_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 trunk/package.mo): time 0.002417/0.002417, allocations: 196.7 kB / 8.54 MB, free: 1.812 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.341/1.341, allocations: 225.5 MB / 234.4 MB, free: 3.289 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008846/0.0008848, allocations: 93.2 kB / 286.3 MB, free: 5.309 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1828/0.1828, allocations: 45.13 MB / 383.3 MB, free: 0.5156 MB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2781/0.4609, allocations: 69.38 MB / 452.7 MB, free: 76.07 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1108/0.5718, allocations: 63.24 MB / 0.5039 GB, free: 12.91 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4489/1.021, allocations: 111.4 MB / 0.6127 GB, free: 7.613 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002942/1.021, allocations: 75.52 kB / 0.6127 GB, free: 7.574 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.4751/1.496, allocations: 133 MB / 0.7426 GB, free: 10.39 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 4.659e-05/1.496, allocations: 8 kB / 0.7426 GB, free: 10.38 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03343/1.53, allocations: 7.63 MB / 0.7501 GB, free: 2.73 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.2205/1.75, allocations: 6.429 MB / 0.7563 GB, free: 175.7 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002995/1.751, allocations: 195 kB / 0.7565 GB, free: 175.7 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002973/1.753, allocations: 354.7 kB / 0.7569 GB, free: 175.7 MB / 0.5261 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01743/1.771, allocations: 10.42 MB / 0.767 GB, free: 175.7 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02531/1.796, allocations: 14.35 MB / 0.7811 GB, free: 172.5 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002209/1.797, allocations: 73.19 kB / 0.7811 GB, free: 172.5 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001188/1.798, allocations: 34.78 kB / 0.7812 GB, free: 172.5 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001956/1.8, allocations: 1.73 MB / 0.7828 GB, free: 172.5 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06919/1.869, allocations: 62.43 MB / 0.8438 GB, free: 134.2 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005859/1.875, allocations: 4.681 MB / 0.8484 GB, free: 132 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003925/1.879, allocations: 3.617 MB / 0.8519 GB, free: 130.5 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02445/1.903, allocations: 15.51 MB / 0.8671 GB, free: 121 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.285e-05/1.903, allocations: 66.94 kB / 0.8671 GB, free: 120.9 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=295): time 6.201e-06/1.903, allocations: 0 / 0.8671 GB, free: 120.9 MB / 0.5261 GB Notification: Performance of matching and sorting (n=345): time 0.07124/1.975, allocations: 29.1 MB / 0.8955 GB, free: 97.2 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.506e-05/1.975, allocations: 210 kB / 0.8957 GB, free: 96.95 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006596/1.981, allocations: 4.333 MB / 0.9 GB, free: 93.15 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.0008677/1.982, allocations: 25.7 kB / 0.9 GB, free: 93.12 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.002476/1.985, allocations: 4.173 MB / 0.9041 GB, free: 89.36 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.001901/1.987, allocations: 1.242 MB / 0.9053 GB, free: 88.24 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009137/1.988, allocations: 0 / 0.9053 GB, free: 88.24 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0005726/1.988, allocations: 0.6994 MB / 0.906 GB, free: 87.64 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005896/1.994, allocations: 4.553 MB / 0.9104 GB, free: 83.52 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00843/2.003, allocations: 9.748 MB / 0.9199 GB, free: 71.86 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009015/2.012, allocations: 6.607 MB / 0.9264 GB, free: 66.13 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000129/2.012, allocations: 52 kB / 0.9264 GB, free: 66.08 MB / 0.5261 GB Notification: Performance of matching and sorting (n=1206) (initialization): time 0.05735/2.069, allocations: 17.71 MB / 0.9437 GB, free: 51.81 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 2.973e-05/2.069, allocations: 7.469 kB / 0.9437 GB, free: 51.8 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0004109/2.07, allocations: 184 kB / 0.9439 GB, free: 51.62 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.03677/2.106, allocations: 5.332 MB / 0.9491 GB, free: 46.59 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01311/2.12, allocations: 2.098 MB / 0.9512 GB, free: 44.49 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04224/2.162, allocations: 20.89 MB / 0.9716 GB, free: 23.38 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01481/2.177, allocations: 315.4 kB / 0.9719 GB, free: 23.07 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00319/2.18, allocations: 0.5351 MB / 0.9724 GB, free: 22.54 MB / 0.5261 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.002984/2.183, allocations: 0.5598 MB / 0.9729 GB, free: 21.97 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001597/2.185, allocations: 481.7 kB / 0.9734 GB, free: 21.49 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04841/2.233, allocations: 12.08 MB / 0.9852 GB, free: 9.363 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0002011/2.233, allocations: 47.98 kB / 0.9852 GB, free: 9.316 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.535e-05/2.233, allocations: 8 kB / 0.9852 GB, free: 9.309 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.246e-05/2.233, allocations: 19.94 kB / 0.9853 GB, free: 9.289 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3542/2.588, allocations: 22.51 MB / 1.007 GB, free: 157 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.441e-05/2.588, allocations: 3.312 kB / 1.007 GB, free: 157 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003543/2.591, allocations: 0.5213 MB / 1.008 GB, free: 157 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01905/2.61, allocations: 4.336 MB / 1.012 GB, free: 157 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001085/2.611, allocations: 10.44 kB / 1.012 GB, free: 157 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02147/2.633, allocations: 16.82 MB / 1.028 GB, free: 154.4 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.098e-05/2.633, allocations: 9.625 kB / 1.028 GB, free: 154.4 MB / 0.5261 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.03404/2.667, allocations: 17.29 MB / 1.045 GB, free: 151.5 MB / 0.5261 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.05295/2.72, allocations: 33.53 MB / 1.078 GB, free: 138.2 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002133/2.722, allocations: 0.4959 MB / 1.079 GB, free: 138.1 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00171/2.724, allocations: 7.938 kB / 1.079 GB, free: 138 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003576/2.728, allocations: 129.6 kB / 1.079 GB, free: 138 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005995/2.728, allocations: 159.4 kB / 1.079 GB, free: 138 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003797/2.729, allocations: 86.5 kB / 1.079 GB, free: 138 MB / 0.5261 GB Notification: Performance of sort global known variables: time 0.005135/2.734, allocations: 2.896 MB / 1.082 GB, free: 137 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.009468/2.743, allocations: 1.487 MB / 1.083 GB, free: 137 MB / 0.5261 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.0008684/2.744, allocations: 175.2 kB / 1.083 GB, free: 136.9 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.01438/2.758, allocations: 10.31 MB / 1.093 GB, free: 128.4 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 9.849e-06/2.758, allocations: 0 / 1.093 GB, free: 128.4 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.005091/2.764, allocations: 3.909 MB / 1.097 GB, free: 124.8 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002904/2.767, allocations: 451.4 kB / 1.098 GB, free: 124.4 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0291/2.796, allocations: 13.73 MB / 1.111 GB, free: 112.1 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.009211/2.805, allocations: 5.14 MB / 1.116 GB, free: 108.2 MB / 0.5261 GB Notification: Performance of SimCode: time 1.743e-06/2.805, allocations: 4 kB / 1.116 GB, free: 108.2 MB / 0.5261 GB (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_MultiBody_FourbarVariants_UniversalSpherical_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_MultiBody_FourbarVariants_UniversalSpherical.fmu > ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical.pipe 2>&1)