Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) 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) 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|revolute1.phi|revolute1.w|revolute2.phi|revolute2.w",fileNamePrefix="Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses") translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|revolute1.phi|revolute1.w|revolute2.phi|revolute2.w",fileNamePrefix="Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009191/0.0009195, allocations: 98.19 kB / 16.99 MB, free: 5.941 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0008941/0.0008941, allocations: 206.6 kB / 17.9 MB, free: 5.594 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.345/1.345, allocations: 227.2 MB / 245.9 MB, free: 10.34 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00022/0.0002201, allocations: 8 kB / 306.6 MB, free: 1.391 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1028/0.103, allocations: 51.49 MB / 358.1 MB, free: 13.9 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses): time 0.2432/0.3463, allocations: 62.62 MB / 420.7 MB, free: 12.63 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.03491/0.3812, allocations: 14.68 MB / 435.4 MB, free: 14.2 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01258/0.3939, allocations: 323.1 kB / 435.7 MB, free: 13.89 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01103/0.4049, allocations: 3.083 MB / 438.8 MB, free: 10.79 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.02966/0.4346, allocations: 8.93 MB / 447.7 MB, free: 1.844 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005438/0.4401, allocations: 1.26 MB / 449 MB, free: 0.582 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.07181/0.5119, allocations: 50.01 MB / 499 MB, free: 14.52 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01014/0.5221, allocations: 6.336 MB / 0.4935 GB, free: 8.121 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00375/0.5259, allocations: 1.849 MB / 0.4953 GB, free: 6.266 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004054/0.5299, allocations: 2.652 MB / 0.4979 GB, free: 3.605 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001157/0.5311, allocations: 252 kB / 0.4981 GB, free: 3.359 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002682/0.5338, allocations: 1.147 MB / 0.4992 GB, free: 2.211 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003117/0.5369, allocations: 2.767 MB / 0.5019 GB, free: 15.44 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00206/0.539, allocations: 1.31 MB / 0.5032 GB, free: 14.12 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009157/0.5482, allocations: 8.838 MB / 0.5118 GB, free: 5.258 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.858e-06/0.5482, allocations: 0 / 0.5118 GB, free: 5.258 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.084e-06/0.5482, allocations: 0 / 0.5118 GB, free: 5.258 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0002919/0.5485, allocations: 0 / 0.5118 GB, free: 5.258 MB / 430.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2303 * Number of variables: 2303 Notification: Performance of Generate backend data structure: time 0.01793/0.5665, allocations: 7.365 MB / 0.519 GB, free: 13.81 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.688e-05/0.5665, allocations: 16.03 kB / 0.519 GB, free: 13.79 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.3595/0.926, allocations: 15.09 MB / 0.5338 GB, free: 146.5 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01382/0.9399, allocations: 5.57 MB / 0.5392 GB, free: 145.4 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003196/0.9402, allocations: 371.5 kB / 0.5396 GB, free: 145.3 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001847/0.9421, allocations: 0.5112 MB / 0.5401 GB, free: 145.2 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03032/0.9724, allocations: 16.37 MB / 0.5561 GB, free: 138 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002035/0.9727, allocations: 80.94 kB / 0.5561 GB, free: 138 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007705/0.9734, allocations: 233.8 kB / 0.5564 GB, free: 137.9 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003993/0.9774, allocations: 2.925 MB / 0.5592 GB, free: 136.8 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0257/1.003, allocations: 13.71 MB / 0.5726 GB, free: 123.7 MB / 446.1 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06408/1.067, allocations: 64.46 MB / 0.6355 GB, free: 57.97 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01987/1.087, allocations: 7.888 MB / 0.6433 GB, free: 49.93 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02563/1.113, allocations: 18.98 MB / 0.6618 GB, free: 30.45 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.481e-05/1.113, allocations: 68.5 kB / 0.6619 GB, free: 30.37 MB / 446.1 MB Notification: Performance of pre-optimization done (n=287): time 5.56e-06/1.113, allocations: 0 / 0.6619 GB, free: 30.37 MB / 446.1 MB Notification: Performance of matching and sorting (n=370): time 0.3494/1.462, allocations: 51.64 MB / 0.7123 GB, free: 149.5 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.788e-05/1.462, allocations: 272.7 kB / 0.7126 GB, free: 149.2 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00897/1.471, allocations: 6.513 MB / 0.7189 GB, free: 147.2 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0006796/1.472, allocations: 83.09 kB / 0.719 GB, free: 147.1 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002446/1.475, allocations: 4.745 MB / 0.7236 GB, free: 144.1 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001492/1.476, allocations: 1.362 MB / 0.725 GB, free: 143.1 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004573/1.477, allocations: 181.7 kB / 0.7251 GB, free: 143 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0003658/1.477, allocations: 0.7038 MB / 0.7258 GB, free: 142.5 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005297/1.482, allocations: 3.902 MB / 0.7296 GB, free: 141.2 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00717/1.489, allocations: 9.103 MB / 0.7385 GB, free: 132.9 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008364/1.498, allocations: 5.755 MB / 0.7441 GB, free: 130.7 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001598/1.498, allocations: 53.03 kB / 0.7442 GB, free: 130.7 MB / 462.1 MB Notification: Performance of matching and sorting (n=1208) (initialization): time 0.02979/1.528, allocations: 16.36 MB / 0.7602 GB, free: 122.1 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001057/1.528, allocations: 80 kB / 0.7602 GB, free: 122 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001496/1.528, allocations: 184.9 kB / 0.7604 GB, free: 121.8 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01209/1.54, allocations: 4.121 MB / 0.7644 GB, free: 117.7 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00653/1.547, allocations: 2.059 MB / 0.7664 GB, free: 115.6 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02682/1.574, allocations: 22.74 MB / 0.7886 GB, free: 92.64 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007043/1.581, allocations: 0.511 MB / 0.7891 GB, free: 92.13 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008422/1.582, allocations: 0.5287 MB / 0.7897 GB, free: 91.6 MB / 462.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 831 * Number of states: 0 () * Number of discrete variables: 66 (lineForceWithTwoMasses.massColor[3],lineForceWithTwoMasses.massColor[2],lineForceWithTwoMasses.massColor[1],lineForceWithTwoMasses.color_b[3],lineForceWithTwoMasses.color_b[2],lineForceWithTwoMasses.color_b[1],lineForceWithTwoMasses.color_a[3],lineForceWithTwoMasses.color_a[2],lineForceWithTwoMasses.color_a[1],rod4.color[3],rod4.color[2],rod4.color[1],rod3.color[3],rod3.color[2],rod3.color[1],bodyBox2.color[3],bodyBox2.color[2],bodyBox2.color[1],bodyBox2.body.sphereColor[3],bodyBox2.body.sphereColor[2],bodyBox2.body.sphereColor[1],revolute2.cylinderColor[3],revolute2.cylinderColor[2],revolute2.cylinderColor[1],rod2.color[3],rod2.color[2],rod2.color[1],body2.sphereColor[3],body2.sphereColor[2],body2.sphereColor[1],body1.sphereColor[3],body1.sphereColor[2],body1.sphereColor[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],rod1.color[3],rod1.color[2],rod1.color[1],bodyBox1.color[3],bodyBox1.color[2],bodyBox1.color[1],bodyBox1.body.sphereColor[3],bodyBox1.body.sphereColor[2],bodyBox1.body.sphereColor[1],revolute1.cylinderColor[3],revolute1.cylinderColor[2],revolute1.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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1088): * Single equations (assignments): 1083 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(2,100.0%) 44,(5,64.0%) 47} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.003833/1.585, allocations: 3.12 MB / 0.7927 GB, free: 88.47 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009397/1.586, allocations: 0.5708 MB / 0.7933 GB, free: 87.89 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01797/1.604, allocations: 9.86 MB / 0.8029 GB, free: 77.97 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.293e-05/1.604, allocations: 36 kB / 0.8029 GB, free: 77.94 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.671e-05/1.604, allocations: 19.95 kB / 0.803 GB, free: 77.92 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.488e-05/1.605, allocations: 19.94 kB / 0.803 GB, free: 77.9 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03559/1.64, allocations: 19.62 MB / 0.8221 GB, free: 58.18 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.024e-05/1.64, allocations: 7.922 kB / 0.8221 GB, free: 58.17 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002861/1.643, allocations: 0.5344 MB / 0.8227 GB, free: 57.63 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01166/1.655, allocations: 3.66 MB / 0.8262 GB, free: 53.96 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006667/1.655, allocations: 68.41 kB / 0.8263 GB, free: 53.9 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02574/1.681, allocations: 20.64 MB / 0.8465 GB, free: 32.99 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.416e-06/1.681, allocations: 0 / 0.8465 GB, free: 32.99 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02566/1.707, allocations: 14.63 MB / 0.8607 GB, free: 18.27 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001953/1.709, allocations: 0.6146 MB / 0.8613 GB, free: 17.62 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001286/1.71, allocations: 59.94 kB / 0.8614 GB, free: 17.57 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00293/1.713, allocations: 207.7 kB / 0.8616 GB, free: 17.36 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000711/1.714, allocations: 227.4 kB / 0.8618 GB, free: 17.14 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002597/1.714, allocations: 107.9 kB / 0.8619 GB, free: 17.04 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.006056/1.72, allocations: 4.135 MB / 0.866 GB, free: 12.91 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.6e-07/1.72, allocations: 0 / 0.866 GB, free: 12.91 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.008202/1.728, allocations: 1.863 MB / 0.8678 GB, free: 11.05 MB / 462.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 4 (revolute1.phi,revolute1.w,revolute2.phi,revolute2.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (270): * Single equations (assignments): 265 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(2,100.0%) 43,(1,100.0%) 36} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0006582/1.729, allocations: 225.9 kB / 0.868 GB, free: 10.82 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.2049/1.934, allocations: 9.961 MB / 0.8777 GB, free: 138.6 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 6.171e-06/1.934, allocations: 3.906 kB / 0.8777 GB, free: 138.6 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.006274/1.94, allocations: 3.937 MB / 0.8816 GB, free: 138.2 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004244/1.945, allocations: 0.7175 MB / 0.8823 GB, free: 137.9 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02725/1.972, allocations: 18.59 MB / 0.9004 GB, free: 129 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004572/1.977, allocations: 5.008 MB / 0.9053 GB, free: 127.3 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.006783/1.983, allocations: 2.803 MB / 0.908 GB, free: 127.1 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001214/1.985, allocations: 386.3 kB / 0.9084 GB, free: 127.1 MB / 462.1 MB Notification: Performance of SimCode: time 2.014e-06/1.985, allocations: 0 / 0.9084 GB, free: 127.1 MB / 462.1 MB Notification: Performance of Templates: time 0.1044/2.089, allocations: 76.74 MB / 0.9834 GB, free: 55.58 MB / 462.1 MB make -j1 -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses.makefile (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses.sim & ./Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Elementary/LineForceWithTwoMasses/LineForceWithTwoMasses.csv","../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches