Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.LineForceWithTwoMasses.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.Forces.LineForceWithTwoMasses,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_MultiBody_Forces_LineForceWithTwoMasses",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.LineForceWithTwoMasses,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_MultiBody_Forces_LineForceWithTwoMasses",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009734/0.0009734, allocations: 196.2 kB / 16.09 MB, free: 5.582 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.208/1.208, allocations: 226.5 MB / 243.4 MB, free: 6.477 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007125/0.0007125, allocations: 106.8 kB / 295.5 MB, free: 6.672 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2762/0.2762, allocations: 44.82 MB / 392.3 MB, free: 35.67 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003053/0.0003054, allocations: 11.94 kB / 465.4 MB, free: 12.55 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2579/0.2582, allocations: 62.95 MB / 0.516 GB, free: 37.28 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.LineForceWithTwoMasses): time 0.04478/0.303, allocations: 66.44 MB / 0.5808 GB, free: 5.398 MB / 394.7 MB Notification: Performance of NFInst.instExpressions: time 0.03059/0.3337, allocations: 14.02 MB / 0.5945 GB, free: 8.801 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01346/0.3472, allocations: 323.2 kB / 0.5948 GB, free: 8.484 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01071/0.3579, allocations: 3.417 MB / 0.5982 GB, free: 5.051 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 0.02642/0.3844, allocations: 10.21 MB / 0.6081 GB, free: 10.8 MB / 426.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.005464/0.3899, allocations: 1.346 MB / 0.6095 GB, free: 9.457 MB / 426.7 MB Notification: Performance of NFFlatten.flatten: time 0.07839/0.4683, allocations: 64.78 MB / 0.6727 GB, free: 8.586 MB / 490.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00967/0.478, allocations: 6.852 MB / 0.6794 GB, free: 1.641 MB / 490.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.2308/0.7088, allocations: 2.243 MB / 0.6816 GB, free: 65.18 MB / 490.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005965/0.7148, allocations: 3.674 MB / 0.6852 GB, free: 65.18 MB / 490.7 MB Notification: Performance of NFPackage.collectConstants: time 0.002325/0.7172, allocations: 248.3 kB / 0.6854 GB, free: 65.18 MB / 490.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004703/0.7219, allocations: 1.391 MB / 0.6868 GB, free: 65.18 MB / 490.7 MB Notification: Performance of NFScalarize.scalarize: time 0.004705/0.7266, allocations: 2.966 MB / 0.6897 GB, free: 65.18 MB / 490.7 MB Notification: Performance of NFVerifyModel.verify: time 0.004987/0.7316, allocations: 3.222 MB / 0.6928 GB, free: 65.14 MB / 490.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01138/0.7431, allocations: 8.852 MB / 0.7015 GB, free: 64.57 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.141e-06/0.7431, allocations: 0 / 0.7015 GB, free: 64.57 MB / 490.7 MB Notification: Performance of FrontEnd: time 2.455e-06/0.7431, allocations: 0 / 0.7015 GB, free: 64.57 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0004158/0.7435, allocations: 0.7188 kB / 0.7015 GB, free: 64.57 MB / 490.7 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.02105/0.7646, allocations: 7.08 MB / 0.7084 GB, free: 61.36 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.637e-05/0.7646, allocations: 9.531 kB / 0.7084 GB, free: 61.36 MB / 490.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003685/0.7683, allocations: 1.077 MB / 0.7095 GB, free: 61.06 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1581/0.9265, allocations: 13.25 MB / 0.7224 GB, free: 56.62 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01331/0.9398, allocations: 6.063 MB / 0.7283 GB, free: 53.16 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003062/0.9401, allocations: 367.5 kB / 0.7287 GB, free: 52.96 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002106/0.9423, allocations: 0.5169 MB / 0.7292 GB, free: 52.61 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02717/0.9694, allocations: 16.12 MB / 0.7449 GB, free: 39.84 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.00024/0.9697, allocations: 71.94 kB / 0.745 GB, free: 39.8 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009648/0.9707, allocations: 243.1 kB / 0.7452 GB, free: 39.73 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004269/0.975, allocations: 2.922 MB / 0.7481 GB, free: 37.33 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02599/1.001, allocations: 13.44 MB / 0.7612 GB, free: 27.84 MB / 490.7 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.07682/1.078, allocations: 64.18 MB / 0.8239 GB, free: 5.094 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02209/1.1, allocations: 7.847 MB / 0.8315 GB, free: 13.11 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.006058/1.106, allocations: 4.119 MB / 0.8356 GB, free: 8.977 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.03209/1.138, allocations: 18.7 MB / 0.8538 GB, free: 5.809 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.511e-05/1.138, allocations: 62.91 kB / 0.8539 GB, free: 5.738 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=287): time 6.212e-06/1.138, allocations: 0 / 0.8539 GB, free: 5.738 MB / 0.5417 GB Notification: Performance of matching and sorting (n=370): time 0.3963/1.535, allocations: 51.35 MB / 0.904 GB, free: 213.6 MB / 0.573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.105e-05/1.535, allocations: 274.4 kB / 0.9043 GB, free: 213.3 MB / 0.573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01068/1.545, allocations: 6.037 MB / 0.9102 GB, free: 211.1 MB / 0.573 GB Notification: Performance of collectPreVariables (initialization): time 0.001139/1.547, allocations: 82.42 kB / 0.9103 GB, free: 211.1 MB / 0.573 GB Notification: Performance of collectInitialEqns (initialization): time 0.004369/1.551, allocations: 4.743 MB / 0.9149 GB, free: 207.4 MB / 0.573 GB Notification: Performance of collectInitialBindings (initialization): time 0.002464/1.554, allocations: 1.361 MB / 0.9162 GB, free: 206.4 MB / 0.573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009013/1.554, allocations: 187.6 kB / 0.9164 GB, free: 206.3 MB / 0.573 GB Notification: Performance of setup shared object (initialization): time 0.0006262/1.555, allocations: 0.6915 MB / 0.9171 GB, free: 205.8 MB / 0.573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007758/1.563, allocations: 3.892 MB / 0.9209 GB, free: 204.5 MB / 0.573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009535/1.572, allocations: 9.132 MB / 0.9298 GB, free: 196.2 MB / 0.573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01486/1.587, allocations: 14.09 MB / 0.9436 GB, free: 185.3 MB / 0.573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001492/1.588, allocations: 50.69 kB / 0.9436 GB, free: 185.3 MB / 0.573 GB Notification: Performance of matching and sorting (n=1208) (initialization): time 0.03318/1.621, allocations: 16.35 MB / 0.9596 GB, free: 175.7 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001025/1.621, allocations: 88 kB / 0.9596 GB, free: 175.6 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001856/1.621, allocations: 184 kB / 0.9598 GB, free: 175.4 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01262/1.634, allocations: 4.083 MB / 0.9638 GB, free: 172.6 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006805/1.641, allocations: 2.052 MB / 0.9658 GB, free: 170.8 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02737/1.668, allocations: 21.97 MB / 0.9873 GB, free: 149.4 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007956/1.676, allocations: 0.4955 MB / 0.9878 GB, free: 148.9 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001436/1.677, allocations: 0.5234 MB / 0.9883 GB, free: 148.4 MB / 0.573 GB 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.006267/1.684, allocations: 3.129 MB / 0.9913 GB, free: 145.2 MB / 0.573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001207/1.685, allocations: 0.5669 MB / 0.9919 GB, free: 144.7 MB / 0.573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01915/1.704, allocations: 9.849 MB / 1.001 GB, free: 134.7 MB / 0.573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.981e-05/1.704, allocations: 40 kB / 1.002 GB, free: 134.7 MB / 0.573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.929e-05/1.704, allocations: 16 kB / 1.002 GB, free: 134.7 MB / 0.573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.666e-05/1.704, allocations: 19.92 kB / 1.002 GB, free: 134.7 MB / 0.573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03676/1.741, allocations: 19.58 MB / 1.021 GB, free: 115 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.237e-05/1.741, allocations: 0 / 1.021 GB, free: 115 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002832/1.744, allocations: 0.5382 MB / 1.021 GB, free: 114.5 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01184/1.756, allocations: 3.67 MB / 1.025 GB, free: 110.8 MB / 0.573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008274/1.757, allocations: 63.98 kB / 1.025 GB, free: 110.7 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02481/1.782, allocations: 19.87 MB / 1.044 GB, free: 90.59 MB / 0.573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.415e-06/1.782, allocations: 4.062 kB / 1.044 GB, free: 90.59 MB / 0.573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02455/1.806, allocations: 14.47 MB / 1.058 GB, free: 76.04 MB / 0.573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001723/1.808, allocations: 0.5989 MB / 1.059 GB, free: 75.42 MB / 0.573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001491/1.809, allocations: 56 kB / 1.059 GB, free: 75.36 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003219/1.813, allocations: 203.7 kB / 1.059 GB, free: 75.16 MB / 0.573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00112/1.814, allocations: 231.4 kB / 1.059 GB, free: 74.94 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002903/1.814, allocations: 91.98 kB / 1.06 GB, free: 74.85 MB / 0.573 GB Notification: Performance of sorting global known variables: time 0.005431/1.819, allocations: 3.772 MB / 1.063 GB, free: 71.08 MB / 0.573 GB Notification: Performance of sort global known variables: time 2.6e-07/1.82, allocations: 4.406 kB / 1.063 GB, free: 71.08 MB / 0.573 GB Notification: Performance of remove unused functions: time 0.008654/1.828, allocations: 1.846 MB / 1.065 GB, free: 69.24 MB / 0.573 GB 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.02354/1.852, allocations: 15.25 MB / 1.08 GB, free: 53.91 MB / 0.573 GB Notification: Performance of simCode: created initialization part: time 0.01367/1.865, allocations: 9.934 MB / 1.09 GB, free: 43.96 MB / 0.573 GB Notification: Performance of simCode: created event and clocks part: time 5.47e-06/1.865, allocations: 384 / 1.09 GB, free: 43.96 MB / 0.573 GB Notification: Performance of simCode: created simulation system equations: time 0.005152/1.871, allocations: 3.929 MB / 1.093 GB, free: 40 MB / 0.573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005938/1.877, allocations: 0.7628 MB / 1.094 GB, free: 39.25 MB / 0.573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3291/2.206, allocations: 67.55 MB / 1.16 GB, free: 176.2 MB / 0.573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009174/2.215, allocations: 4.865 MB / 1.165 GB, free: 174.6 MB / 0.573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005872/2.221, allocations: 3.309 MB / 1.168 GB, free: 171.9 MB / 0.573 GB Notification: Performance of SimCode: time 1.322e-06/2.221, allocations: 0 / 1.168 GB, free: 171.9 MB / 0.573 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 11.23/13.45, allocations: 177 MB / 1.341 GB, free: 179.9 MB / 0.573 GB (rm -f ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.LineForceWithTwoMasses.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.LineForceWithTwoMasses.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.LineForceWithTwoMasses.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.LineForceWithTwoMasses.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.LineForceWithTwoMasses_res.mat --tempDir=temp_ModelicaTest_trunk_cpp_ModelicaTest_MultiBody_Forces_LineForceWithTwoMasses_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_cpp_ModelicaTest_MultiBody_Forces_LineForceWithTwoMasses.fmu > ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.LineForceWithTwoMasses.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.LineForceWithTwoMasses_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Forces/LineForceWithTwoMasses/LineForceWithTwoMasses.csv","../files/ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.LineForceWithTwoMasses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches