Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.JointUSP.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: translateModel(ModelicaTest.MultiBody.FourbarVariants.JointUSP,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|revolute.phi|revolute.w",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.JointUSP") translateModel(ModelicaTest.MultiBody.FourbarVariants.JointUSP,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|revolute.phi|revolute.w",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.JointUSP") [: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.00111/0.00111, allocations: 195.4 kB / 8.535 MB, free: 1.844 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.245/1.245, allocations: 225.5 MB / 234.4 MB, free: 3.285 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00101/0.00101, allocations: 91.05 kB / 286.3 MB, free: 5.285 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1916/0.1916, allocations: 45.15 MB / 383.3 MB, free: 0.5039 MB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 6.382e-06/6.412e-06, allocations: 0 / 452.6 MB, free: 76.17 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1282/0.1283, allocations: 63.25 MB / 0.5038 GB, free: 13 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3957/0.524, allocations: 117.5 MB / 0.6185 GB, free: 1.758 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002394/0.5243, allocations: 83.08 kB / 0.6186 GB, free: 1.719 MB / 410.7 MB Notification: Performance of FrontEnd: time 0.5806/1.105, allocations: 143.7 MB / 0.759 GB, free: 111.8 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 0.0003196/1.105, allocations: 131.5 kB / 0.7591 GB, free: 111.8 MB / 0.5261 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2166 * Number of variables: 2166 Notification: Performance of Generate backend data structure: time 0.01715/1.122, allocations: 6.545 MB / 0.7655 GB, free: 109.3 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 4.453e-05/1.122, allocations: 13.06 kB / 0.7655 GB, free: 109.3 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03346/1.156, allocations: 8.937 MB / 0.7742 GB, free: 108.9 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01969/1.176, allocations: 7.923 MB / 0.782 GB, free: 108 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003234/1.176, allocations: 204.3 kB / 0.7822 GB, free: 108 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002868/1.179, allocations: 389.1 kB / 0.7825 GB, free: 108 MB / 0.5261 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01836/1.197, allocations: 9.672 MB / 0.792 GB, free: 108 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02234/1.22, allocations: 13.59 MB / 0.8053 GB, free: 104.8 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002162/1.22, allocations: 78.39 kB / 0.8053 GB, free: 104.8 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007586/1.221, allocations: 37 kB / 0.8054 GB, free: 104.8 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001576/1.222, allocations: 1.479 MB / 0.8068 GB, free: 104.8 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06246/1.285, allocations: 63.76 MB / 0.8691 GB, free: 62.56 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005264/1.29, allocations: 4.282 MB / 0.8733 GB, free: 60.4 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004238/1.294, allocations: 3.362 MB / 0.8765 GB, free: 58.96 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01923/1.314, allocations: 12.33 MB / 0.8886 GB, free: 50.72 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.32e-05/1.314, allocations: 64.22 kB / 0.8886 GB, free: 50.65 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=245): time 5.35e-06/1.314, allocations: 4 kB / 0.8886 GB, free: 50.65 MB / 0.5261 GB Notification: Performance of matching and sorting (n=338): time 0.06819/1.382, allocations: 27.09 MB / 0.9151 GB, free: 28.18 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.85e-05/1.382, allocations: 245.7 kB / 0.9153 GB, free: 27.89 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006852/1.389, allocations: 4.42 MB / 0.9197 GB, free: 24.02 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.0007623/1.39, allocations: 25.7 kB / 0.9197 GB, free: 23.98 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.001675/1.391, allocations: 4.013 MB / 0.9236 GB, free: 20.38 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.001066/1.392, allocations: 1.197 MB / 0.9248 GB, free: 19.3 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000354/1.393, allocations: 0 / 0.9248 GB, free: 19.3 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0003076/1.393, allocations: 0.6617 MB / 0.9254 GB, free: 18.73 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003978/1.397, allocations: 3.523 MB / 0.9289 GB, free: 15.52 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005678/1.403, allocations: 8.178 MB / 0.9368 GB, free: 5.504 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007154/1.41, allocations: 5.344 MB / 0.9421 GB, free: 0.8594 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.00013/1.41, allocations: 48 kB / 0.9421 GB, free: 0.8125 MB / 0.5261 GB Notification: Performance of matching and sorting (n=1100) (initialization): time 0.03971/1.45, allocations: 14.23 MB / 0.956 GB, free: 5.188 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 2.252e-05/1.45, allocations: 12 kB / 0.956 GB, free: 5.176 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002261/1.45, allocations: 164 kB / 0.9562 GB, free: 5.016 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0131/1.463, allocations: 3.359 MB / 0.9594 GB, free: 1.648 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.1589/1.622, allocations: 1.82 MB / 0.9612 GB, free: 169.5 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02257/1.645, allocations: 16.07 MB / 0.9769 GB, free: 168.2 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006367/1.651, allocations: 265.5 kB / 0.9772 GB, free: 168.2 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001193/1.652, allocations: 492.3 kB / 0.9776 GB, free: 168.2 MB / 0.5417 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 751 * Number of states: 0 () * Number of discrete variables: 46 (jointUSP.prismatic.positiveBranch,body2.color[3],body2.color[2],body2.color[1],body2.body.sphereColor[3],body2.body.sphereColor[2],body2.body.sphereColor[1],jointUSP.rod1Color[3],jointUSP.rod1Color[2],jointUSP.rod1Color[1],jointUSP.cylinderColor[3],jointUSP.cylinderColor[2],jointUSP.cylinderColor[1],jointUSP.sphereColor[3],jointUSP.sphereColor[2],jointUSP.sphereColor[1],ground_rod.color[3],ground_rod.color[2],ground_rod.color[1],body3.color[3],body3.color[2],body3.color[1],body3.body.sphereColor[3],body3.body.sphereColor[2],body3.body.sphereColor[1],body1.color[3],body1.color[2],body1.color[1],body1.body.sphereColor[3],body1.body.sphereColor[2],body1.body.sphereColor[1],revolute.cylinderColor[3],revolute.cylinderColor[2],revolute.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 (999): * Single equations (assignments): 995 * 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 {(1,100.0%) 77} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001136/1.653, allocations: 0.5098 MB / 0.9781 GB, free: 168.1 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008451/1.654, allocations: 0.4964 MB / 0.9786 GB, free: 168.1 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01763/1.672, allocations: 8.488 MB / 0.9869 GB, free: 167.9 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.866e-05/1.672, allocations: 30.62 kB / 0.9869 GB, free: 167.9 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.5e-05/1.672, allocations: 21.48 kB / 0.987 GB, free: 167.9 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.754e-05/1.672, allocations: 13.88 kB / 0.987 GB, free: 167.9 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03314/1.705, allocations: 17.12 MB / 1.004 GB, free: 166.9 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.739e-05/1.705, allocations: 6.562 kB / 1.004 GB, free: 166.9 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002346/1.708, allocations: 462.1 kB / 1.004 GB, free: 166.9 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01074/1.718, allocations: 2.965 MB / 1.007 GB, free: 166.9 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005441/1.719, allocations: 17.31 kB / 1.007 GB, free: 166.9 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01829/1.737, allocations: 14 MB / 1.021 GB, free: 161.4 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.995e-06/1.737, allocations: 6.906 kB / 1.021 GB, free: 161.4 MB / 0.5417 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.02184/1.759, allocations: 13.92 MB / 1.034 GB, free: 155.5 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001417/1.761, allocations: 0.5164 MB / 1.035 GB, free: 155.1 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009744/1.762, allocations: 11.41 kB / 1.035 GB, free: 155.1 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002449/1.764, allocations: 106.6 kB / 1.035 GB, free: 155.1 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003999/1.765, allocations: 160.7 kB / 1.035 GB, free: 155.1 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002671/1.765, allocations: 98.17 kB / 1.035 GB, free: 155.1 MB / 0.5417 GB Notification: Performance of sort global known variables: time 0.004476/1.769, allocations: 3.022 MB / 1.038 GB, free: 154 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.00675/1.776, allocations: 1.434 MB / 1.04 GB, free: 154 MB / 0.5417 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 27 * Number of states: 2 (revolute.phi,revolute.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (254): * Single equations (assignments): 250 * 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 {(1,100.0%) 64} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0006019/1.777, allocations: 193.9 kB / 1.04 GB, free: 153.9 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.01046/1.787, allocations: 8.494 MB / 1.048 GB, free: 151 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 6.312e-06/1.787, allocations: 0 / 1.048 GB, free: 151 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.004/1.791, allocations: 3.29 MB / 1.051 GB, free: 149.7 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002912/1.794, allocations: 0.5564 MB / 1.052 GB, free: 149.5 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02273/1.817, allocations: 13.05 MB / 1.065 GB, free: 139 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00688/1.824, allocations: 5.305 MB / 1.07 GB, free: 135 MB / 0.5417 GB Notification: Performance of SimCode: time 1.082e-06/1.824, allocations: 3.828 kB / 1.07 GB, free: 135 MB / 0.5417 GB Notification: Performance of Templates: time 0.1087/1.933, allocations: 70.85 MB / 1.139 GB, free: 76.59 MB / 0.5417 GB make -j1 -f ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.JointUSP.makefile (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.JointUSP.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.JointUSP.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.JointUSP.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.JointUSP.sim & ./ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.JointUSP -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.JointUSP.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.JointUSP_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/FourbarVariants/JointUSP/JointUSP.csv","../files/ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.JointUSP.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches