Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Revolute.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.Revolute,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Joints_Revolute",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.Revolute,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Joints_Revolute",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.001625/0.001625, allocations: 117.2 kB / 17.78 MB, free: 5.262 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.001914/0.001914, allocations: 184.2 kB / 18.71 MB, free: 4.34 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.331/1.331, allocations: 222.9 MB / 242.4 MB, free: 15.05 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.2215/0.2215, allocations: 44.18 MB / 336.8 MB, free: 2.652 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001333/0.001333, allocations: 63.91 kB / 470.1 MB, free: 13.65 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3798/0.3811, allocations: 60.83 MB / 0.5184 GB, free: 3.539 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.Revolute): time 0.01327/0.3944, allocations: 12.31 MB / 0.5305 GB, free: 10.8 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.01017/0.4047, allocations: 3.932 MB / 0.5343 GB, free: 7.855 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00313/0.4079, allocations: 60.66 kB / 0.5344 GB, free: 7.848 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003638/0.4115, allocations: 1.311 MB / 0.5356 GB, free: 6.949 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005856/0.4175, allocations: 1.801 MB / 0.5374 GB, free: 5.723 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001885/0.4194, allocations: 487.1 kB / 0.5379 GB, free: 5.422 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.007188/0.4266, allocations: 3.597 MB / 0.5414 GB, free: 3.488 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00478/0.4315, allocations: 2.022 MB / 0.5433 GB, free: 2.219 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004312/0.4359, allocations: 1.202 MB / 0.5445 GB, free: 1.445 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003896/0.4398, allocations: 1.725 MB / 0.5462 GB, free: 15.71 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001247/0.4411, allocations: 232 kB / 0.5464 GB, free: 15.49 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00326/0.4444, allocations: 0.9517 MB / 0.5474 GB, free: 14.54 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002564/0.447, allocations: 1.593 MB / 0.5489 GB, free: 12.94 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003892/0.4509, allocations: 1.898 MB / 0.5508 GB, free: 11.03 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008914/0.4599, allocations: 6.254 MB / 0.5569 GB, free: 4.75 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.032e-05/0.4599, allocations: 0 / 0.5569 GB, free: 4.75 MB / 414.1 MB Notification: Performance of FrontEnd: time 2.645e-06/0.4599, allocations: 0 / 0.5569 GB, free: 4.75 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0002364/0.4602, allocations: 0 / 0.5569 GB, free: 4.75 MB / 414.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1528 * Number of variables: 1528 Notification: Performance of Generate backend data structure: time 0.01073/0.4709, allocations: 4.167 MB / 0.5609 GB, free: 0.5156 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.051e-05/0.471, allocations: 12.02 kB / 0.561 GB, free: 0.5039 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001994/0.473, allocations: 0.7044 MB / 0.5616 GB, free: 15.79 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01068/0.4837, allocations: 3.084 MB / 0.5647 GB, free: 12.7 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00474/0.4885, allocations: 2.209 MB / 0.5668 GB, free: 10.44 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001949/0.4887, allocations: 193 kB / 0.567 GB, free: 10.25 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001068/0.4898, allocations: 247.8 kB / 0.5672 GB, free: 10 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01844/0.5083, allocations: 10.48 MB / 0.5775 GB, free: 15.09 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001131/0.5084, allocations: 27.72 kB / 0.5775 GB, free: 15.06 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007361/0.5092, allocations: 119.8 kB / 0.5776 GB, free: 14.94 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004297/0.5135, allocations: 2.553 MB / 0.5801 GB, free: 12.39 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02034/0.5339, allocations: 9.919 MB / 0.5898 GB, free: 2.457 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05896/0.5929, allocations: 34.27 MB / 0.6233 GB, free: 15.35 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0101/0.603, allocations: 5.174 MB / 0.6283 GB, free: 9.941 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003446/0.6065, allocations: 2.3 MB / 0.6306 GB, free: 7.641 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001824/0.6084, allocations: 1.876 MB / 0.6324 GB, free: 5.438 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.195e-05/0.6085, allocations: 52.56 kB / 0.6324 GB, free: 5.375 MB / 494.1 MB Notification: Performance of pre-optimization done (n=229): time 6.472e-06/0.6085, allocations: 0 / 0.6324 GB, free: 5.375 MB / 494.1 MB Notification: Performance of matching and sorting (n=235): time 0.0365/0.645, allocations: 13.99 MB / 0.6461 GB, free: 7.324 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.348e-05/0.6451, allocations: 69.41 kB / 0.6462 GB, free: 7.242 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004467/0.6496, allocations: 2.643 MB / 0.6488 GB, free: 4.578 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 0.0004159/0.65, allocations: 53.7 kB / 0.6488 GB, free: 4.52 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.002081/0.6521, allocations: 2.635 MB / 0.6514 GB, free: 1.844 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.001169/0.6533, allocations: 0.8479 MB / 0.6522 GB, free: 0.9844 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002425/0.6558, allocations: 1.04 MB / 0.6532 GB, free: 15.93 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0001128/0.6559, allocations: 301.1 kB / 0.6535 GB, free: 15.63 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003619/0.6596, allocations: 2.196 MB / 0.6557 GB, free: 13.43 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006907/0.6665, allocations: 5.059 MB / 0.6606 GB, free: 6.969 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01053/0.6771, allocations: 7.961 MB / 0.6684 GB, free: 13.61 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001182/0.6772, allocations: 28 kB / 0.6684 GB, free: 13.58 MB / 0.5294 GB Notification: Performance of matching and sorting (n=691) (initialization): time 0.01575/0.693, allocations: 7.867 MB / 0.6761 GB, free: 5.699 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001377/0.6932, allocations: 51.94 kB / 0.6761 GB, free: 5.648 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002425/0.6934, allocations: 100 kB / 0.6762 GB, free: 5.551 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002655/0.6961, allocations: 0.8013 MB / 0.677 GB, free: 4.746 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004288/0.7004, allocations: 1.174 MB / 0.6781 GB, free: 3.57 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006618/0.7071, allocations: 4.519 MB / 0.6826 GB, free: 14.91 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003914/0.711, allocations: 291.8 kB / 0.6828 GB, free: 14.63 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001145/0.7122, allocations: 300 kB / 0.6831 GB, free: 14.34 MB / 0.545 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 454 * Number of states: 0 () * Number of discrete variables: 29 (axis.arrowLine.twoHeadedArrow,axis.headAtOrigin,frame_a1.color_x[3],frame_a1.color_x[2],frame_a1.color_x[1],frame_a.color_x[3],frame_a.color_x[2],frame_a.color_x[1],body.sphereColor[3],body.sphereColor[2],body.sphereColor[1],revolute.cylinderColor[3],revolute.cylinderColor[2],revolute.cylinderColor[1],axis.color[3],axis.color[2],axis.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 (631): * Single equations (assignments): 624 * Array equations: 6 * 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 {(1,12,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.004714/0.717, allocations: 2.02 MB / 0.6851 GB, free: 12.3 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007884/0.7178, allocations: 264.7 kB / 0.6854 GB, free: 12.04 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009921/0.7277, allocations: 4.721 MB / 0.69 GB, free: 7.289 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.301e-05/0.7278, allocations: 55.91 kB / 0.69 GB, free: 7.234 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.489e-05/0.7279, allocations: 3.938 kB / 0.69 GB, free: 7.23 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.53e-05/0.7279, allocations: 7.969 kB / 0.69 GB, free: 7.223 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02222/0.7502, allocations: 10.5 MB / 0.7003 GB, free: 12.55 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.495e-05/0.7502, allocations: 8 kB / 0.7003 GB, free: 12.55 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001817/0.7521, allocations: 363.3 kB / 0.7006 GB, free: 12.19 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002133/0.7542, allocations: 0.6569 MB / 0.7013 GB, free: 11.53 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004969/0.7548, allocations: 39.98 kB / 0.7013 GB, free: 11.49 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005281/0.7601, allocations: 3.913 MB / 0.7051 GB, free: 7.438 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.934e-05/0.7601, allocations: 11.94 kB / 0.7051 GB, free: 7.426 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01215/0.7723, allocations: 7.132 MB / 0.7121 GB, free: 180 kB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008337/0.7732, allocations: 301.8 kB / 0.7124 GB, free: 15.86 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007743/0.774, allocations: 43.94 kB / 0.7124 GB, free: 15.82 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001659/0.7756, allocations: 144.1 kB / 0.7126 GB, free: 15.68 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005149/0.7762, allocations: 137 kB / 0.7127 GB, free: 15.54 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000285/0.7765, allocations: 67.98 kB / 0.7128 GB, free: 15.47 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.002974/0.7795, allocations: 1.628 MB / 0.7144 GB, free: 13.84 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.9e-07/0.7795, allocations: 0 / 0.7144 GB, free: 13.84 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.004976/0.7845, allocations: 0.9219 MB / 0.7153 GB, free: 12.91 MB / 0.5762 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 30 * Number of states: 2 (revolute.phi,revolute.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 (178): * Single equations (assignments): 171 * Array equations: 6 * 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 {(1,9,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.01249/0.797, allocations: 7.798 MB / 0.7229 GB, free: 4.996 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.2769/1.074, allocations: 5.369 MB / 0.7281 GB, free: 191 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 1.714e-05/1.074, allocations: 1.062 kB / 0.7281 GB, free: 191 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.004008/1.078, allocations: 2.021 MB / 0.7301 GB, free: 190.8 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002822/1.081, allocations: 366.9 kB / 0.7304 GB, free: 190.8 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06334/1.144, allocations: 39.54 MB / 0.7691 GB, free: 161.4 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004032/1.148, allocations: 3.17 MB / 0.7722 GB, free: 158.2 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.004126/1.153, allocations: 1.954 MB / 0.7741 GB, free: 156.3 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002599/1.155, allocations: 1.706 MB / 0.7757 GB, free: 154.6 MB / 0.5762 GB Notification: Performance of SimCode: time 1.893e-06/1.155, allocations: 0 / 0.7757 GB, free: 154.6 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08739/1.243, allocations: 54.52 MB / 0.829 GB, free: 100.4 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 21.35/22.59, allocations: 16.14 kB / 0.829 GB, free: 100.4 MB / 0.5762 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Revolute.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Revolute.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Revolute.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Revolute.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Revolute_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_MultiBody_Joints_Revolute_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_MultiBody_Joints_Revolute.fmu > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Revolute.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Revolute_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Joints/Revolute/Revolute.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Revolute.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches