Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Force.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) 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 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: "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.Force,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Forces_Force",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.Force,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Forces_Force",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001282/0.001282, allocations: 118.8 kB / 17.79 MB, free: 5.266 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001313/0.001313, allocations: 201.2 kB / 18.73 MB, free: 4.32 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.391/1.391, allocations: 227.4 MB / 246.9 MB, free: 10.47 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2192/0.2192, allocations: 46.1 MB / 344.3 MB, free: 11.49 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001435/0.001435, allocations: 75.88 kB / 480.8 MB, free: 4.559 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.372/0.3734, allocations: 62.44 MB / 0.5305 GB, free: 13.4 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.Force): time 0.0182/0.3917, allocations: 15.52 MB / 0.5457 GB, free: 1.215 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.01243/0.4041, allocations: 4.942 MB / 0.5505 GB, free: 13.25 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003656/0.4078, allocations: 103.7 kB / 0.5506 GB, free: 13.15 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.009234/0.4171, allocations: 4.996 MB / 0.5555 GB, free: 8.141 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006933/0.4241, allocations: 2.474 MB / 0.5579 GB, free: 5.656 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002727/0.4268, allocations: 1.104 MB / 0.559 GB, free: 4.551 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.009907/0.4368, allocations: 6.883 MB / 0.5657 GB, free: 13.65 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.008555/0.4454, allocations: 5.774 MB / 0.5713 GB, free: 7.801 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005547/0.451, allocations: 2.407 MB / 0.5737 GB, free: 5.387 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005524/0.4565, allocations: 3.224 MB / 0.5768 GB, free: 2.152 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001912/0.4585, allocations: 0.5039 MB / 0.5773 GB, free: 1.648 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00349/0.462, allocations: 1.389 MB / 0.5787 GB, free: 264 kB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003587/0.4656, allocations: 3 MB / 0.5816 GB, free: 13.25 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005204/0.4708, allocations: 3.402 MB / 0.5849 GB, free: 9.828 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01197/0.4828, allocations: 10.51 MB / 0.5952 GB, free: 15.28 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.33e-06/0.4828, allocations: 0 / 0.5952 GB, free: 15.28 MB / 462.1 MB Notification: Performance of FrontEnd: time 2.084e-06/0.4828, allocations: 0 / 0.5952 GB, free: 15.28 MB / 462.1 MB Notification: Performance of Transformations before backend: time 0.0003729/0.4832, allocations: 0 / 0.5952 GB, free: 15.28 MB / 462.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2161 * Number of variables: 2161 Notification: Performance of Generate backend data structure: time 0.02112/0.5043, allocations: 7.584 MB / 0.6026 GB, free: 7.613 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.16e-05/0.5044, allocations: 12.03 kB / 0.6026 GB, free: 7.602 MB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003552/0.508, allocations: 1.021 MB / 0.6036 GB, free: 6.57 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03571/0.5437, allocations: 6.186 MB / 0.6097 GB, free: 376 kB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01143/0.5552, allocations: 4.671 MB / 0.6142 GB, free: 11.61 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004416/0.5557, allocations: 361.3 kB / 0.6146 GB, free: 11.26 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002393/0.5581, allocations: 475.6 kB / 0.615 GB, free: 10.79 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02621/0.5843, allocations: 14.55 MB / 0.6292 GB, free: 11.24 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002287/0.5846, allocations: 63.38 kB / 0.6293 GB, free: 11.18 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001162/0.5857, allocations: 231.8 kB / 0.6295 GB, free: 10.95 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004476/0.5902, allocations: 2.746 MB / 0.6322 GB, free: 8.203 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02574/0.616, allocations: 12.24 MB / 0.6441 GB, free: 11.93 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07785/0.6939, allocations: 57.56 MB / 0.7004 GB, free: 0.918 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01771/0.7117, allocations: 7.15 MB / 0.7073 GB, free: 9.605 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004757/0.7165, allocations: 3.77 MB / 0.711 GB, free: 5.82 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.2692/0.9856, allocations: 8.736 MB / 0.7195 GB, free: 162.5 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.647e-05/0.9857, allocations: 63.97 kB / 0.7196 GB, free: 162.5 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=246): time 5.57e-06/0.9857, allocations: 0 / 0.7196 GB, free: 162.5 MB / 0.5606 GB Notification: Performance of matching and sorting (n=288): time 0.06793/1.054, allocations: 30.95 MB / 0.7498 GB, free: 146.5 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.327e-05/1.054, allocations: 243.6 kB / 0.7501 GB, free: 146.2 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007027/1.061, allocations: 6.661 MB / 0.7566 GB, free: 139.5 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 0.0005414/1.061, allocations: 73.67 kB / 0.7566 GB, free: 139.5 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.001808/1.063, allocations: 4.425 MB / 0.761 GB, free: 135 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.001012/1.064, allocations: 1.088 MB / 0.762 GB, free: 134 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001764/1.066, allocations: 1.713 MB / 0.7637 GB, free: 132.2 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 3.991e-05/1.066, allocations: 304.7 kB / 0.764 GB, free: 131.9 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003665/1.07, allocations: 3.405 MB / 0.7673 GB, free: 128.5 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00537/1.075, allocations: 8.375 MB / 0.7755 GB, free: 117.8 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01027/1.085, allocations: 12.78 MB / 0.788 GB, free: 102.5 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001012/1.086, allocations: 52 kB / 0.788 GB, free: 102.5 MB / 0.5606 GB Notification: Performance of matching and sorting (n=1100) (initialization): time 0.01828/1.104, allocations: 13.05 MB / 0.8008 GB, free: 89.41 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 9.403e-05/1.104, allocations: 76 kB / 0.8008 GB, free: 89.33 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001546/1.104, allocations: 176 kB / 0.801 GB, free: 89.16 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003709/1.108, allocations: 1.766 MB / 0.8027 GB, free: 87.39 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005618/1.113, allocations: 1.961 MB / 0.8046 GB, free: 85.42 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01171/1.125, allocations: 12.73 MB / 0.8171 GB, free: 72.42 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005902/1.131, allocations: 495.3 kB / 0.8175 GB, free: 71.93 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009583/1.132, allocations: 0.4996 MB / 0.818 GB, free: 71.44 MB / 0.5606 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 796 * Number of states: 0 () * Number of discrete variables: 67 (force2.forceArrow.twoHeadedArrow,force2.forceArrow.headAtOrigin,force1.forceArrow.twoHeadedArrow,force1.forceArrow.headAtOrigin,fixed4.color[3],fixed4.color[2],fixed4.color[1],fixed2.color[3],fixed2.color[2],fixed2.color[1],Revolute4.cylinderColor[3],Revolute4.cylinderColor[2],Revolute4.cylinderColor[1],Revolute3.cylinderColor[3],Revolute3.cylinderColor[2],Revolute3.cylinderColor[1],Revolute2.cylinderColor[3],Revolute2.cylinderColor[2],Revolute2.cylinderColor[1],force2.connectionLineColor[3],force2.connectionLineColor[2],force2.connectionLineColor[1],force2.forceColor[3],force2.forceColor[2],force2.forceColor[1],force1.connectionLineColor[3],force1.connectionLineColor[2],force1.connectionLineColor[1],force1.forceColor[3],force1.forceColor[2],force1.forceColor[1],fixedRotation.color[3],fixedRotation.color[2],fixedRotation.color[1],fixed3.color[3],fixed3.color[2],fixed3.color[1],body2.color[3],body2.color[2],body2.color[1],body2.body.sphereColor[3],body2.body.sphereColor[2],body2.body.sphereColor[1],fixed1.color[3],fixed1.color[2],fixed1.color[1],body1.color[3],body1.color[2],body1.color[1],body1.body.sphereColor[3],body1.body.sphereColor[2],body1.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 (1020): * Single equations (assignments): 1013 * Array equations: 5 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(2,22,100.0%), (2,22,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.004169/1.136, allocations: 2.984 MB / 0.8209 GB, free: 68.44 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008953/1.137, allocations: 0.5591 MB / 0.8215 GB, free: 67.88 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008814/1.146, allocations: 6.495 MB / 0.8278 GB, free: 61.36 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.718e-05/1.146, allocations: 32 kB / 0.8279 GB, free: 61.33 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.8e-05/1.146, allocations: 8 kB / 0.8279 GB, free: 61.32 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.782e-05/1.146, allocations: 11.95 kB / 0.8279 GB, free: 61.31 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02067/1.167, allocations: 14.23 MB / 0.8418 GB, free: 47.03 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.228e-05/1.167, allocations: 8.062 kB / 0.8418 GB, free: 47.02 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002172/1.169, allocations: 495.2 kB / 0.8423 GB, free: 46.54 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00335/1.172, allocations: 1.514 MB / 0.8437 GB, free: 45.02 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004119/1.173, allocations: 48 kB / 0.8438 GB, free: 44.97 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01163/1.184, allocations: 12.06 MB / 0.8556 GB, free: 32.65 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.438e-06/1.185, allocations: 4 kB / 0.8556 GB, free: 32.64 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01238/1.197, allocations: 10.58 MB / 0.8659 GB, free: 21.9 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001445/1.198, allocations: 0.6225 MB / 0.8665 GB, free: 21.25 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007801/1.199, allocations: 52 kB / 0.8666 GB, free: 21.2 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002131/1.201, allocations: 191.3 kB / 0.8667 GB, free: 21.02 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004166/1.202, allocations: 177.6 kB / 0.8669 GB, free: 20.84 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001778/1.202, allocations: 79.98 kB / 0.867 GB, free: 20.76 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.005671/1.208, allocations: 4.278 MB / 0.8712 GB, free: 16.5 MB / 0.5606 GB Notification: Performance of sort global known variables: time 5.71e-07/1.208, allocations: 0 / 0.8712 GB, free: 16.5 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.007282/1.215, allocations: 1.525 MB / 0.8727 GB, free: 14.98 MB / 0.5606 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 20 * Number of states: 8 (Revolute1.phi,Revolute1.w,Revolute3.phi,Revolute3.w,Revolute2.phi,Revolute2.w,Revolute4.phi,Revolute4.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 (232): * Single equations (assignments): 227 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(4,17,75.0%), (4,17,75.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.01301/1.228, allocations: 11.25 MB / 0.8836 GB, free: 3.562 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.01131/1.239, allocations: 8.371 MB / 0.8918 GB, free: 11.2 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 1.331e-05/1.239, allocations: 4 kB / 0.8918 GB, free: 11.19 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.005381/1.245, allocations: 3.317 MB / 0.8951 GB, free: 7.852 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004293/1.249, allocations: 0.7499 MB / 0.8958 GB, free: 7.105 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3742/1.623, allocations: 75.6 MB / 0.9696 GB, free: 221.8 MB / 0.6387 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004657/1.628, allocations: 4.534 MB / 0.9741 GB, free: 220.3 MB / 0.6387 GB Notification: Performance of simCode: alias equations: time 0.005312/1.633, allocations: 2.793 MB / 0.9768 GB, free: 220.2 MB / 0.6387 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00348/1.637, allocations: 2.946 MB / 0.9797 GB, free: 217.8 MB / 0.6387 GB Notification: Performance of SimCode: time 7.01e-07/1.637, allocations: 0 / 0.9797 GB, free: 217.8 MB / 0.6387 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1481/1.785, allocations: 118.8 MB / 1.096 GB, free: 102.2 MB / 0.6387 GB Notification: Performance of buildModelFMU: Generate platform static: time 23.81/25.6, allocations: 10.3 kB / 1.096 GB, free: 102.2 MB / 0.6387 GB (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Force.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Force.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Force.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Force.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Force_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_MultiBody_Forces_Force_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_MultiBody_Forces_Force.fmu > ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Force.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Force_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Forces/Force/Force.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Force.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches