Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.JointSSP.conf.json 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/ModelicaServices 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 ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.JointSSP,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_MultiBody_Joints_JointSSP",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.JointSSP,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_MultiBody_Joints_JointSSP",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009904/0.0009905, allocations: 195.1 kB / 16.1 MB, free: 5.703 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.252/1.252, allocations: 226.5 MB / 243.4 MB, free: 8.188 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007488/0.0007488, allocations: 91.72 kB / 295.5 MB, free: 6.875 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3281/0.3281, allocations: 44.83 MB / 392.3 MB, free: 35.71 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002835/0.0002836, allocations: 8 kB / 465.4 MB, free: 12.56 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2784/0.2787, allocations: 62.97 MB / 0.516 GB, free: 37.02 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.JointSSP): time 0.01978/0.2986, allocations: 30.82 MB / 0.5461 GB, free: 15.01 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.0122/0.3108, allocations: 6.92 MB / 0.5528 GB, free: 10.28 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004866/0.3157, allocations: 138.4 kB / 0.5529 GB, free: 10.26 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003942/0.3197, allocations: 1.444 MB / 0.5544 GB, free: 9.738 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01075/0.3305, allocations: 4.029 MB / 0.5583 GB, free: 8.016 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002437/0.3329, allocations: 450.1 kB / 0.5587 GB, free: 7.82 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.002953/0.3359, allocations: 2.012 MB / 0.5607 GB, free: 7.086 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005809/0.3417, allocations: 4.532 MB / 0.5651 GB, free: 5.125 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001256/0.343, allocations: 0.626 MB / 0.5657 GB, free: 4.801 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001178/0.3442, allocations: 0.9989 MB / 0.5667 GB, free: 4.27 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002165/0.3444, allocations: 88.41 kB / 0.5668 GB, free: 4.27 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001232/0.3457, allocations: 0.674 MB / 0.5674 GB, free: 3.961 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0008082/0.3465, allocations: 0.9177 MB / 0.5683 GB, free: 3.461 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0008373/0.3473, allocations: 1.048 MB / 0.5694 GB, free: 2.551 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002805/0.3501, allocations: 3.526 MB / 0.5728 GB, free: 15.02 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.204e-06/0.3502, allocations: 0 / 0.5728 GB, free: 15.02 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.813e-06/0.3502, allocations: 3.938 kB / 0.5728 GB, free: 15.01 MB / 394.7 MB Notification: Performance of Transformations before backend: time 6.126e-05/0.3502, allocations: 0 / 0.5728 GB, free: 15.01 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 811 * Number of variables: 811 Notification: Performance of Generate backend data structure: time 0.004064/0.3543, allocations: 2.289 MB / 0.575 GB, free: 12.66 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.288e-05/0.3544, allocations: 12.03 kB / 0.5751 GB, free: 12.65 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005874/0.355, allocations: 426.8 kB / 0.5755 GB, free: 12.22 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001049/0.356, allocations: 357.1 kB / 0.5758 GB, free: 11.87 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001973/0.358, allocations: 1.227 MB / 0.577 GB, free: 10.59 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001297/0.3582, allocations: 172.4 kB / 0.5772 GB, free: 10.42 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003338/0.3585, allocations: 215.9 kB / 0.5774 GB, free: 10.21 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01059/0.3691, allocations: 5.616 MB / 0.5829 GB, free: 4.32 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.741e-05/0.3692, allocations: 15.81 kB / 0.5829 GB, free: 4.305 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002129/0.3694, allocations: 95.94 kB / 0.583 GB, free: 4.211 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001029/0.3705, allocations: 0.7812 MB / 0.5837 GB, free: 3.426 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009795/0.3803, allocations: 4.275 MB / 0.5879 GB, free: 15.15 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02226/0.4026, allocations: 17.15 MB / 0.6046 GB, free: 13.54 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004031/0.4067, allocations: 1.235 MB / 0.6059 GB, free: 12.3 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007053/0.4074, allocations: 394.3 kB / 0.6062 GB, free: 11.91 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001848/0.4093, allocations: 2.054 MB / 0.6082 GB, free: 9.523 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.995e-05/0.4093, allocations: 39.06 kB / 0.6083 GB, free: 9.473 MB / 426.7 MB Notification: Performance of pre-optimization done (n=65): time 3.887e-06/0.4093, allocations: 7.984 kB / 0.6083 GB, free: 9.465 MB / 426.7 MB Notification: Performance of matching and sorting (n=109): time 0.02192/0.4313, allocations: 5.533 MB / 0.6137 GB, free: 3.918 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.854e-05/0.4314, allocations: 68.34 kB / 0.6137 GB, free: 3.84 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002288/0.4337, allocations: 1.71 MB / 0.6154 GB, free: 2.121 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 8.31e-05/0.4338, allocations: 45.7 kB / 0.6155 GB, free: 2.07 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001034/0.4348, allocations: 1.509 MB / 0.6169 GB, free: 0.5391 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000381/0.4352, allocations: 402.6 kB / 0.6173 GB, free: 144 kB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.617e-05/0.4353, allocations: 52 kB / 0.6174 GB, free: 92 kB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0002196/0.4355, allocations: 419.5 kB / 0.6178 GB, free: 15.67 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001187/0.4367, allocations: 0.7587 MB / 0.6185 GB, free: 14.91 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002087/0.4388, allocations: 2.211 MB / 0.6207 GB, free: 11.99 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003481/0.4423, allocations: 3.256 MB / 0.6238 GB, free: 8.023 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.111e-05/0.4423, allocations: 16 kB / 0.6239 GB, free: 8.008 MB / 442.7 MB Notification: Performance of matching and sorting (n=340) (initialization): time 0.004605/0.447, allocations: 2.977 MB / 0.6268 GB, free: 5.023 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.106e-05/0.447, allocations: 28 kB / 0.6268 GB, free: 4.996 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.059e-05/0.4471, allocations: 52 kB / 0.6268 GB, free: 4.945 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 6.887e-05/0.4472, allocations: 68 kB / 0.6269 GB, free: 4.879 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001723/0.4489, allocations: 0.5966 MB / 0.6275 GB, free: 4.281 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.474e-05/0.449, allocations: 103.6 kB / 0.6276 GB, free: 4.18 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001336/0.4503, allocations: 112.1 kB / 0.6277 GB, free: 4.07 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002054/0.4505, allocations: 152 kB / 0.6278 GB, free: 3.922 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 230 * Number of states: 0 () * Number of discrete variables: 38 (prism.arrowLine.twoHeadedArrow,prism.headAtOrigin,rRod2.arrowLine.twoHeadedArrow,rRod2.headAtOrigin,jointSSP.prismatic.positiveBranch,prism.color[3],prism.color[2],prism.color[1],rRod2.color[3],rRod2.color[2],rRod2.color[1],jointSSP.rod1Color[3],jointSSP.rod1Color[2],jointSSP.rod1Color[1],jointSSP.rod1.massColor[3],jointSSP.rod1.massColor[2],jointSSP.rod1.massColor[1],jointSSP.sphereColor[3],jointSSP.sphereColor[2],jointSSP.sphereColor[1],jointSSP.boxColor[3],jointSSP.boxColor[2],jointSSP.boxColor[1],Fixed1.color[3],Fixed1.color[2],Fixed1.color[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],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (340): * Single equations (assignments): 340 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.00178/0.4523, allocations: 1.125 MB / 0.6289 GB, free: 2.785 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002862/0.4526, allocations: 166 kB / 0.6291 GB, free: 2.621 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002166/0.4548, allocations: 1.249 MB / 0.6303 GB, free: 1.359 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.419e-05/0.4548, allocations: 15.98 kB / 0.6303 GB, free: 1.344 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.153e-06/0.4548, allocations: 0 / 0.6303 GB, free: 1.344 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.061e-05/0.4549, allocations: 7.922 kB / 0.6303 GB, free: 1.336 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009457/0.4643, allocations: 6.226 MB / 0.6364 GB, free: 10.73 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.96e-05/0.4644, allocations: 20 kB / 0.6364 GB, free: 10.71 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006503/0.4651, allocations: 199.6 kB / 0.6366 GB, free: 10.51 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.145e-05/0.4651, allocations: 28 kB / 0.6367 GB, free: 10.48 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.257e-05/0.4652, allocations: 47.98 kB / 0.6367 GB, free: 10.44 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.185e-05/0.4652, allocations: 47.73 kB / 0.6368 GB, free: 10.39 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.879e-05/0.4652, allocations: 27.88 kB / 0.6368 GB, free: 10.36 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002025/0.4673, allocations: 1.652 MB / 0.6384 GB, free: 8.422 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004797/0.4678, allocations: 263 kB / 0.6386 GB, free: 8.145 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002684/0.4681, allocations: 51.92 kB / 0.6387 GB, free: 8.094 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007297/0.4688, allocations: 43.92 kB / 0.6387 GB, free: 8.051 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001764/0.469, allocations: 131.4 kB / 0.6389 GB, free: 7.922 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.491e-05/0.4691, allocations: 52 kB / 0.6389 GB, free: 7.871 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.001734/0.4708, allocations: 1.131 MB / 0.64 GB, free: 6.746 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.4708, allocations: 0 / 0.64 GB, free: 6.746 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.002374/0.4732, allocations: 472.6 kB / 0.6405 GB, free: 6.285 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 90 * Number of states: 0 () * 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 (109): * Single equations (assignments): 109 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.003093/0.4763, allocations: 2.317 MB / 0.6427 GB, free: 3.664 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.003331/0.4797, allocations: 1.753 MB / 0.6444 GB, free: 1.922 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 1.31e-05/0.4797, allocations: 0 / 0.6444 GB, free: 1.922 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000765/0.4805, allocations: 492.9 kB / 0.6449 GB, free: 1.445 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00564/0.4861, allocations: 277 kB / 0.6452 GB, free: 1.176 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02788/0.514, allocations: 14.86 MB / 0.6597 GB, free: 0.6992 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002658/0.5167, allocations: 2.077 MB / 0.6617 GB, free: 14.59 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001344/0.5181, allocations: 0.9679 MB / 0.6627 GB, free: 13.62 MB / 490.7 MB Notification: Performance of SimCode: time 1.192e-06/0.5181, allocations: 0 / 0.6627 GB, free: 13.62 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.836/5.354, allocations: 36.58 MB / 0.6984 GB, free: 126.6 MB / 490.7 MB (rm -f ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.JointSSP.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.JointSSP.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.JointSSP.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.JointSSP.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.JointSSP_res.mat --tempDir=temp_ModelicaTest_trunk_cpp_ModelicaTest_MultiBody_Joints_JointSSP_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_cpp_ModelicaTest_MultiBody_Joints_JointSSP.fmu > ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.JointSSP.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.JointSSP_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Joints/JointSSP/JointSSP.csv","../files/ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.JointSSP.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches