Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Mechanics_MultiBody_Examples_Elementary_ForceAndTorque",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Mechanics_MultiBody_Examples_Elementary_ForceAndTorque",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0008368/0.0008368, allocations: 175.3 kB / 16.72 MB, free: 5.078 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.147/1.147, allocations: 205.4 MB / 222.9 MB, free: 9.012 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0006768/0.0006768, allocations: 96.22 kB / 271.2 MB, free: 8.242 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002653/0.0002653, allocations: 8 kB / 327.6 MB, free: 15.79 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1719/0.1721, allocations: 47.58 MB / 375.2 MB, free: 45.45 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque): time 0.03104/0.2032, allocations: 52.56 MB / 427.7 MB, free: 12 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.01917/0.2224, allocations: 11.18 MB / 438.9 MB, free: 0.7852 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006749/0.2292, allocations: 243.4 kB / 439.2 MB, free: 0.5469 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.005836/0.2351, allocations: 2.725 MB / 441.9 MB, free: 13.81 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01594/0.251, allocations: 8.152 MB / 450 MB, free: 5.625 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00234/0.2534, allocations: 0.6631 MB / 450.7 MB, free: 4.961 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.02127/0.2747, allocations: 19.48 MB / 470.2 MB, free: 1.457 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006691/0.2814, allocations: 5.631 MB / 475.8 MB, free: 11.73 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00205/0.2834, allocations: 1.405 MB / 477.2 MB, free: 10.32 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002548/0.286, allocations: 2.15 MB / 479.4 MB, free: 8.168 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0005913/0.2866, allocations: 168 kB / 479.5 MB, free: 8.004 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001952/0.2886, allocations: 1.115 MB / 480.6 MB, free: 6.887 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001741/0.2903, allocations: 1.932 MB / 482.6 MB, free: 4.949 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002168/0.2925, allocations: 2.172 MB / 484.8 MB, free: 2.758 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004978/0.2975, allocations: 6.398 MB / 491.2 MB, free: 12.34 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.729e-06/0.2975, allocations: 3.984 kB / 491.2 MB, free: 12.34 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.453e-06/0.2975, allocations: 0 / 491.2 MB, free: 12.34 MB / 378.7 MB Notification: Performance of Transformations before backend: time 7.664e-05/0.2976, allocations: 0 / 491.2 MB, free: 12.34 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1737 * Number of variables: 1737 Notification: Performance of Generate backend data structure: time 0.007195/0.3048, allocations: 4.608 MB / 495.8 MB, free: 7.664 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.843e-05/0.3048, allocations: 12.03 kB / 495.8 MB, free: 7.652 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0009819/0.3058, allocations: 0.8151 MB / 496.6 MB, free: 6.828 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02058/0.3264, allocations: 4.043 MB / 0.4889 GB, free: 2.773 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.1363/0.4627, allocations: 3.331 MB / 0.4922 GB, free: 111.2 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002003/0.463, allocations: 265.8 kB / 0.4924 GB, free: 111.2 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001019/0.464, allocations: 351.7 kB / 0.4927 GB, free: 111.2 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01654/0.4805, allocations: 11.57 MB / 0.504 GB, free: 105.3 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.43e-05/0.4807, allocations: 48.19 kB / 0.5041 GB, free: 105.3 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003696/0.4811, allocations: 173.1 kB / 0.5042 GB, free: 105.2 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003112/0.4842, allocations: 2.332 MB / 0.5065 GB, free: 104 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0144/0.4986, allocations: 9.815 MB / 0.5161 GB, free: 94.16 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03833/0.5369, allocations: 44.33 MB / 0.5594 GB, free: 49.23 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01042/0.5474, allocations: 5.282 MB / 0.5646 GB, free: 43.8 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00255/0.55, allocations: 2.744 MB / 0.5672 GB, free: 41.05 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00888/0.5589, allocations: 7.986 MB / 0.575 GB, free: 32.87 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.527e-05/0.5589, allocations: 51.88 kB / 0.5751 GB, free: 32.81 MB / 378.7 MB Notification: Performance of pre-optimization done (n=216): time 3.697e-06/0.5589, allocations: 4 kB / 0.5751 GB, free: 32.8 MB / 378.7 MB Notification: Performance of matching and sorting (n=237): time 0.039/0.5979, allocations: 19.95 MB / 0.5946 GB, free: 12.69 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.635e-05/0.598, allocations: 180.2 kB / 0.5947 GB, free: 12.48 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004285/0.6023, allocations: 4.748 MB / 0.5994 GB, free: 7.723 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001811/0.6025, allocations: 61.69 kB / 0.5994 GB, free: 7.656 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001268/0.6038, allocations: 3.421 MB / 0.6028 GB, free: 4.188 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004947/0.6043, allocations: 0.8868 MB / 0.6036 GB, free: 3.289 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002464/0.6045, allocations: 128 kB / 0.6038 GB, free: 3.164 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0002196/0.6048, allocations: 0.5988 MB / 0.6044 GB, free: 2.559 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002793/0.6076, allocations: 2.566 MB / 0.6069 GB, free: 15.99 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005284/0.6128, allocations: 6.472 MB / 0.6132 GB, free: 7.586 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009381/0.6222, allocations: 9.85 MB / 0.6228 GB, free: 11.81 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.161e-05/0.6223, allocations: 44 kB / 0.6228 GB, free: 11.77 MB / 410.7 MB Notification: Performance of matching and sorting (n=874) (initialization): time 0.01319/0.6355, allocations: 9.637 MB / 0.6323 GB, free: 2.121 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.673e-05/0.6356, allocations: 64 kB / 0.6323 GB, free: 2.059 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001016/0.6357, allocations: 136 kB / 0.6324 GB, free: 1.926 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002079/0.6378, allocations: 0.9464 MB / 0.6334 GB, free: 0.9766 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004241/0.642, allocations: 1.579 MB / 0.6349 GB, free: 15.39 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00699/0.649, allocations: 6.115 MB / 0.6409 GB, free: 9.148 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003536/0.6526, allocations: 379.5 kB / 0.6412 GB, free: 8.777 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004415/0.653, allocations: 400 kB / 0.6416 GB, free: 8.387 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 624 * Number of states: 0 () * Number of discrete variables: 42 (fixed2.color[3],fixed2.color[2],fixed2.color[1],revolute1.cylinderColor[3],revolute1.cylinderColor[2],revolute1.cylinderColor[1],revolute2.cylinderColor[3],revolute2.cylinderColor[2],revolute2.cylinderColor[1],forceAndTorque.connectionLineColor[3],forceAndTorque.connectionLineColor[2],forceAndTorque.connectionLineColor[1],forceAndTorque.torqueColor[3],forceAndTorque.torqueColor[2],forceAndTorque.torqueColor[1],forceAndTorque.forceColor[3],forceAndTorque.forceColor[2],forceAndTorque.forceColor[1],fixedRotation.color[3],fixedRotation.color[2],fixedRotation.color[1],fixed1.color[3],fixed1.color[2],fixed1.color[1],body.color[3],body.color[2],body.color[1],body.body.sphereColor[3],body.body.sphereColor[2],body.body.sphereColor[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],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (816): * Single equations (assignments): 810 * Array equations: 5 * 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%) 23} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002932/0.656, allocations: 2.373 MB / 0.6439 GB, free: 6 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005003/0.6565, allocations: 418.5 kB / 0.6443 GB, free: 5.586 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006803/0.6633, allocations: 4.394 MB / 0.6486 GB, free: 1.176 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.666e-05/0.6633, allocations: 28 kB / 0.6487 GB, free: 1.148 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.126e-06/0.6633, allocations: 4 kB / 0.6487 GB, free: 1.145 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.067e-05/0.6634, allocations: 15.95 kB / 0.6487 GB, free: 1.129 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1543/0.8177, allocations: 10.53 MB / 0.659 GB, free: 138.4 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.738e-05/0.8177, allocations: 5.688 kB / 0.659 GB, free: 138.4 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001866/0.8196, allocations: 420.7 kB / 0.6594 GB, free: 138.4 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001853/0.8215, allocations: 0.7686 MB / 0.6601 GB, free: 138.2 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000163/0.8216, allocations: 49.72 kB / 0.6602 GB, free: 138.2 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005903/0.8275, allocations: 5.624 MB / 0.6657 GB, free: 135.3 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.45e-06/0.8276, allocations: 11.78 kB / 0.6657 GB, free: 135.3 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00858/0.8362, allocations: 7.675 MB / 0.6732 GB, free: 132.2 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001297/0.8375, allocations: 0.8276 MB / 0.674 GB, free: 132 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003986/0.8379, allocations: 43.52 kB / 0.674 GB, free: 132 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001561/0.8394, allocations: 149.6 kB / 0.6742 GB, free: 131.9 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004507/0.8399, allocations: 140.4 kB / 0.6743 GB, free: 131.9 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001517/0.8401, allocations: 66.03 kB / 0.6744 GB, free: 131.9 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.003146/0.8432, allocations: 3.041 MB / 0.6773 GB, free: 130.8 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.8432, allocations: 0 / 0.6773 GB, free: 130.8 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.003596/0.8468, allocations: 1.153 MB / 0.6784 GB, free: 129.9 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 25 * Number of states: 4 (revolute2.phi,revolute2.w,revolute1.phi,revolute1.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 (198): * Single equations (assignments): 194 * 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 {(4,75.0%) 18} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.008374/0.8552, allocations: 8.362 MB / 0.6866 GB, free: 121.7 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.006562/0.8618, allocations: 6.242 MB / 0.6927 GB, free: 115.5 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 5.019e-06/0.8618, allocations: 7.562 kB / 0.6927 GB, free: 115.5 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002696/0.8645, allocations: 2.314 MB / 0.695 GB, free: 113.2 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005319/0.8698, allocations: 0.499 MB / 0.6955 GB, free: 112.7 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05368/0.9235, allocations: 43.48 MB / 0.7379 GB, free: 65.08 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003421/0.927, allocations: 3.673 MB / 0.7415 GB, free: 61.38 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002533/0.9295, allocations: 2.276 MB / 0.7437 GB, free: 59.1 MB / 426.7 MB Notification: Performance of SimCode: time 5.72e-07/0.9295, allocations: 0 / 0.7437 GB, free: 59.1 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 7.47/8.399, allocations: 106.3 MB / 0.8475 GB, free: 129.1 MB / 442.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Mechanics_MultiBody_Examples_Elementary_ForceAndTorque_fmu --startTime=0 --stopTime=1.01 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Mechanics_MultiBody_Examples_Elementary_ForceAndTorque.fmu > Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/MultiBody/Examples/Elementary/ForceAndTorque/ForceAndTorque.csv","../files/Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches