Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.DifferentiationOfForces.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001685/0.001685, allocations: 116.9 kB / 18.49 MB, free: 4.535 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001459/0.001459, allocations: 220.7 kB / 21.46 MB, free: 1.582 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.458/1.458, allocations: 230.4 MB / 254.7 MB, free: 15.2 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2204/0.2204, allocations: 46.91 MB / 357.7 MB, free: 10.23 MB / 286.1 MB " [Timeout remaining time 180] 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.DifferentiationOfForces,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Forces_DifferentiationOfForces",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.DifferentiationOfForces,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Forces_DifferentiationOfForces",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002241/0.002241, allocations: 83.88 kB / 0.4917 GB, free: 7.734 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1188/0.1211, allocations: 66.05 MB / 0.5562 GB, free: 5.559 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.DifferentiationOfForces): time 0.01172/0.1328, allocations: 9.532 MB / 0.5655 GB, free: 11.98 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.008027/0.1408, allocations: 3.845 MB / 0.5692 GB, free: 8.117 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001419/0.1422, allocations: 63.75 kB / 0.5693 GB, free: 8.055 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00536/0.1476, allocations: 2.788 MB / 0.572 GB, free: 5.258 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003999/0.1516, allocations: 1.662 MB / 0.5736 GB, free: 3.59 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001601/0.1532, allocations: 0.7018 MB / 0.5743 GB, free: 2.887 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.005172/0.1584, allocations: 3.902 MB / 0.5781 GB, free: 14.98 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003861/0.1622, allocations: 3.05 MB / 0.5811 GB, free: 11.86 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002259/0.1645, allocations: 1.425 MB / 0.5825 GB, free: 10.43 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00309/0.1676, allocations: 2.048 MB / 0.5845 GB, free: 8.375 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008289/0.1684, allocations: 315.9 kB / 0.5848 GB, free: 8.066 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002423/0.1708, allocations: 1.225 MB / 0.586 GB, free: 6.84 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002382/0.1732, allocations: 1.792 MB / 0.5878 GB, free: 5.043 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003742/0.1769, allocations: 2.074 MB / 0.5898 GB, free: 2.957 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.2445/0.4214, allocations: 6.859 MB / 0.5965 GB, free: 14.7 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.065e-06/0.4214, allocations: 0.5312 kB / 0.5965 GB, free: 14.7 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.364e-06/0.4214, allocations: 2 kB / 0.5965 GB, free: 14.7 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0002028/0.4216, allocations: 1.125 kB / 0.5965 GB, free: 14.7 MB / 446.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1367 * Number of variables: 1367 Notification: Performance of Generate backend data structure: time 0.01328/0.4349, allocations: 4.579 MB / 0.601 GB, free: 12.83 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.465e-05/0.435, allocations: 9.562 kB / 0.601 GB, free: 12.83 MB / 446.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 0.0002001/0.4352, allocations: 97.88 kB / 0.6011 GB, free: 12.82 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001554/0.4367, allocations: 0.6561 MB / 0.6017 GB, free: 12.75 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.08509/0.5218, allocations: 7.06 MB / 0.6086 GB, free: 12.41 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006524/0.5283, allocations: 2.683 MB / 0.6112 GB, free: 11.83 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001705/0.5285, allocations: 218.5 kB / 0.6114 GB, free: 11.82 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001037/0.5295, allocations: 297.9 kB / 0.6117 GB, free: 11.81 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01312/0.5426, allocations: 8.657 MB / 0.6202 GB, free: 8.355 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001206/0.5428, allocations: 45.52 kB / 0.6202 GB, free: 8.348 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004073/0.5432, allocations: 137.9 kB / 0.6203 GB, free: 8.285 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002247/0.5454, allocations: 1.656 MB / 0.6219 GB, free: 7.668 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01099/0.5564, allocations: 7.092 MB / 0.6289 GB, free: 4.562 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03993/0.5963, allocations: 33.27 MB / 0.6614 GB, free: 3.457 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005078/0.6014, allocations: 2.285 MB / 0.6636 GB, free: 1.035 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001713/0.6031, allocations: 1.132 MB / 0.6647 GB, free: 15.9 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003711/0.6035, allocations: 323.6 kB / 0.665 GB, free: 15.53 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.616e-05/0.6035, allocations: 56.56 kB / 0.6651 GB, free: 15.47 MB / 494.1 MB Notification: Performance of pre-optimization done (n=122): time 3.627e-06/0.6035, allocations: 0 / 0.6651 GB, free: 15.47 MB / 494.1 MB Notification: Performance of matching and sorting (n=140): time 0.02647/0.63, allocations: 10.68 MB / 0.6755 GB, free: 4.727 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001258/0.6301, allocations: 193.8 kB / 0.6757 GB, free: 4.496 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005495/0.6356, allocations: 3.595 MB / 0.6792 GB, free: 0.9062 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003757/0.636, allocations: 45.7 kB / 0.6792 GB, free: 0.8555 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002296/0.6383, allocations: 2.955 MB / 0.6821 GB, free: 13.92 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0007978/0.6391, allocations: 0.5789 MB / 0.6827 GB, free: 13.35 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001567/0.6407, allocations: 1.074 MB / 0.6837 GB, free: 12.27 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001266/0.6408, allocations: 305.1 kB / 0.684 GB, free: 11.97 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002862/0.6437, allocations: 1.694 MB / 0.6857 GB, free: 10.27 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005811/0.6495, allocations: 5.064 MB / 0.6906 GB, free: 3.562 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009881/0.6593, allocations: 7.341 MB / 0.6978 GB, free: 11.04 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001233/0.6595, allocations: 39.75 kB / 0.6978 GB, free: 11.01 MB / 0.5137 GB Notification: Performance of matching and sorting (n=682) (initialization): time 0.01508/0.6746, allocations: 6.749 MB / 0.7044 GB, free: 4.469 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 7.992e-05/0.6746, allocations: 56 kB / 0.7045 GB, free: 4.414 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000133/0.6748, allocations: 116 kB / 0.7046 GB, free: 4.301 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001052/0.6758, allocations: 428.6 kB / 0.705 GB, free: 3.879 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00399/0.6798, allocations: 1.214 MB / 0.7062 GB, free: 2.664 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004434/0.6842, allocations: 3.589 MB / 0.7097 GB, free: 14.94 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003694/0.6879, allocations: 291.7 kB / 0.71 GB, free: 14.66 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007189/0.6887, allocations: 331.9 kB / 0.7103 GB, free: 14.33 MB / 0.5294 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 544 * Number of states: 0 () * Number of discrete variables: 36 (forceAndTorque.torqueArrow.twoHeadedArrow,forceAndTorque.torqueArrow.headAtOrigin,forceAndTorque.forceArrow.twoHeadedArrow,forceAndTorque.forceArrow.headAtOrigin,cutForce.forceArrow.twoHeadedArrow,cutForce.forceArrow.headAtOrigin,forceAndTorque.torqueColor[3],forceAndTorque.torqueColor[2],forceAndTorque.torqueColor[1],forceAndTorque.forceColor[3],forceAndTorque.forceColor[2],forceAndTorque.forceColor[1],cutForce.forceColor[3],cutForce.forceColor[2],cutForce.forceColor[1],body.color[3],body.color[2],body.color[1],body.body.sphereColor[3],body.body.sphereColor[2],body.body.sphereColor[1],rev.cylinderColor[3],rev.cylinderColor[2],rev.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 (644): * Single equations (assignments): 640 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,14,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.003254/0.6919, allocations: 1.951 MB / 0.7122 GB, free: 12.37 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006681/0.6926, allocations: 317.8 kB / 0.7125 GB, free: 12.05 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003772/0.6964, allocations: 1.878 MB / 0.7143 GB, free: 10.16 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.82e-05/0.6964, allocations: 19.5 kB / 0.7143 GB, free: 10.14 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.414e-06/0.6964, allocations: 0 / 0.7143 GB, free: 10.14 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.659e-05/0.6964, allocations: 7.984 kB / 0.7144 GB, free: 10.14 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01113/0.7075, allocations: 5.751 MB / 0.72 GB, free: 4.348 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.096e-05/0.7075, allocations: 3.5 kB / 0.72 GB, free: 4.348 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00109/0.7086, allocations: 223.6 kB / 0.7202 GB, free: 4.129 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007999/0.7094, allocations: 248.6 kB / 0.7204 GB, free: 3.883 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000118/0.7096, allocations: 31.98 kB / 0.7205 GB, free: 3.852 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003839/0.7134, allocations: 3.171 MB / 0.7235 GB, free: 0.5469 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.848e-06/0.7134, allocations: 8.094 kB / 0.7236 GB, free: 0.5391 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006261/0.7197, allocations: 3.954 MB / 0.7274 GB, free: 12.56 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009476/0.7206, allocations: 374.8 kB / 0.7278 GB, free: 12.18 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003264/0.7209, allocations: 16 kB / 0.7278 GB, free: 12.16 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001136/0.7221, allocations: 71.83 kB / 0.7279 GB, free: 12.09 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002705/0.7223, allocations: 100.5 kB / 0.728 GB, free: 12 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001048/0.7224, allocations: 39.98 kB / 0.728 GB, free: 11.96 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.003505/0.7259, allocations: 2.238 MB / 0.7302 GB, free: 9.73 MB / 0.545 GB Notification: Performance of sort global known variables: time 2.31e-07/0.7259, allocations: 8 kB / 0.7302 GB, free: 9.723 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.00395/0.7299, allocations: 0.8163 MB / 0.731 GB, free: 8.906 MB / 0.545 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 2 (rev.phi,rev.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 (107): * Single equations (assignments): 103 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,11,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.006538/0.7364, allocations: 4.581 MB / 0.7355 GB, free: 4.305 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.00769/0.7441, allocations: 3.971 MB / 0.7393 GB, free: 352 kB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 4.989e-06/0.7441, allocations: 0 / 0.7393 GB, free: 352 kB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.00187/0.746, allocations: 1.104 MB / 0.7404 GB, free: 15.23 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00255/0.7485, allocations: 406.3 kB / 0.7408 GB, free: 14.84 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0587/0.8072, allocations: 37.9 MB / 0.7778 GB, free: 3.871 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003491/0.8107, allocations: 3.038 MB / 0.7808 GB, free: 0.8086 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.003803/0.8145, allocations: 1.702 MB / 0.7824 GB, free: 15.1 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002527/0.8171, allocations: 1.667 MB / 0.7841 GB, free: 13.44 MB / 0.6075 GB Notification: Performance of SimCode: time 1.353e-06/0.8171, allocations: 0 / 0.7841 GB, free: 13.44 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1064/0.9234, allocations: 56.92 MB / 0.8397 GB, free: 4.832 MB / 0.6544 GB Notification: Performance of buildModelFMU: Generate platform static: time 21.86/22.78, allocations: 8 kB / 0.8397 GB, free: 4.824 MB / 0.6544 GB " [Timeout remaining time 637] (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.DifferentiationOfForces.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.DifferentiationOfForces.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.DifferentiationOfForces.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.DifferentiationOfForces.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.DifferentiationOfForces_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_MultiBody_Forces_DifferentiationOfForces_fmu --startTime=0 --stopTime=1.1 --stepSize=0.000219912 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_MultiBody_Forces_DifferentiationOfForces.fmu > ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.DifferentiationOfForces.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.DifferentiationOfForces_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/MultiBody/Forces/DifferentiationOfForces/DifferentiationOfForces.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.DifferentiationOfForces.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 27.007656653993763]