Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.LineForceWithMass.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.LineForceWithMass,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Forces_LineForceWithMass",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.LineForceWithMass,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Forces_LineForceWithMass",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001571/0.001571, allocations: 109.2 kB / 17.21 MB, free: 6.27 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001998/0.001998, allocations: 213.7 kB / 18.14 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.497/1.497, allocations: 227.4 MB / 246.3 MB, free: 9.051 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2447/0.2447, allocations: 46.11 MB / 343.6 MB, free: 11.58 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001769/0.001769, allocations: 77.72 kB / 416.9 MB, free: 20.06 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1349/0.1367, allocations: 62.45 MB / 479.4 MB, free: 5.594 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.LineForceWithMass): time 0.2839/0.4207, allocations: 63.5 MB / 0.5302 GB, free: 8.055 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.03021/0.4509, allocations: 12.92 MB / 0.5428 GB, free: 228 kB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01648/0.4675, allocations: 287.1 kB / 0.5431 GB, free: 180 kB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.008674/0.4762, allocations: 4.004 MB / 0.547 GB, free: 14.17 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01044/0.4867, allocations: 2.18 MB / 0.5491 GB, free: 12.64 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003286/0.49, allocations: 1.065 MB / 0.5501 GB, free: 11.94 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.01174/0.5018, allocations: 9.436 MB / 0.5593 GB, free: 5.441 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006433/0.5082, allocations: 4.614 MB / 0.5639 GB, free: 0.7812 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003953/0.5122, allocations: 1.985 MB / 0.5658 GB, free: 14.79 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004939/0.5172, allocations: 3.221 MB / 0.5689 GB, free: 11.56 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001464/0.5187, allocations: 331.9 kB / 0.5693 GB, free: 11.23 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003871/0.5225, allocations: 1.486 MB / 0.5707 GB, free: 9.746 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003762/0.5263, allocations: 2.575 MB / 0.5732 GB, free: 7.164 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006066/0.5324, allocations: 2.986 MB / 0.5761 GB, free: 4.16 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01212/0.5445, allocations: 9.338 MB / 0.5853 GB, free: 10.79 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.66e-06/0.5446, allocations: 0 / 0.5853 GB, free: 10.79 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.624e-06/0.5446, allocations: 0 / 0.5853 GB, free: 10.79 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0003683/0.545, allocations: 0 / 0.5853 GB, free: 10.79 MB / 430.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1941 * Number of variables: 1941 Notification: Performance of Generate backend data structure: time 0.0218/0.5668, allocations: 6.995 MB / 0.5921 GB, free: 3.719 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.646e-05/0.5669, allocations: 8.875 kB / 0.5921 GB, free: 3.711 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002708/0.5696, allocations: 0.9257 MB / 0.593 GB, free: 2.773 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1434/0.713, allocations: 12.5 MB / 0.6052 GB, free: 6.25 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01222/0.7253, allocations: 4.473 MB / 0.6096 GB, free: 1.719 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003877/0.7257, allocations: 312.4 kB / 0.6099 GB, free: 1.41 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001997/0.7278, allocations: 423.7 kB / 0.6103 GB, free: 0.9961 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02915/0.7569, allocations: 13.68 MB / 0.6236 GB, free: 2.441 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002456/0.7572, allocations: 63.41 kB / 0.6237 GB, free: 2.379 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001241/0.7585, allocations: 215.8 kB / 0.6239 GB, free: 2.168 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004183/0.7627, allocations: 2.527 MB / 0.6264 GB, free: 15.64 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02454/0.7872, allocations: 11.54 MB / 0.6376 GB, free: 4.082 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07061/0.8579, allocations: 53.08 MB / 0.6895 GB, free: 13.49 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01703/0.8749, allocations: 5.819 MB / 0.6952 GB, free: 7.52 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005239/0.8802, allocations: 3.377 MB / 0.6985 GB, free: 4.133 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02667/0.9069, allocations: 14.88 MB / 0.713 GB, free: 4.672 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.903e-05/0.907, allocations: 60.5 kB / 0.713 GB, free: 4.605 MB / 0.545 GB Notification: Performance of pre-optimization done (n=227): time 5.871e-06/0.9071, allocations: 0 / 0.713 GB, free: 4.605 MB / 0.545 GB Notification: Performance of matching and sorting (n=264): time 0.3093/1.216, allocations: 26.19 MB / 0.7386 GB, free: 192.6 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001088/1.217, allocations: 268.6 kB / 0.7389 GB, free: 192.3 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006584/1.223, allocations: 5.062 MB / 0.7438 GB, free: 190.5 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 0.0004828/1.224, allocations: 69.14 kB / 0.7439 GB, free: 190.4 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.002205/1.226, allocations: 3.95 MB / 0.7477 GB, free: 187.4 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.001105/1.227, allocations: 0.9886 MB / 0.7487 GB, free: 186.7 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001667/1.229, allocations: 1.464 MB / 0.7501 GB, free: 186 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 5.32e-05/1.229, allocations: 309 kB / 0.7504 GB, free: 185.7 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003586/1.232, allocations: 2.731 MB / 0.7531 GB, free: 184.8 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005397/1.238, allocations: 7.083 MB / 0.76 GB, free: 177.7 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01005/1.248, allocations: 10.65 MB / 0.7704 GB, free: 165 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001078/1.248, allocations: 44 kB / 0.7705 GB, free: 164.9 MB / 0.545 GB Notification: Performance of matching and sorting (n=963) (initialization): time 0.01661/1.265, allocations: 10.11 MB / 0.7803 GB, free: 154.8 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 0.000123/1.265, allocations: 74.81 kB / 0.7804 GB, free: 154.7 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002009/1.265, allocations: 152 kB / 0.7805 GB, free: 154.6 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001683/1.267, allocations: 0.716 MB / 0.7812 GB, free: 153.9 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005712/1.272, allocations: 1.774 MB / 0.783 GB, free: 152.1 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005955/1.278, allocations: 6.337 MB / 0.7892 GB, free: 145.5 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005857/1.284, allocations: 407.3 kB / 0.7896 GB, free: 145.1 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001302/1.286, allocations: 451.7 kB / 0.79 GB, free: 144.7 MB / 0.545 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 693 * Number of states: 0 () * Number of discrete variables: 57 (lineForceWithMass.lineShapeColor[3],lineForceWithMass.lineShapeColor[2],lineForceWithMass.lineShapeColor[1],lineForceWithMass.massColor[3],lineForceWithMass.massColor[2],lineForceWithMass.massColor[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],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 (913): * Single equations (assignments): 908 * 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 {(1,13,100.0%), (1,13,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.005407/1.291, allocations: 2.63 MB / 0.7926 GB, free: 142 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001576/1.293, allocations: 466 kB / 0.793 GB, free: 141.6 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0078/1.3, allocations: 4.38 MB / 0.7973 GB, free: 137.2 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.968e-05/1.3, allocations: 31.94 kB / 0.7973 GB, free: 137.1 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.819e-05/1.3, allocations: 8.5 kB / 0.7973 GB, free: 137.1 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.91e-05/1.301, allocations: 15.95 kB / 0.7973 GB, free: 137.1 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01866/1.319, allocations: 10.85 MB / 0.8079 GB, free: 126.3 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.536e-05/1.319, allocations: 0 / 0.8079 GB, free: 126.3 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002351/1.322, allocations: 0.4938 MB / 0.8084 GB, free: 125.8 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001292/1.323, allocations: 499.8 kB / 0.8089 GB, free: 125.3 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001881/1.323, allocations: 52.61 kB / 0.8089 GB, free: 125.2 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004956/1.328, allocations: 5.69 MB / 0.8145 GB, free: 119.3 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.464e-06/1.328, allocations: 4 kB / 0.8145 GB, free: 119.3 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008618/1.337, allocations: 7.63 MB / 0.8219 GB, free: 111.6 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001242/1.338, allocations: 0.4911 MB / 0.8224 GB, free: 111.1 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006673/1.339, allocations: 43.94 kB / 0.8225 GB, free: 111 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001892/1.341, allocations: 159.8 kB / 0.8226 GB, free: 110.9 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003495/1.341, allocations: 141.7 kB / 0.8228 GB, free: 110.7 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001663/1.341, allocations: 75.98 kB / 0.8228 GB, free: 110.7 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.003849/1.345, allocations: 3.172 MB / 0.8259 GB, free: 107.5 MB / 0.545 GB Notification: Performance of sort global known variables: time 3e-07/1.345, allocations: 8 kB / 0.8259 GB, free: 107.5 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.005895/1.351, allocations: 1.283 MB / 0.8272 GB, free: 106.2 MB / 0.545 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 (224): * Single equations (assignments): 219 * 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 {(1,10,100.0%), (1,10,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.009249/1.36, allocations: 8.328 MB / 0.8353 GB, free: 97.81 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.008543/1.369, allocations: 6.77 MB / 0.8419 GB, free: 91.05 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 6.742e-06/1.369, allocations: 0 / 0.8419 GB, free: 91.05 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.002592/1.371, allocations: 2.375 MB / 0.8442 GB, free: 88.65 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003425/1.375, allocations: 0.5976 MB / 0.8448 GB, free: 88.06 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.09372/1.468, allocations: 71.96 MB / 0.9151 GB, free: 6.582 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003959/1.472, allocations: 4.097 MB / 0.9191 GB, free: 2.457 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.005473/1.478, allocations: 2.373 MB / 0.9214 GB, free: 76 kB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.2887/1.767, allocations: 2.621 MB / 0.924 GB, free: 183.7 MB / 0.545 GB Notification: Performance of SimCode: time 1.704e-06/1.767, allocations: 1.875 kB / 0.924 GB, free: 183.7 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1433/1.91, allocations: 94.29 MB / 1.016 GB, free: 114.8 MB / 0.545 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001474/1.91, allocations: 221.8 kB / 1.016 GB, free: 114.6 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 5.023/6.933, allocations: 3.516 kB / 1.016 GB, free: 114.6 MB / 0.545 GB (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.LineForceWithMass.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.LineForceWithMass.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.LineForceWithMass.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.LineForceWithMass.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.LineForceWithMass_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_MultiBody_Forces_LineForceWithMass_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_MultiBody_Forces_LineForceWithMass.fmu > ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.LineForceWithMass.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.LineForceWithMass_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Forces/LineForceWithMass/LineForceWithMass.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.LineForceWithMass.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches