Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.JointUPS2.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.JointUPS2,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_MultiBody_Joints_JointUPS2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.JointUPS2,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_MultiBody_Joints_JointUPS2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00129/0.00129, allocations: 193.7 kB / 16.09 MB, free: 5.707 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.241/1.241, allocations: 226.5 MB / 243.4 MB, free: 6.371 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008098/0.0008094, allocations: 100.8 kB / 295.5 MB, free: 6.68 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3103/0.3103, allocations: 44.82 MB / 392.3 MB, free: 35.64 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000276/0.000276, allocations: 8 kB / 465.4 MB, free: 12.59 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2935/0.2938, allocations: 62.96 MB / 0.516 GB, free: 37.33 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.JointUPS2): time 0.02478/0.3186, allocations: 39.32 MB / 0.5544 GB, free: 9.246 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.01738/0.336, allocations: 9.136 MB / 0.5633 GB, free: 3.02 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006814/0.3429, allocations: 188.8 kB / 0.5635 GB, free: 2.988 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.005905/0.3488, allocations: 2.015 MB / 0.5654 GB, free: 2.266 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01566/0.3645, allocations: 6.17 MB / 0.5715 GB, free: 15.2 MB / 394.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003424/0.368, allocations: 0.9088 MB / 0.5723 GB, free: 14.63 MB / 394.7 MB Notification: Performance of NFFlatten.flatten: time 0.03825/0.4062, allocations: 33.58 MB / 0.6051 GB, free: 13.98 MB / 426.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005585/0.4119, allocations: 4.344 MB / 0.6094 GB, free: 9.57 MB / 426.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002228/0.4141, allocations: 1.471 MB / 0.6108 GB, free: 8.094 MB / 426.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002754/0.4169, allocations: 2.348 MB / 0.6131 GB, free: 5.738 MB / 426.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0005669/0.4175, allocations: 172 kB / 0.6133 GB, free: 5.57 MB / 426.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002236/0.4197, allocations: 1.275 MB / 0.6145 GB, free: 4.293 MB / 426.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001688/0.4214, allocations: 1.964 MB / 0.6164 GB, free: 2.324 MB / 426.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002078/0.4235, allocations: 2.2 MB / 0.6186 GB, free: 108 kB / 426.7 MB Notification: Performance of NFConvertDAE.convert: time 0.005831/0.4293, allocations: 6.309 MB / 0.6247 GB, free: 9.781 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.819e-06/0.4294, allocations: 0 / 0.6247 GB, free: 9.781 MB / 442.7 MB Notification: Performance of FrontEnd: time 1.894e-06/0.4294, allocations: 0 / 0.6247 GB, free: 9.781 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0001733/0.4296, allocations: 4 kB / 0.6247 GB, free: 9.777 MB / 442.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1695 * Number of variables: 1695 Notification: Performance of Generate backend data structure: time 0.01056/0.4401, allocations: 4.927 MB / 0.6296 GB, free: 4.777 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.022e-05/0.4402, allocations: 8.031 kB / 0.6296 GB, free: 4.77 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00152/0.4417, allocations: 0.7985 MB / 0.6303 GB, free: 3.961 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.08043/0.5221, allocations: 7.41 MB / 0.6376 GB, free: 12.54 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006969/0.5291, allocations: 3.526 MB / 0.641 GB, free: 8.945 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001909/0.5294, allocations: 262.8 kB / 0.6413 GB, free: 8.688 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008342/0.5302, allocations: 351.6 kB / 0.6416 GB, free: 8.344 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02008/0.5503, allocations: 12.28 MB / 0.6536 GB, free: 11.25 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.00015/0.5505, allocations: 67.52 kB / 0.6537 GB, free: 11.18 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004622/0.551, allocations: 159.8 kB / 0.6538 GB, free: 11.03 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003716/0.5547, allocations: 2.377 MB / 0.6561 GB, free: 8.648 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02004/0.5747, allocations: 10.69 MB / 0.6666 GB, free: 13.94 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2689/0.8436, allocations: 48.77 MB / 0.7142 GB, free: 98.34 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01366/0.8573, allocations: 5.86 MB / 0.7199 GB, free: 96.34 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003873/0.8612, allocations: 3.108 MB / 0.723 GB, free: 95 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01973/0.881, allocations: 13.02 MB / 0.7357 GB, free: 88.26 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.985e-05/0.8811, allocations: 57.66 kB / 0.7357 GB, free: 88.21 MB / 490.7 MB Notification: Performance of pre-optimization done (n=193): time 6.172e-06/0.8811, allocations: 0 / 0.7357 GB, free: 88.21 MB / 490.7 MB Notification: Performance of matching and sorting (n=254): time 0.1096/0.9907, allocations: 38.87 MB / 0.7737 GB, free: 60.45 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.364e-05/0.9908, allocations: 205.9 kB / 0.7739 GB, free: 60.2 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006389/0.9972, allocations: 4.364 MB / 0.7781 GB, free: 55.81 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006879/0.998, allocations: 65.7 kB / 0.7782 GB, free: 55.74 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001918/0.9999, allocations: 3.434 MB / 0.7816 GB, free: 52.31 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001243/1.001, allocations: 0.9471 MB / 0.7825 GB, free: 51.37 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007817/1.002, allocations: 136 kB / 0.7826 GB, free: 51.23 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0004989/1.002, allocations: 0.5912 MB / 0.7832 GB, free: 50.64 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004346/1.007, allocations: 3.086 MB / 0.7862 GB, free: 47.55 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005712/1.013, allocations: 7.022 MB / 0.7931 GB, free: 38.59 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01064/1.023, allocations: 10.93 MB / 0.8037 GB, free: 25.73 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.00012/1.023, allocations: 40 kB / 0.8038 GB, free: 25.7 MB / 490.7 MB Notification: Performance of matching and sorting (n=886) (initialization): time 0.02374/1.047, allocations: 12.61 MB / 0.8161 GB, free: 13.07 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001679/1.047, allocations: 65.88 kB / 0.8162 GB, free: 13 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002034/1.048, allocations: 136 kB / 0.8163 GB, free: 12.87 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00841/1.056, allocations: 3.248 MB / 0.8195 GB, free: 9.617 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004974/1.061, allocations: 1.532 MB / 0.821 GB, free: 8.082 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02171/1.083, allocations: 15.51 MB / 0.8361 GB, free: 8.438 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005341/1.088, allocations: 435.4 kB / 0.8365 GB, free: 8.012 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001306/1.089, allocations: 408 kB / 0.8369 GB, free: 7.613 MB / 0.4948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 626 * Number of states: 0 () * Number of discrete variables: 36 (universal.cylinderColor[3],universal.cylinderColor[2],universal.cylinderColor[1],bodyBox.color[3],bodyBox.color[2],bodyBox.color[1],bodyBox.body.sphereColor[3],bodyBox.body.sphereColor[2],bodyBox.body.sphereColor[1],fixedTranslation.color[3],fixedTranslation.color[2],fixedTranslation.color[1],body.sphereColor[3],body.sphereColor[2],body.sphereColor[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],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]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (808): * Single equations (assignments): 804 * 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 {(8,54.7%) 47} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.005268/1.095, allocations: 2.342 MB / 0.8392 GB, free: 5.262 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001241/1.096, allocations: 406.8 kB / 0.8396 GB, free: 4.859 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01677/1.113, allocations: 7.511 MB / 0.8469 GB, free: 13.33 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.956e-05/1.113, allocations: 31.94 kB / 0.847 GB, free: 13.3 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.937e-05/1.113, allocations: 8 kB / 0.847 GB, free: 13.29 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.093e-05/1.113, allocations: 11.95 kB / 0.847 GB, free: 13.28 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03244/1.145, allocations: 15.19 MB / 0.8618 GB, free: 14.05 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.037e-05/1.146, allocations: 8.453 kB / 0.8618 GB, free: 14.05 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002045/1.148, allocations: 387.3 kB / 0.8622 GB, free: 13.67 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.008815/1.156, allocations: 2.927 MB / 0.865 GB, free: 10.74 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000563/1.157, allocations: 47.98 kB / 0.8651 GB, free: 10.69 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2422/1.399, allocations: 13.73 MB / 0.8785 GB, free: 163.9 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.777e-06/1.399, allocations: 8.188 kB / 0.8785 GB, free: 163.9 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.018/1.417, allocations: 11.45 MB / 0.8897 GB, free: 160.9 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001104/1.418, allocations: 451.8 kB / 0.8901 GB, free: 160.8 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006319/1.419, allocations: 38.72 kB / 0.8901 GB, free: 160.8 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001934/1.421, allocations: 192.6 kB / 0.8903 GB, free: 160.7 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007571/1.422, allocations: 160.1 kB / 0.8905 GB, free: 160.7 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001908/1.422, allocations: 65 kB / 0.8905 GB, free: 160.7 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.00484/1.427, allocations: 2.722 MB / 0.8932 GB, free: 159.8 MB / 0.5261 GB Notification: Performance of sort global known variables: time 6.52e-07/1.427, allocations: 3.969 kB / 0.8932 GB, free: 159.8 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.007367/1.434, allocations: 1.312 MB / 0.8945 GB, free: 159.6 MB / 0.5261 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 4 (universal.phi_a,universal.phi_b,universal.w_a,universal.w_b) * 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 (189): * Single equations (assignments): 185 * 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 {(6,61.1%) 40} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.02077/1.455, allocations: 12.12 MB / 0.9063 GB, free: 154.9 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.01307/1.468, allocations: 7.79 MB / 0.9139 GB, free: 152.1 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 9.107e-06/1.468, allocations: 6.188 kB / 0.9139 GB, free: 152.1 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.004381/1.473, allocations: 3.107 MB / 0.917 GB, free: 150.8 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003105/1.476, allocations: 0.4923 MB / 0.9175 GB, free: 150.6 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06758/1.543, allocations: 46.36 MB / 0.9627 GB, free: 106.6 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005189/1.549, allocations: 3.674 MB / 0.9663 GB, free: 102.9 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003191/1.552, allocations: 2.268 MB / 0.9685 GB, free: 100.6 MB / 0.5261 GB Notification: Performance of SimCode: time 1.202e-06/1.552, allocations: 0 / 0.9685 GB, free: 100.6 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 8.196/9.748, allocations: 108 MB / 1.074 GB, free: 156.8 MB / 0.5417 GB (rm -f ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.JointUPS2.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.JointUPS2.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.JointUPS2.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.JointUPS2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.JointUPS2_res.mat --tempDir=temp_ModelicaTest_trunk_cpp_ModelicaTest_MultiBody_Joints_JointUPS2_fmu --startTime=0 --stopTime=4 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_cpp_ModelicaTest_MultiBody_Joints_JointUPS2.fmu > ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.JointUPS2.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.JointUPS2_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Joints/JointUPS2/JointUPS2.csv","../files/ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.JointUPS2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches