Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.JointSSR.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.JointSSR,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_MultiBody_Joints_JointSSR",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.JointSSR,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_MultiBody_Joints_JointSSR",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009632/0.0009632, allocations: 198.4 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.275/1.275, allocations: 226.5 MB / 243.4 MB, free: 6.461 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007401/0.00074, allocations: 91.58 kB / 295.5 MB, free: 6.668 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2925/0.2925, allocations: 44.82 MB / 392.3 MB, free: 35.7 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000263/0.0002635, allocations: 8 kB / 465.4 MB, free: 12.56 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2806/0.2809, allocations: 62.96 MB / 0.516 GB, free: 37.17 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.JointSSR): time 0.01972/0.3006, allocations: 30.82 MB / 0.5461 GB, free: 15.17 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.01175/0.3124, allocations: 7.117 MB / 0.553 GB, free: 10.3 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00461/0.3171, allocations: 138 kB / 0.5531 GB, free: 10.28 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003246/0.3204, allocations: 1.441 MB / 0.5545 GB, free: 9.758 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.009815/0.3302, allocations: 4.028 MB / 0.5585 GB, free: 8.031 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002425/0.3326, allocations: 0.6196 MB / 0.5591 GB, free: 7.773 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.002802/0.3355, allocations: 2.08 MB / 0.5611 GB, free: 7.008 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006504/0.342, allocations: 4.539 MB / 0.5655 GB, free: 4.965 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001079/0.3431, allocations: 0.657 MB / 0.5662 GB, free: 4.625 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00122/0.3443, allocations: 1.02 MB / 0.5672 GB, free: 4.082 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002158/0.3445, allocations: 95.94 kB / 0.5673 GB, free: 4.078 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001495/0.346, allocations: 0.8945 MB / 0.5681 GB, free: 3.664 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0006054/0.3467, allocations: 0.9206 MB / 0.569 GB, free: 2.891 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0006461/0.3473, allocations: 1.066 MB / 0.5701 GB, free: 1.812 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002622/0.3499, allocations: 3.694 MB / 0.5737 GB, free: 14.11 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.308e-06/0.35, allocations: 0 / 0.5737 GB, free: 14.11 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.353e-06/0.35, allocations: 0 / 0.5737 GB, free: 14.11 MB / 394.7 MB Notification: Performance of Transformations before backend: time 4.213e-05/0.35, allocations: 0 / 0.5737 GB, free: 14.11 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: 822 * Number of variables: 822 Notification: Performance of Generate backend data structure: time 0.004424/0.3545, allocations: 2.43 MB / 0.5761 GB, free: 11.62 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.99e-05/0.3545, allocations: 8.031 kB / 0.5761 GB, free: 11.61 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005048/0.355, allocations: 427.1 kB / 0.5765 GB, free: 11.18 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001055/0.3561, allocations: 361.1 kB / 0.5768 GB, free: 10.82 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001927/0.358, allocations: 1.297 MB / 0.5781 GB, free: 9.48 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001006/0.3581, allocations: 168.2 kB / 0.5783 GB, free: 9.312 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003135/0.3584, allocations: 211.9 kB / 0.5785 GB, free: 9.105 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01142/0.3699, allocations: 6.5 MB / 0.5848 GB, free: 2.324 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.878e-05/0.37, allocations: 11.88 kB / 0.5848 GB, free: 2.312 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002001/0.3702, allocations: 99.94 kB / 0.5849 GB, free: 2.215 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0009633/0.3711, allocations: 0.8046 MB / 0.5857 GB, free: 1.402 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0112/0.3823, allocations: 5.473 MB / 0.591 GB, free: 11.91 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02208/0.4044, allocations: 19.08 MB / 0.6097 GB, free: 8.336 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00662/0.4111, allocations: 1.824 MB / 0.6115 GB, free: 6.504 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009448/0.4121, allocations: 0.6938 MB / 0.6121 GB, free: 5.809 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005566/0.4177, allocations: 4.71 MB / 0.6167 GB, free: 0.6953 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.154e-05/0.4177, allocations: 47.11 kB / 0.6168 GB, free: 0.6406 MB / 426.7 MB Notification: Performance of pre-optimization done (n=70): time 2.665e-06/0.4177, allocations: 0 / 0.6168 GB, free: 0.6406 MB / 426.7 MB Notification: Performance of matching and sorting (n=110): time 0.03786/0.4556, allocations: 8.918 MB / 0.6255 GB, free: 7.715 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.469e-05/0.4557, allocations: 68.34 kB / 0.6256 GB, free: 7.633 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002364/0.458, allocations: 1.823 MB / 0.6273 GB, free: 5.805 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 9.918e-05/0.4582, allocations: 45.7 kB / 0.6274 GB, free: 5.754 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009024/0.4591, allocations: 1.524 MB / 0.6289 GB, free: 4.207 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003354/0.4594, allocations: 414.5 kB / 0.6293 GB, free: 3.797 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000127/0.4595, allocations: 52 kB / 0.6293 GB, free: 3.746 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001799/0.4597, allocations: 419.6 kB / 0.6297 GB, free: 3.332 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001464/0.4612, allocations: 1.009 MB / 0.6307 GB, free: 2.32 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002265/0.4635, allocations: 2.51 MB / 0.6332 GB, free: 15.07 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004006/0.4675, allocations: 3.799 MB / 0.6369 GB, free: 10.53 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.152e-05/0.4676, allocations: 16 kB / 0.6369 GB, free: 10.52 MB / 458.7 MB Notification: Performance of matching and sorting (n=352) (initialization): time 0.005077/0.4726, allocations: 3.512 MB / 0.6403 GB, free: 6.996 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.893e-05/0.4727, allocations: 28 kB / 0.6403 GB, free: 6.969 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.34e-05/0.4728, allocations: 52 kB / 0.6404 GB, free: 6.918 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.122e-05/0.4728, allocations: 72 kB / 0.6405 GB, free: 6.848 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002061/0.4749, allocations: 0.6629 MB / 0.6411 GB, free: 6.184 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.247e-05/0.475, allocations: 111.5 kB / 0.6412 GB, free: 6.074 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001521/0.4765, allocations: 156 kB / 0.6414 GB, free: 5.922 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002252/0.4768, allocations: 156 kB / 0.6415 GB, free: 5.77 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 240 * Number of states: 0 () * Number of discrete variables: 38 (prism.arrowLine.twoHeadedArrow,prism.headAtOrigin,rRod2.arrowLine.twoHeadedArrow,rRod2.headAtOrigin,jointSSR.revolute.positiveBranch,prism.color[3],prism.color[2],prism.color[1],rRod2.color[3],rRod2.color[2],rRod2.color[1],jointSSR.rod1Color[3],jointSSR.rod1Color[2],jointSSR.rod1Color[1],jointSSR.rod1.massColor[3],jointSSR.rod1.massColor[2],jointSSR.rod1.massColor[1],jointSSR.sphereColor[3],jointSSR.sphereColor[2],jointSSR.sphereColor[1],jointSSR.revoluteColor[3],jointSSR.revoluteColor[2],jointSSR.revoluteColor[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 (352): * Single equations (assignments): 352 * 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.001497/0.4783, allocations: 1.134 MB / 0.6426 GB, free: 4.625 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002505/0.4785, allocations: 169.8 kB / 0.6428 GB, free: 4.457 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002691/0.4812, allocations: 1.749 MB / 0.6445 GB, free: 2.688 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.288e-05/0.4812, allocations: 15.98 kB / 0.6445 GB, free: 2.672 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.352e-06/0.4812, allocations: 3.938 kB / 0.6445 GB, free: 2.668 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.458e-06/0.4813, allocations: 7.922 kB / 0.6445 GB, free: 2.66 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008164/0.4894, allocations: 5.586 MB / 0.65 GB, free: 12.81 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.509e-05/0.4895, allocations: 12 kB / 0.65 GB, free: 12.8 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007983/0.4903, allocations: 203.6 kB / 0.6502 GB, free: 12.6 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.673e-05/0.4903, allocations: 16 kB / 0.6502 GB, free: 12.58 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.852e-05/0.4904, allocations: 36 kB / 0.6502 GB, free: 12.55 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.714e-05/0.4904, allocations: 27.86 kB / 0.6502 GB, free: 12.52 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.085e-05/0.4904, allocations: 15.94 kB / 0.6503 GB, free: 12.5 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001845/0.4923, allocations: 1.674 MB / 0.6519 GB, free: 10.65 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003606/0.4926, allocations: 258.8 kB / 0.6521 GB, free: 10.38 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002064/0.4929, allocations: 32 kB / 0.6522 GB, free: 10.35 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006627/0.4935, allocations: 47.91 kB / 0.6522 GB, free: 10.3 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001718/0.4937, allocations: 104.2 kB / 0.6523 GB, free: 10.2 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.15e-05/0.4938, allocations: 40 kB / 0.6524 GB, free: 10.16 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.001461/0.4952, allocations: 1.195 MB / 0.6535 GB, free: 8.973 MB / 474.7 MB Notification: Performance of sort global known variables: time 1.21e-07/0.4953, allocations: 0 / 0.6535 GB, free: 8.973 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.001874/0.4971, allocations: 0.4922 MB / 0.654 GB, free: 8.48 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 51 * 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 (111): * Single equations (assignments): 111 * 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.002278/0.4994, allocations: 2.322 MB / 0.6563 GB, free: 5.984 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.003045/0.5025, allocations: 2.183 MB / 0.6584 GB, free: 3.812 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 4.498e-06/0.5025, allocations: 1.875 kB / 0.6584 GB, free: 3.812 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007506/0.5033, allocations: 0.5934 MB / 0.659 GB, free: 3.223 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003464/0.5067, allocations: 261.5 kB / 0.6592 GB, free: 2.969 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02493/0.5317, allocations: 15.87 MB / 0.6747 GB, free: 1.504 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.1847/0.7164, allocations: 2.066 MB / 0.6767 GB, free: 133.1 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001567/0.718, allocations: 0.9889 MB / 0.6777 GB, free: 133.1 MB / 490.7 MB Notification: Performance of SimCode: time 8.51e-07/0.718, allocations: 0 / 0.6777 GB, free: 133.1 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.714/5.433, allocations: 38.2 MB / 0.715 GB, free: 120.4 MB / 490.7 MB (rm -f ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.JointSSR.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.JointSSR.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.JointSSR.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.JointSSR.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.JointSSR_res.mat --tempDir=temp_ModelicaTest_trunk_cpp_ModelicaTest_MultiBody_Joints_JointSSR_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_cpp_ModelicaTest_MultiBody_Joints_JointSSR.fmu > ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.JointSSR.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.JointSSR_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Joints/JointSSR/JointSSR.csv","../files/ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.JointSSR.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches