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.001151/0.001151, allocations: 118.8 kB / 17.79 MB, free: 5.281 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001227/0.001227, allocations: 202 kB / 18.73 MB, free: 4.34 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.315/1.315, allocations: 227.4 MB / 246.9 MB, free: 10.48 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2062/0.2062, allocations: 46.1 MB / 344.3 MB, free: 11.48 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001355/0.001356, allocations: 75.88 kB / 480.8 MB, free: 4.539 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3056/0.307, allocations: 62.44 MB / 0.5305 GB, free: 13.39 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.LineForceWithMass): time 0.01521/0.3222, allocations: 14.96 MB / 0.5451 GB, free: 1.621 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.01153/0.3338, allocations: 5.014 MB / 0.55 GB, free: 13.67 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002889/0.3367, allocations: 101.8 kB / 0.5501 GB, free: 13.64 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006909/0.3437, allocations: 4.01 MB / 0.554 GB, free: 9.613 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005738/0.3494, allocations: 2.315 MB / 0.5563 GB, free: 7.289 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00262/0.3521, allocations: 1.166 MB / 0.5574 GB, free: 6.121 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.008496/0.3606, allocations: 6.575 MB / 0.5639 GB, free: 15.53 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005564/0.3662, allocations: 4.69 MB / 0.5684 GB, free: 10.77 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003432/0.3697, allocations: 2.2 MB / 0.5706 GB, free: 8.566 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004229/0.3739, allocations: 3.014 MB / 0.5735 GB, free: 5.543 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001559/0.3755, allocations: 460 kB / 0.574 GB, free: 5.094 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003601/0.3791, allocations: 1.537 MB / 0.5755 GB, free: 3.555 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00355/0.3827, allocations: 2.724 MB / 0.5781 GB, free: 0.8242 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006153/0.3889, allocations: 3.135 MB / 0.5812 GB, free: 13.67 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01356/0.4025, allocations: 9.733 MB / 0.5907 GB, free: 3.906 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.611e-06/0.4025, allocations: 0 / 0.5907 GB, free: 3.906 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.934e-06/0.4025, allocations: 0 / 0.5907 GB, free: 3.906 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0002801/0.4028, allocations: 0 / 0.5907 GB, free: 3.906 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: 1941 * Number of variables: 1941 Notification: Performance of Generate backend data structure: time 0.0174/0.4202, allocations: 6.991 MB / 0.5975 GB, free: 12.83 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.04e-05/0.4203, allocations: 8.031 kB / 0.5975 GB, free: 12.82 MB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001903/0.4222, allocations: 0.9219 MB / 0.5984 GB, free: 11.89 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1518/0.574, allocations: 12.49 MB / 0.6106 GB, free: 15.37 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01092/0.5849, allocations: 4.566 MB / 0.6151 GB, free: 10.75 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003096/0.5853, allocations: 312.1 kB / 0.6154 GB, free: 10.44 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001548/0.5869, allocations: 423.6 kB / 0.6158 GB, free: 10.02 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02668/0.6136, allocations: 13.7 MB / 0.6292 GB, free: 11.46 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002502/0.6139, allocations: 55.53 kB / 0.6292 GB, free: 11.4 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001527/0.6154, allocations: 195.8 kB / 0.6294 GB, free: 11.21 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004321/0.6197, allocations: 2.531 MB / 0.6319 GB, free: 8.676 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0237/0.6435, allocations: 11.56 MB / 0.6432 GB, free: 13.11 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06727/0.7108, allocations: 52.84 MB / 0.6948 GB, free: 6.75 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01648/0.7273, allocations: 5.793 MB / 0.7004 GB, free: 0.8125 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004836/0.7322, allocations: 3.392 MB / 0.7037 GB, free: 13.41 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.2389/0.9711, allocations: 14.86 MB / 0.7182 GB, free: 163.5 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.577e-05/0.9712, allocations: 63.62 kB / 0.7183 GB, free: 163.5 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=227): time 5.029e-06/0.9712, allocations: 1.312 kB / 0.7183 GB, free: 163.5 MB / 0.5606 GB Notification: Performance of matching and sorting (n=264): time 0.07303/1.044, allocations: 26.22 MB / 0.7439 GB, free: 153.6 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.211e-05/1.044, allocations: 257.3 kB / 0.7442 GB, free: 153.3 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005137/1.049, allocations: 5.075 MB / 0.7491 GB, free: 148.2 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 0.0003636/1.05, allocations: 65.7 kB / 0.7492 GB, free: 148.1 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.001462/1.051, allocations: 3.946 MB / 0.753 GB, free: 144.2 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.0007332/1.052, allocations: 0.984 MB / 0.754 GB, free: 143.2 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001449/1.054, allocations: 1.468 MB / 0.7554 GB, free: 141.7 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 3.44e-05/1.054, allocations: 305 kB / 0.7557 GB, free: 141.4 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002961/1.057, allocations: 2.732 MB / 0.7584 GB, free: 138.7 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004285/1.061, allocations: 7.082 MB / 0.7653 GB, free: 129.5 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.008168/1.069, allocations: 10.66 MB / 0.7757 GB, free: 116.7 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.892e-05/1.069, allocations: 44 kB / 0.7758 GB, free: 116.7 MB / 0.5606 GB Notification: Performance of matching and sorting (n=963) (initialization): time 0.01395/1.083, allocations: 10.11 MB / 0.7856 GB, free: 106.6 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 7.543e-05/1.083, allocations: 72 kB / 0.7857 GB, free: 106.5 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001062/1.083, allocations: 152 kB / 0.7858 GB, free: 106.3 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001412/1.085, allocations: 0.7102 MB / 0.7865 GB, free: 105.6 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005225/1.09, allocations: 1.774 MB / 0.7883 GB, free: 103.9 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005727/1.096, allocations: 6.832 MB / 0.7949 GB, free: 96.76 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005391/1.101, allocations: 411.3 kB / 0.7953 GB, free: 96.36 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009468/1.102, allocations: 447.9 kB / 0.7958 GB, free: 95.93 MB / 0.5606 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.003387/1.106, allocations: 2.636 MB / 0.7983 GB, free: 93.29 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008109/1.106, allocations: 470 kB / 0.7988 GB, free: 92.82 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005468/1.112, allocations: 4.381 MB / 0.8031 GB, free: 88.42 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.123e-05/1.112, allocations: 28 kB / 0.8031 GB, free: 88.39 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.136e-05/1.112, allocations: 8 kB / 0.8031 GB, free: 88.39 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.156e-05/1.112, allocations: 11.95 kB / 0.8031 GB, free: 88.38 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01634/1.128, allocations: 10.75 MB / 0.8136 GB, free: 77.63 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.688e-05/1.128, allocations: 7.938 kB / 0.8136 GB, free: 77.62 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002425/1.131, allocations: 0.4937 MB / 0.8141 GB, free: 77.13 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001305/1.132, allocations: 485.2 kB / 0.8146 GB, free: 76.65 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002423/1.132, allocations: 44 kB / 0.8146 GB, free: 76.61 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005224/1.138, allocations: 6.209 MB / 0.8207 GB, free: 70.12 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.703e-06/1.138, allocations: 0 / 0.8207 GB, free: 70.12 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008209/1.146, allocations: 7.633 MB / 0.8281 GB, free: 62.41 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009674/1.147, allocations: 0.4911 MB / 0.8286 GB, free: 61.9 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005714/1.147, allocations: 44 kB / 0.8286 GB, free: 61.86 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001861/1.149, allocations: 163.4 kB / 0.8288 GB, free: 61.7 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003029/1.15, allocations: 142.6 kB / 0.8289 GB, free: 61.56 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001577/1.15, allocations: 71.98 kB / 0.829 GB, free: 61.49 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.003668/1.153, allocations: 3.176 MB / 0.8321 GB, free: 58.33 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.4e-07/1.153, allocations: 11.94 kB / 0.8321 GB, free: 58.32 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.005302/1.159, allocations: 1.276 MB / 0.8334 GB, free: 57.04 MB / 0.5606 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.008674/1.167, allocations: 8.33 MB / 0.8415 GB, free: 48.64 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.008701/1.176, allocations: 6.791 MB / 0.8481 GB, free: 41.85 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 7.834e-06/1.176, allocations: 4 kB / 0.8481 GB, free: 41.85 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.002561/1.179, allocations: 2.384 MB / 0.8505 GB, free: 39.45 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003598/1.182, allocations: 0.624 MB / 0.8511 GB, free: 38.83 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07435/1.257, allocations: 58.92 MB / 0.9086 GB, free: 4.961 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004941/1.262, allocations: 4.097 MB / 0.9126 GB, free: 0.8359 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.005619/1.267, allocations: 2.377 MB / 0.9149 GB, free: 14.45 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003928/1.271, allocations: 2.62 MB / 0.9175 GB, free: 11.82 MB / 0.6075 GB Notification: Performance of SimCode: time 1.303e-06/1.271, allocations: 0 / 0.9175 GB, free: 11.82 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3625/1.634, allocations: 93.03 MB / 1.008 GB, free: 193.9 MB / 0.6387 GB Notification: Performance of buildModelFMU: Generate platform static: time 32.97/34.6, allocations: 12.77 kB / 1.008 GB, free: 193.9 MB / 0.6387 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