Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2.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.ForceWithTwoMasses2,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_MultiBody_Forces_ForceWithTwoMasses2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_MultiBody_Forces_ForceWithTwoMasses2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001023/0.001023, allocations: 198.3 kB / 16.1 MB, free: 5.703 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.256/1.256, allocations: 226.5 MB / 243.4 MB, free: 6.453 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008105/0.0008107, allocations: 96.64 kB / 295.5 MB, free: 6.656 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3096/0.3096, allocations: 44.82 MB / 392.3 MB, free: 35.69 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002674/0.0002674, allocations: 11.98 kB / 465.4 MB, free: 12.54 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2929/0.2932, allocations: 62.96 MB / 0.516 GB, free: 37.23 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2): time 0.05176/0.345, allocations: 66.42 MB / 0.5808 GB, free: 5.5 MB / 394.7 MB Notification: Performance of NFInst.instExpressions: time 0.03905/0.3841, allocations: 14.01 MB / 0.5945 GB, free: 8.797 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01978/0.404, allocations: 323.2 kB / 0.5948 GB, free: 8.48 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01282/0.4168, allocations: 3.41 MB / 0.5981 GB, free: 5.055 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 0.03479/0.4517, allocations: 10.21 MB / 0.6081 GB, free: 10.81 MB / 426.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.006319/0.458, allocations: 1.338 MB / 0.6094 GB, free: 9.469 MB / 426.7 MB Notification: Performance of NFFlatten.flatten: time 0.08052/0.5386, allocations: 64.77 MB / 0.6727 GB, free: 8.613 MB / 490.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01164/0.5502, allocations: 6.859 MB / 0.6794 GB, free: 1.656 MB / 490.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.2627/0.813, allocations: 2.235 MB / 0.6816 GB, free: 65.17 MB / 490.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005616/0.8186, allocations: 3.661 MB / 0.6851 GB, free: 65.17 MB / 490.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001498/0.8202, allocations: 245.8 kB / 0.6854 GB, free: 65.17 MB / 490.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00358/0.8238, allocations: 1.386 MB / 0.6867 GB, free: 65.17 MB / 490.7 MB Notification: Performance of NFScalarize.scalarize: time 0.003051/0.8268, allocations: 2.966 MB / 0.6896 GB, free: 65.17 MB / 490.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0039/0.8307, allocations: 3.207 MB / 0.6927 GB, free: 65.14 MB / 490.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01181/0.8426, allocations: 8.832 MB / 0.7014 GB, free: 64.56 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.675e-06/0.8426, allocations: 0.5 kB / 0.7014 GB, free: 64.56 MB / 490.7 MB Notification: Performance of FrontEnd: time 2.434e-06/0.8426, allocations: 0.5625 kB / 0.7014 GB, free: 64.56 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0004297/0.8431, allocations: 0 / 0.7014 GB, free: 64.56 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: 2297 * Number of variables: 2297 Notification: Performance of Generate backend data structure: time 0.02173/0.8648, allocations: 7.081 MB / 0.7083 GB, free: 61.42 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.715e-05/0.8649, allocations: 10.41 kB / 0.7083 GB, free: 61.42 MB / 490.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00345/0.8683, allocations: 1.079 MB / 0.7094 GB, free: 61.11 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1532/1.022, allocations: 13.25 MB / 0.7223 GB, free: 56.68 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01311/1.035, allocations: 6.048 MB / 0.7282 GB, free: 53.23 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002766/1.035, allocations: 375.9 kB / 0.7286 GB, free: 53.03 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001973/1.037, allocations: 0.5052 MB / 0.7291 GB, free: 52.69 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02881/1.066, allocations: 16.12 MB / 0.7448 GB, free: 39.92 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002724/1.066, allocations: 76.48 kB / 0.7449 GB, free: 39.88 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001155/1.067, allocations: 235.2 kB / 0.7451 GB, free: 39.8 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004094/1.071, allocations: 2.919 MB / 0.7479 GB, free: 37.4 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02622/1.098, allocations: 13.42 MB / 0.761 GB, free: 27.93 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.07367/1.171, allocations: 64.1 MB / 0.8236 GB, free: 5.293 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0219/1.193, allocations: 7.802 MB / 0.8313 GB, free: 13.36 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005366/1.199, allocations: 4.056 MB / 0.8352 GB, free: 9.281 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0283/1.227, allocations: 18.61 MB / 0.8534 GB, free: 6.195 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.448e-05/1.227, allocations: 70.02 kB / 0.8535 GB, free: 6.121 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=281): time 6.122e-06/1.227, allocations: 0 / 0.8535 GB, free: 6.121 MB / 0.5417 GB Notification: Performance of matching and sorting (n=362): time 0.4069/1.634, allocations: 47.08 MB / 0.8994 GB, free: 216.4 MB / 0.573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.612e-05/1.634, allocations: 273.6 kB / 0.8997 GB, free: 216.1 MB / 0.573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01087/1.645, allocations: 6.044 MB / 0.9056 GB, free: 214.1 MB / 0.573 GB Notification: Performance of collectPreVariables (initialization): time 0.0008871/1.646, allocations: 77.81 kB / 0.9057 GB, free: 214 MB / 0.573 GB Notification: Performance of collectInitialEqns (initialization): time 0.002834/1.649, allocations: 4.748 MB / 0.9103 GB, free: 210.4 MB / 0.573 GB Notification: Performance of collectInitialBindings (initialization): time 0.001865/1.651, allocations: 1.332 MB / 0.9116 GB, free: 209.4 MB / 0.573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005895/1.651, allocations: 184.4 kB / 0.9118 GB, free: 209.2 MB / 0.573 GB Notification: Performance of setup shared object (initialization): time 0.0004518/1.652, allocations: 0.6931 MB / 0.9125 GB, free: 208.8 MB / 0.573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006665/1.659, allocations: 3.852 MB / 0.9162 GB, free: 207.5 MB / 0.573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008426/1.667, allocations: 9.081 MB / 0.9251 GB, free: 199.2 MB / 0.573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01402/1.681, allocations: 14.01 MB / 0.9388 GB, free: 188.3 MB / 0.573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002408/1.681, allocations: 51.41 kB / 0.9388 GB, free: 188.3 MB / 0.573 GB Notification: Performance of matching and sorting (n=1200) (initialization): time 0.03194/1.713, allocations: 16.3 MB / 0.9548 GB, free: 180.1 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 0.00022/1.714, allocations: 84 kB / 0.9548 GB, free: 180 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000293/1.714, allocations: 183.8 kB / 0.955 GB, free: 179.8 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01248/1.726, allocations: 4.101 MB / 0.959 GB, free: 177 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006545/1.733, allocations: 2.038 MB / 0.961 GB, free: 175.2 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02662/1.76, allocations: 21.99 MB / 0.9825 GB, free: 154 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008828/1.768, allocations: 0.5032 MB / 0.983 GB, free: 153.5 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001994/1.77, allocations: 0.5234 MB / 0.9835 GB, free: 153 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 (1080): * Single equations (assignments): 1075 * 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 {(1,100.0%) 45,(4,62.5%) 48} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.008145/1.779, allocations: 3.118 MB / 0.9865 GB, free: 149.9 MB / 0.573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001758/1.78, allocations: 0.5707 MB / 0.9871 GB, free: 149.3 MB / 0.573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02167/1.802, allocations: 9.795 MB / 0.9967 GB, free: 139.4 MB / 0.573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.884e-05/1.802, allocations: 36 kB / 0.9967 GB, free: 139.4 MB / 0.573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.522e-05/1.802, allocations: 16 kB / 0.9967 GB, free: 139.4 MB / 0.573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.425e-05/1.802, allocations: 23.88 kB / 0.9967 GB, free: 139.4 MB / 0.573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03892/1.841, allocations: 19.47 MB / 1.016 GB, free: 119.8 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.974e-05/1.841, allocations: 3.984 kB / 1.016 GB, free: 119.8 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002999/1.844, allocations: 0.5237 MB / 1.016 GB, free: 119.3 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01224/1.857, allocations: 3.71 MB / 1.02 GB, free: 115.6 MB / 0.573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008188/1.857, allocations: 59.98 kB / 1.02 GB, free: 115.5 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02485/1.882, allocations: 19.92 MB / 1.039 GB, free: 95.32 MB / 0.573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.875e-06/1.882, allocations: 0 / 1.039 GB, free: 95.32 MB / 0.573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02436/1.907, allocations: 14.36 MB / 1.053 GB, free: 80.88 MB / 0.573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002085/1.909, allocations: 0.5912 MB / 1.054 GB, free: 80.26 MB / 0.573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001901/1.911, allocations: 56 kB / 1.054 GB, free: 80.21 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003936/1.915, allocations: 208.7 kB / 1.054 GB, free: 80 MB / 0.573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001223/1.916, allocations: 226.1 kB / 1.054 GB, free: 79.78 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003473/1.916, allocations: 107.7 kB / 1.055 GB, free: 79.68 MB / 0.573 GB Notification: Performance of sorting global known variables: time 0.006453/1.923, allocations: 3.764 MB / 1.058 GB, free: 75.92 MB / 0.573 GB Notification: Performance of sort global known variables: time 5.01e-07/1.923, allocations: 4 kB / 1.058 GB, free: 75.92 MB / 0.573 GB Notification: Performance of remove unused functions: time 0.01086/1.934, allocations: 1.833 MB / 1.06 GB, free: 74.09 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 (262): * Single equations (assignments): 257 * 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.02582/1.959, allocations: 15.14 MB / 1.075 GB, free: 58.88 MB / 0.573 GB Notification: Performance of simCode: created initialization part: time 0.01523/1.975, allocations: 9.811 MB / 1.084 GB, free: 49.05 MB / 0.573 GB Notification: Performance of simCode: created event and clocks part: time 7.404e-06/1.975, allocations: 384 / 1.084 GB, free: 49.05 MB / 0.573 GB Notification: Performance of simCode: created simulation system equations: time 0.005106/1.98, allocations: 3.878 MB / 1.088 GB, free: 45.14 MB / 0.573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005941/1.986, allocations: 0.7594 MB / 1.089 GB, free: 44.39 MB / 0.573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3483/2.334, allocations: 67.26 MB / 1.155 GB, free: 176.8 MB / 0.573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005344/2.34, allocations: 4.85 MB / 1.159 GB, free: 175.2 MB / 0.573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003673/2.343, allocations: 3.301 MB / 1.163 GB, free: 172.6 MB / 0.573 GB Notification: Performance of SimCode: time 7.72e-07/2.343, allocations: 3.688 kB / 1.163 GB, free: 172.6 MB / 0.573 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 10.94/13.28, allocations: 176.5 MB / 1.335 GB, free: 175 MB / 0.573 GB (rm -f ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2_res.mat --tempDir=temp_ModelicaTest_trunk_cpp_ModelicaTest_MultiBody_Forces_ForceWithTwoMasses2_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_cpp_ModelicaTest_MultiBody_Forces_ForceWithTwoMasses2.fmu > ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Forces/ForceWithTwoMasses2/ForceWithTwoMasses2.csv","../files/ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches