Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.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.Forces.ForceWithTwoMasses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|revolute.phi|revolute.w",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses") translateModel(ModelicaTest.MultiBody.Forces.ForceWithTwoMasses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|revolute.phi|revolute.w",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.000925/0.000925, allocations: 200.5 kB / 15.8 MB, free: 6.305 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.253/1.253, allocations: 226.6 MB / 243.1 MB, free: 14.11 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007407/0.0007409, allocations: 104.7 kB / 295.1 MB, free: 10.02 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1987/0.1987, allocations: 44.84 MB / 392 MB, free: 9.293 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002588/0.0002589, allocations: 8 kB / 464.7 MB, free: 49.75 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1044/0.1047, allocations: 62.95 MB / 0.5153 GB, free: 2.762 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.ForceWithTwoMasses): time 0.21/0.3147, allocations: 31.52 MB / 0.5461 GB, free: 7.496 MB / 362.7 MB Notification: Performance of NFInst.instExpressions: time 0.01646/0.3312, allocations: 7.498 MB / 0.5534 GB, free: 2.418 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006247/0.3375, allocations: 147.5 kB / 0.5536 GB, free: 2.395 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00549/0.343, allocations: 1.589 MB / 0.5551 GB, free: 1.824 MB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01313/0.3562, allocations: 4.878 MB / 0.5599 GB, free: 14.64 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002774/0.359, allocations: 0.5827 MB / 0.5604 GB, free: 14.27 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.03821/0.3972, allocations: 32.08 MB / 0.5918 GB, free: 15.25 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005331/0.4026, allocations: 2.992 MB / 0.5947 GB, free: 12.2 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002326/0.4049, allocations: 1.129 MB / 0.5958 GB, free: 11.07 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002723/0.4077, allocations: 1.791 MB / 0.5975 GB, free: 9.273 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0007254/0.4084, allocations: 124 kB / 0.5977 GB, free: 9.152 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002244/0.4107, allocations: 0.9479 MB / 0.5986 GB, free: 8.203 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001839/0.4125, allocations: 1.492 MB / 0.6 GB, free: 6.707 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001148/0.4137, allocations: 0.7181 MB / 0.6008 GB, free: 5.98 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004917/0.4186, allocations: 4.68 MB / 0.6053 GB, free: 1.289 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.508e-06/0.4187, allocations: 3.938 kB / 0.6053 GB, free: 1.285 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.804e-06/0.4187, allocations: 0 / 0.6053 GB, free: 1.285 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0001766/0.4188, allocations: 4 kB / 0.6053 GB, free: 1.281 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: 1319 * Number of variables: 1319 Notification: Performance of Generate backend data structure: time 0.006583/0.4254, allocations: 3.543 MB / 0.6088 GB, free: 13.67 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.921e-05/0.4255, allocations: 16.02 kB / 0.6088 GB, free: 13.66 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01463/0.4401, allocations: 2.487 MB / 0.6112 GB, free: 11.16 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005127/0.4453, allocations: 2.327 MB / 0.6135 GB, free: 8.77 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001325/0.4454, allocations: 196.9 kB / 0.6137 GB, free: 8.574 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004999/0.446, allocations: 275.7 kB / 0.614 GB, free: 8.305 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01225/0.4582, allocations: 8.58 MB / 0.6223 GB, free: 15.09 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.483e-05/0.4583, allocations: 39.64 kB / 0.6224 GB, free: 15.05 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003026/0.4587, allocations: 123.9 kB / 0.6225 GB, free: 14.93 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002545/0.4612, allocations: 1.739 MB / 0.6242 GB, free: 13.19 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01187/0.4731, allocations: 7.276 MB / 0.6313 GB, free: 5.906 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03407/0.5072, allocations: 34.18 MB / 0.6647 GB, free: 2.645 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007993/0.5152, allocations: 3.525 MB / 0.6681 GB, free: 14.98 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002082/0.5173, allocations: 1.701 MB / 0.6698 GB, free: 13.27 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01014/0.5275, allocations: 7.431 MB / 0.677 GB, free: 5.574 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.713e-05/0.5275, allocations: 59.44 kB / 0.6771 GB, free: 5.508 MB / 490.7 MB Notification: Performance of pre-optimization done (n=151): time 3.407e-06/0.5276, allocations: 0 / 0.6771 GB, free: 5.508 MB / 490.7 MB Notification: Performance of matching and sorting (n=188): time 0.06539/0.593, allocations: 19.93 MB / 0.6965 GB, free: 1.414 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001043/0.5931, allocations: 209.2 kB / 0.6967 GB, free: 1.168 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004653/0.5978, allocations: 3.719 MB / 0.7004 GB, free: 13.45 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.0002632/0.598, allocations: 53.7 kB / 0.7004 GB, free: 13.39 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.00171/0.5998, allocations: 2.81 MB / 0.7032 GB, free: 10.55 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.0006612/0.6004, allocations: 0.7135 MB / 0.7039 GB, free: 9.828 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002207/0.6007, allocations: 127.9 kB / 0.704 GB, free: 9.703 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.000292/0.601, allocations: 0.5542 MB / 0.7045 GB, free: 9.141 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002881/0.6038, allocations: 2.178 MB / 0.7067 GB, free: 6.957 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.2091/0.813, allocations: 5.736 MB / 0.7123 GB, free: 163.7 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.006627/0.8196, allocations: 3.458 MB / 0.7156 GB, free: 163.2 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001514/0.8198, allocations: 36.34 kB / 0.7157 GB, free: 163.2 MB / 0.5105 GB Notification: Performance of matching and sorting (n=782) (initialization): time 0.02039/0.8402, allocations: 9.164 MB / 0.7246 GB, free: 160.1 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 9.73e-05/0.8404, allocations: 59.81 kB / 0.7247 GB, free: 160.1 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001651/0.8405, allocations: 124.3 kB / 0.7248 GB, free: 160.1 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.006103/0.8466, allocations: 1.698 MB / 0.7265 GB, free: 159.9 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004395/0.8511, allocations: 1.323 MB / 0.7277 GB, free: 159.7 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01271/0.8638, allocations: 9.307 MB / 0.7368 GB, free: 155.4 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00371/0.8675, allocations: 321.2 kB / 0.7371 GB, free: 155.4 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004502/0.868, allocations: 360.5 kB / 0.7375 GB, free: 155.3 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 570 * Number of states: 0 () * Number of discrete variables: 36 (FixedTranslation2.color[3],FixedTranslation2.color[2],FixedTranslation2.color[1],force.massColor[3],force.massColor[2],force.massColor[1],force.color_b[3],force.color_b[2],force.color_b[1],force.color_a[3],force.color_a[2],force.color_a[1],FixedTranslation1.color[3],FixedTranslation1.color[2],FixedTranslation1.color[1],BodyBox1.color[3],BodyBox1.color[2],BodyBox1.color[1],BodyBox1.body.sphereColor[3],BodyBox1.body.sphereColor[2],BodyBox1.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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (714): * Single equations (assignments): 710 * 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 {(2,100.0%) 43} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002186/0.8702, allocations: 1.898 MB / 0.7393 GB, free: 154.5 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003974/0.8706, allocations: 330.1 kB / 0.7397 GB, free: 154.5 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007628/0.8782, allocations: 4.162 MB / 0.7437 GB, free: 153.1 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.381e-05/0.8783, allocations: 20.55 kB / 0.7437 GB, free: 153.1 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.01e-05/0.8783, allocations: 7.812 kB / 0.7437 GB, free: 153.1 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.57e-05/0.8783, allocations: 11.77 kB / 0.7438 GB, free: 153.1 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01317/0.8915, allocations: 8.56 MB / 0.7521 GB, free: 147.8 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.324e-05/0.8916, allocations: 1.641 kB / 0.7521 GB, free: 147.8 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001048/0.8926, allocations: 255.6 kB / 0.7524 GB, free: 147.5 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004697/0.8973, allocations: 1.459 MB / 0.7538 GB, free: 146.1 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001339/0.8975, allocations: 31.98 kB / 0.7538 GB, free: 146 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009687/0.9072, allocations: 8.611 MB / 0.7622 GB, free: 137.3 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.404e-06/0.9072, allocations: 0.875 kB / 0.7622 GB, free: 137.3 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009686/0.9169, allocations: 6.734 MB / 0.7688 GB, free: 130.6 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000687/0.9176, allocations: 382 kB / 0.7692 GB, free: 130.2 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003548/0.9179, allocations: 41.02 kB / 0.7692 GB, free: 130.1 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001228/0.9192, allocations: 95.88 kB / 0.7693 GB, free: 130 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002145/0.9194, allocations: 105.8 kB / 0.7694 GB, free: 129.9 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001123/0.9195, allocations: 57.08 kB / 0.7695 GB, free: 129.9 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.002444/0.922, allocations: 2.3 MB / 0.7717 GB, free: 127.6 MB / 0.5105 GB Notification: Performance of sort global known variables: time 1.252e-06/0.922, allocations: 0 / 0.7717 GB, free: 127.6 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.003572/0.9256, allocations: 1.001 MB / 0.7727 GB, free: 126.6 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 2 (revolute.phi,revolute.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 (130): * Single equations (assignments): 126 * 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%) 36} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003206/0.9259, allocations: 171.8 kB / 0.7728 GB, free: 126.4 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.005752/0.9317, allocations: 5.38 MB / 0.7781 GB, free: 121.1 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 3.136e-06/0.9317, allocations: 0 / 0.7781 GB, free: 121.1 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.001743/0.9334, allocations: 1.804 MB / 0.7799 GB, free: 119.2 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001616/0.935, allocations: 366.3 kB / 0.7802 GB, free: 118.9 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01073/0.9458, allocations: 10.39 MB / 0.7904 GB, free: 108.5 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002071/0.9479, allocations: 2.954 MB / 0.7932 GB, free: 105.5 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007582/0.9487, allocations: 271.4 kB / 0.7935 GB, free: 105.2 MB / 0.5105 GB Notification: Performance of SimCode: time 2.174e-06/0.9487, allocations: 0 / 0.7935 GB, free: 105.2 MB / 0.5105 GB Notification: Performance of Templates: time 0.0727/1.021, allocations: 68.77 MB / 0.8607 GB, free: 36.45 MB / 0.5105 GB make -j1 -f ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.makefile (rm -f ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.sim & ./ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses --alarm=480 -emit_protected > ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Forces/ForceWithTwoMasses/ForceWithTwoMasses.csv","../files/ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches