Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.JointUPS2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.JointUPS2,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Joints_JointUPS2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.JointUPS2,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Joints_JointUPS2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001519/0.001519, allocations: 107.1 kB / 17.32 MB, free: 6.008 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001581/0.001581, allocations: 189.4 kB / 18.25 MB, free: 5.098 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.386/1.386, allocations: 222.9 MB / 241.9 MB, free: 15.38 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2211/0.2211, allocations: 44.18 MB / 336.3 MB, free: 2.914 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001575/0.001575, allocations: 66.36 kB / 408 MB, free: 27.48 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1179/0.1195, allocations: 60.82 MB / 468.8 MB, free: 14.62 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.JointUPS2): time 0.04236/0.1619, allocations: 43.42 MB / 0.5002 GB, free: 3.02 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.2463/0.4083, allocations: 9.522 MB / 0.5095 GB, free: 10.28 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01104/0.4193, allocations: 190.9 kB / 0.5097 GB, free: 10.27 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006259/0.4256, allocations: 2.648 MB / 0.5123 GB, free: 10.23 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006822/0.4326, allocations: 1.896 MB / 0.5142 GB, free: 10.12 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004038/0.4366, allocations: 0.9512 MB / 0.5151 GB, free: 10.09 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.009611/0.4463, allocations: 5.501 MB / 0.5205 GB, free: 8.984 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006334/0.4527, allocations: 3.618 MB / 0.524 GB, free: 7.582 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004316/0.457, allocations: 1.787 MB / 0.5257 GB, free: 6.875 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004359/0.4614, allocations: 2.711 MB / 0.5284 GB, free: 5.445 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001928/0.4634, allocations: 367.4 kB / 0.5287 GB, free: 5.445 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003673/0.4671, allocations: 1.437 MB / 0.5301 GB, free: 4.93 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003305/0.4704, allocations: 2.223 MB / 0.5323 GB, free: 3.652 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005047/0.4755, allocations: 2.594 MB / 0.5348 GB, free: 1.691 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01115/0.4866, allocations: 8.049 MB / 0.5427 GB, free: 12.04 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.23e-06/0.4867, allocations: 0 / 0.5427 GB, free: 12.04 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.823e-06/0.4867, allocations: 0 / 0.5427 GB, free: 12.04 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0003688/0.4871, allocations: 0 / 0.5427 GB, free: 12.04 MB / 398.1 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.02007/0.5072, allocations: 5.899 MB / 0.5485 GB, free: 6.184 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.293e-05/0.5072, allocations: 19.91 kB / 0.5485 GB, free: 6.164 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002471/0.5097, allocations: 0.7978 MB / 0.5493 GB, free: 5.398 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.08541/0.5951, allocations: 7.21 MB / 0.5563 GB, free: 14.18 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009827/0.605, allocations: 3.751 MB / 0.56 GB, free: 10.42 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004576/0.6055, allocations: 257.2 kB / 0.5602 GB, free: 10.21 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00192/0.6075, allocations: 357.4 kB / 0.5605 GB, free: 9.902 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02707/0.6345, allocations: 12.28 MB / 0.5725 GB, free: 12.94 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002807/0.6349, allocations: 51.53 kB / 0.5726 GB, free: 12.89 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001439/0.6363, allocations: 166.1 kB / 0.5727 GB, free: 12.77 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004602/0.6409, allocations: 2.381 MB / 0.5751 GB, free: 10.4 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02673/0.6677, allocations: 10.7 MB / 0.5855 GB, free: 15.68 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07162/0.7394, allocations: 48.77 MB / 0.6331 GB, free: 13.74 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01612/0.7555, allocations: 5.861 MB / 0.6389 GB, free: 7.73 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004792/0.7603, allocations: 3.108 MB / 0.6419 GB, free: 4.613 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02331/0.7837, allocations: 13.02 MB / 0.6546 GB, free: 7.34 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.71e-05/0.7838, allocations: 59.81 kB / 0.6547 GB, free: 7.273 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=193): time 7.804e-06/0.7838, allocations: 4 kB / 0.6547 GB, free: 7.27 MB / 0.4981 GB Notification: Performance of matching and sorting (n=254): time 0.1251/0.9089, allocations: 38.69 MB / 0.6925 GB, free: 432 kB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001324/0.9091, allocations: 201.9 kB / 0.6927 GB, free: 188 kB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008223/0.9173, allocations: 4.395 MB / 0.6969 GB, free: 11.77 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 0.0007291/0.9181, allocations: 61.7 kB / 0.697 GB, free: 11.7 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.002739/0.9208, allocations: 3.428 MB / 0.7004 GB, free: 8.273 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.001494/0.9223, allocations: 0.9447 MB / 0.7013 GB, free: 7.336 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003201/0.9255, allocations: 1.367 MB / 0.7026 GB, free: 5.961 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 9.466e-05/0.9256, allocations: 305.1 kB / 0.7029 GB, free: 5.66 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004895/0.9306, allocations: 3.121 MB / 0.7059 GB, free: 2.535 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.2074/1.138, allocations: 7.036 MB / 0.7128 GB, free: 198.9 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01346/1.151, allocations: 10.97 MB / 0.7235 GB, free: 191.2 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002131/1.152, allocations: 39 kB / 0.7236 GB, free: 191.2 MB / 0.545 GB Notification: Performance of matching and sorting (n=886) (initialization): time 0.02759/1.179, allocations: 12.65 MB / 0.7359 GB, free: 187 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001503/1.179, allocations: 70.33 kB / 0.736 GB, free: 187 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002001/1.18, allocations: 139.8 kB / 0.7361 GB, free: 187 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.009187/1.189, allocations: 3.248 MB / 0.7393 GB, free: 186.4 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005457/1.194, allocations: 1.539 MB / 0.7408 GB, free: 186.3 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02207/1.216, allocations: 16.61 MB / 0.757 GB, free: 176.7 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00712/1.224, allocations: 436.1 kB / 0.7574 GB, free: 176.3 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001624/1.225, allocations: 400 kB / 0.7578 GB, free: 175.9 MB / 0.545 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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(8,47,54.7%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.006375/1.232, allocations: 2.35 MB / 0.7601 GB, free: 173.6 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001298/1.233, allocations: 405.6 kB / 0.7605 GB, free: 173.4 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02116/1.254, allocations: 7.519 MB / 0.7678 GB, free: 165.9 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.556e-05/1.254, allocations: 35.91 kB / 0.7679 GB, free: 165.8 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.478e-05/1.254, allocations: 8 kB / 0.7679 GB, free: 165.8 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.496e-05/1.254, allocations: 21.58 kB / 0.7679 GB, free: 165.8 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03364/1.288, allocations: 15.2 MB / 0.7827 GB, free: 150.7 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.419e-05/1.288, allocations: 4 kB / 0.7827 GB, free: 150.7 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002002/1.29, allocations: 379.4 kB / 0.7831 GB, free: 150.3 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.007744/1.298, allocations: 2.927 MB / 0.786 GB, free: 147.4 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004484/1.298, allocations: 40 kB / 0.786 GB, free: 147.3 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01716/1.316, allocations: 14.78 MB / 0.8004 GB, free: 132.5 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.396e-06/1.316, allocations: 2.625 kB / 0.8004 GB, free: 132.5 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01703/1.333, allocations: 11.48 MB / 0.8117 GB, free: 120.9 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001514/1.334, allocations: 443.7 kB / 0.8121 GB, free: 120.5 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008643/1.335, allocations: 43.94 kB / 0.8121 GB, free: 120.4 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002102/1.337, allocations: 187.7 kB / 0.8123 GB, free: 120.2 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006032/1.338, allocations: 154.8 kB / 0.8124 GB, free: 120.1 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001933/1.338, allocations: 67.91 kB / 0.8125 GB, free: 120 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.003598/1.342, allocations: 2.743 MB / 0.8152 GB, free: 117.3 MB / 0.545 GB Notification: Performance of sort global known variables: time 2.21e-07/1.342, allocations: 0 / 0.8152 GB, free: 117.3 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.006139/1.348, allocations: 1.315 MB / 0.8165 GB, free: 116 MB / 0.545 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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(6,40,61.1%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.01691/1.365, allocations: 12.14 MB / 0.8283 GB, free: 103.8 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.01538/1.38, allocations: 10.37 MB / 0.8385 GB, free: 93.43 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 9.097e-06/1.38, allocations: 4 kB / 0.8385 GB, free: 93.42 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.003883/1.384, allocations: 3.124 MB / 0.8415 GB, free: 90.3 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00297/1.387, allocations: 0.5099 MB / 0.842 GB, free: 89.81 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.09601/1.483, allocations: 70.37 MB / 0.9107 GB, free: 10.91 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003459/1.487, allocations: 3.666 MB / 0.9143 GB, free: 7.211 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.004935/1.491, allocations: 2.169 MB / 0.9164 GB, free: 5.035 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003629/1.495, allocations: 2.225 MB / 0.9186 GB, free: 2.809 MB / 0.545 GB Notification: Performance of SimCode: time 1.252e-06/1.495, allocations: 0 / 0.9186 GB, free: 2.809 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4127/1.908, allocations: 98.23 MB / 1.015 GB, free: 123 MB / 0.545 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000189/1.908, allocations: 237.2 kB / 1.015 GB, free: 122.7 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.41/6.318, allocations: 3.938 kB / 1.015 GB, free: 122.7 MB / 0.545 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.JointUPS2.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.JointUPS2.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.JointUPS2.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.JointUPS2.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.JointUPS2_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_MultiBody_Joints_JointUPS2_fmu --startTime=0 --stopTime=4 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_MultiBody_Joints_JointUPS2.fmu > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.JointUPS2.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_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","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.JointUPS2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches