Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.JointUPS2.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.Joints.JointUPS2,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Joints_JointUPS2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.JointUPS2,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Joints_JointUPS2",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.001545/0.001545, allocations: 195.1 kB / 8.537 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.312/1.312, allocations: 225.5 MB / 234.4 MB, free: 3.461 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008831/0.0008831, allocations: 97.05 kB / 286.3 MB, free: 5.23 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2003/0.2003, allocations: 45.14 MB / 383.3 MB, free: 0.6172 MB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1831/0.3835, allocations: 69.37 MB / 452.7 MB, free: 76.11 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07792/0.4614, allocations: 63.24 MB / 0.5039 GB, free: 12.94 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2606/0.7221, allocations: 110.3 MB / 0.6116 GB, free: 8.77 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001868/0.7223, allocations: 70.52 kB / 0.6116 GB, free: 8.734 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: 1695 * Number of variables: 1695 Notification: Performance of Generate backend data structure: time 0.2791/1.001, allocations: 104.5 MB / 0.7137 GB, free: 8.305 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 3.639e-05/1.001, allocations: 8 kB / 0.7137 GB, free: 8.297 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01841/1.02, allocations: 4.189 MB / 0.7178 GB, free: 4.094 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01224/1.032, allocations: 5.169 MB / 0.7229 GB, free: 14.86 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001404/1.032, allocations: 148 kB / 0.723 GB, free: 14.72 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008467/1.033, allocations: 275.9 kB / 0.7233 GB, free: 14.45 MB / 0.5105 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01085/1.044, allocations: 7.66 MB / 0.7307 GB, free: 6.781 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01452/1.058, allocations: 11.09 MB / 0.7416 GB, free: 10.6 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.000151/1.059, allocations: 63.31 kB / 0.7416 GB, free: 10.54 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005584/1.059, allocations: 32 kB / 0.7417 GB, free: 10.5 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001733/1.061, allocations: 1.35 MB / 0.743 GB, free: 9.156 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1752/1.236, allocations: 55.37 MB / 0.797 GB, free: 156.7 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004071/1.24, allocations: 4.435 MB / 0.8014 GB, free: 156 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002844/1.243, allocations: 3.238 MB / 0.8045 GB, free: 156 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01482/1.258, allocations: 12.95 MB / 0.8172 GB, free: 151.5 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.731e-05/1.258, allocations: 55.53 kB / 0.8172 GB, free: 151.4 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=193): time 4.419e-06/1.258, allocations: 0 / 0.8172 GB, free: 151.4 MB / 0.5261 GB Notification: Performance of matching and sorting (n=254): time 0.05815/1.316, allocations: 27.6 MB / 0.8442 GB, free: 141.9 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.742e-05/1.316, allocations: 208.2 kB / 0.8444 GB, free: 141.7 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004219/1.321, allocations: 3.337 MB / 0.8477 GB, free: 140.4 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.0002178/1.321, allocations: 26.89 kB / 0.8477 GB, free: 140.4 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.001264/1.322, allocations: 3.232 MB / 0.8508 GB, free: 138.2 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.0006672/1.323, allocations: 0.9229 MB / 0.8517 GB, free: 137.5 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000321/1.323, allocations: 0 / 0.8517 GB, free: 137.5 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0002752/1.323, allocations: 0.6039 MB / 0.8523 GB, free: 137.1 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003795/1.327, allocations: 2.999 MB / 0.8553 GB, free: 135.5 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004419/1.332, allocations: 7.035 MB / 0.8621 GB, free: 127 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004816/1.336, allocations: 4.547 MB / 0.8666 GB, free: 123.4 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.098e-05/1.336, allocations: 42.06 kB / 0.8666 GB, free: 123.3 MB / 0.5261 GB Notification: Performance of matching and sorting (n=917) (initialization): time 0.01945/1.356, allocations: 11.51 MB / 0.8779 GB, free: 114 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.394e-05/1.356, allocations: 8.906 kB / 0.8779 GB, free: 114 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.282e-05/1.356, allocations: 146.5 kB / 0.878 GB, free: 113.8 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.008868/1.365, allocations: 2.941 MB / 0.8809 GB, free: 111.7 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004821/1.37, allocations: 1.579 MB / 0.8824 GB, free: 110.3 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01882/1.389, allocations: 13.26 MB / 0.8954 GB, free: 98.82 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005722/1.394, allocations: 279.5 kB / 0.8956 GB, free: 98.59 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006485/1.395, allocations: 423.4 kB / 0.896 GB, free: 98.2 MB / 0.5261 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 657 * Number of states: 0 () * Number of discrete variables: 36 (universal.cylinderColor[3],universal.cylinderColor[2],universal.cylinderColor[1],bodyBox.color[3],bodyBox.color[2],bodyBox.color[1],bodyBox.body.sphereColor[3],bodyBox.body.sphereColor[2],bodyBox.body.sphereColor[1],fixedTranslation.color[3],fixedTranslation.color[2],fixedTranslation.color[1],body.sphereColor[3],body.sphereColor[2],body.sphereColor[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],jointUPS.cylinderColor[3],jointUPS.cylinderColor[2],jointUPS.cylinderColor[1],jointUPS.sphereColor[3],jointUPS.sphereColor[2],jointUPS.sphereColor[1],jointUPS.axisColor[3],jointUPS.axisColor[2],jointUPS.axisColor[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (839): * Single equations (assignments): 835 * Array equations: 3 * 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 {(11,36.4%) 44} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000817/1.396, allocations: 477.1 kB / 0.8965 GB, free: 97.73 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005202/1.396, allocations: 371.1 kB / 0.8968 GB, free: 97.36 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01369/1.41, allocations: 6.996 MB / 0.9037 GB, free: 91.84 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.853e-05/1.41, allocations: 24 kB / 0.9037 GB, free: 91.82 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.211e-05/1.41, allocations: 12 kB / 0.9037 GB, free: 91.81 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.917e-05/1.41, allocations: 21.03 kB / 0.9037 GB, free: 91.8 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02373/1.434, allocations: 13.8 MB / 0.9172 GB, free: 80.63 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.829e-06/1.434, allocations: 4 kB / 0.9172 GB, free: 80.63 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001981/1.436, allocations: 355.5 kB / 0.9175 GB, free: 80.28 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.008578/1.444, allocations: 2.619 MB / 0.9201 GB, free: 77.66 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002571/1.445, allocations: 8 kB / 0.9201 GB, free: 77.65 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01654/1.461, allocations: 11.91 MB / 0.9317 GB, free: 65.62 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.228e-06/1.461, allocations: 0 / 0.9317 GB, free: 65.62 MB / 0.5261 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01724/1.479, allocations: 11.09 MB / 0.9426 GB, free: 54.45 MB / 0.5261 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.02055/1.499, allocations: 15.14 MB / 0.9574 GB, free: 39.22 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008441/1.5, allocations: 412.1 kB / 0.9578 GB, free: 38.8 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006476/1.501, allocations: 0 / 0.9578 GB, free: 38.8 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002089/1.503, allocations: 103.8 kB / 0.9579 GB, free: 38.7 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003558/1.503, allocations: 113.8 kB / 0.958 GB, free: 38.59 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002685/1.503, allocations: 62.97 kB / 0.958 GB, free: 38.53 MB / 0.5261 GB Notification: Performance of sort global known variables: time 0.002777/1.506, allocations: 2.241 MB / 0.9602 GB, free: 36.27 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.00533/1.512, allocations: 1.123 MB / 0.9613 GB, free: 35.16 MB / 0.5261 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 4 (universal.phi_a,universal.phi_b,universal.w_a,universal.w_b) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (189): * Single equations (assignments): 185 * Array equations: 3 * 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 {(6,61.1%) 40} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000447/1.512, allocations: 151.7 kB / 0.9614 GB, free: 35 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.01001/1.522, allocations: 7.497 MB / 0.9688 GB, free: 27.53 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 4.138e-06/1.522, allocations: 4 kB / 0.9688 GB, free: 27.52 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.00385/1.526, allocations: 2.898 MB / 0.9716 GB, free: 24.62 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001743/1.528, allocations: 361.8 kB / 0.9719 GB, free: 24.27 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01546/1.543, allocations: 9.882 MB / 0.9816 GB, free: 14.34 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00446/1.548, allocations: 4.053 MB / 0.9856 GB, free: 10.27 MB / 0.5261 GB Notification: Performance of SimCode: time 5.11e-07/1.548, allocations: 0 / 0.9856 GB, free: 10.27 MB / 0.5261 GB (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.JointUPS2.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.JointUPS2.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.JointUPS2.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.JointUPS2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.JointUPS2_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_MultiBody_Joints_JointUPS2_fmu --startTime=0 --stopTime=4 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_MultiBody_Joints_JointUPS2.fmu > ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.JointUPS2.pipe 2>&1)