Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.RevoluteInitialization.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.RevoluteInitialization,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Joints_RevoluteInitialization",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.RevoluteInitialization,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Joints_RevoluteInitialization",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.001697/0.001697, allocations: 110.5 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.002593/0.002593, allocations: 193.3 kB / 18.25 MB, free: 5.105 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.357/1.357, allocations: 222.9 MB / 241.9 MB, free: 15.43 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.201/0.201, allocations: 44.17 MB / 336.3 MB, free: 2.871 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00148/0.00148, allocations: 65.38 kB / 408 MB, free: 27.49 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1231/0.1246, allocations: 60.81 MB / 468.8 MB, free: 14.64 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.RevoluteInitialization): time 0.03672/0.1613, allocations: 34.72 MB / 0.4917 GB, free: 11.77 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.01932/0.1807, allocations: 7.804 MB / 0.4994 GB, free: 3.941 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.009591/0.1903, allocations: 151.6 kB / 0.4995 GB, free: 3.793 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005185/0.1956, allocations: 1.866 MB / 0.5013 GB, free: 1.922 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005192/0.2009, allocations: 1.542 MB / 0.5028 GB, free: 384 kB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.277/0.4779, allocations: 0.5694 MB / 0.5034 GB, free: 10.95 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.006217/0.4842, allocations: 3.361 MB / 0.5067 GB, free: 10.95 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005656/0.4899, allocations: 2.729 MB / 0.5093 GB, free: 10.65 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003167/0.4931, allocations: 1.266 MB / 0.5106 GB, free: 10.64 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004212/0.4973, allocations: 1.87 MB / 0.5124 GB, free: 10.5 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001832/0.4992, allocations: 253.7 kB / 0.5126 GB, free: 10.5 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003547/0.5028, allocations: 1.047 MB / 0.5137 GB, free: 10.5 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002559/0.5054, allocations: 1.586 MB / 0.5152 GB, free: 10.33 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002739/0.5081, allocations: 1.86 MB / 0.517 GB, free: 9.664 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008201/0.5163, allocations: 5.682 MB / 0.5226 GB, free: 8.863 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.577e-06/0.5164, allocations: 4 kB / 0.5226 GB, free: 8.859 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.883e-06/0.5164, allocations: 0 / 0.5226 GB, free: 8.859 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0002055/0.5166, allocations: 0 / 0.5226 GB, free: 8.859 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1275 * Number of variables: 1275 Notification: Performance of Generate backend data structure: time 0.009003/0.5256, allocations: 4.028 MB / 0.5265 GB, free: 6.547 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.024e-05/0.5257, allocations: 17.22 kB / 0.5265 GB, free: 6.543 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0009287/0.5266, allocations: 0.6091 MB / 0.5271 GB, free: 6.152 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005764/0.5324, allocations: 1.777 MB / 0.5289 GB, free: 5.23 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003815/0.5362, allocations: 2.227 MB / 0.531 GB, free: 3.922 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001085/0.5364, allocations: 190.2 kB / 0.5312 GB, free: 3.863 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004699/0.5368, allocations: 253.7 kB / 0.5315 GB, free: 3.805 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01386/0.5507, allocations: 8.437 MB / 0.5397 GB, free: 14.64 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001251/0.5509, allocations: 42.34 kB / 0.5397 GB, free: 14.64 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004152/0.5513, allocations: 124.7 kB / 0.5399 GB, free: 14.58 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003033/0.5543, allocations: 1.698 MB / 0.5415 GB, free: 12.91 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01386/0.5682, allocations: 7.1 MB / 0.5484 GB, free: 5.977 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04757/0.6158, allocations: 34.16 MB / 0.5818 GB, free: 3.258 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007776/0.6236, allocations: 3.285 MB / 0.585 GB, free: 15.83 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002202/0.6259, allocations: 1.459 MB / 0.5864 GB, free: 14.36 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007977/0.6339, allocations: 4.361 MB / 0.5907 GB, free: 9.82 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.982e-05/0.634, allocations: 45.75 kB / 0.5907 GB, free: 9.77 MB / 446.1 MB Notification: Performance of pre-optimization done (n=121): time 5.661e-06/0.634, allocations: 4 kB / 0.5907 GB, free: 9.766 MB / 446.1 MB Notification: Performance of matching and sorting (n=129): time 0.03437/0.6684, allocations: 11.52 MB / 0.602 GB, free: 14.12 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001118/0.6685, allocations: 170.4 kB / 0.6022 GB, free: 13.93 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007579/0.6761, allocations: 3.73 MB / 0.6058 GB, free: 10.2 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003735/0.6765, allocations: 45.06 kB / 0.6058 GB, free: 10.16 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002496/0.679, allocations: 2.761 MB / 0.6085 GB, free: 7.395 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008699/0.6799, allocations: 0.5181 MB / 0.609 GB, free: 6.883 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00255/0.6825, allocations: 1.075 MB / 0.6101 GB, free: 5.797 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001237/0.6826, allocations: 309.1 kB / 0.6104 GB, free: 5.492 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00311/0.6857, allocations: 1.689 MB / 0.612 GB, free: 3.797 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005938/0.6917, allocations: 5.122 MB / 0.617 GB, free: 13.01 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01043/0.7021, allocations: 7.401 MB / 0.6243 GB, free: 4.395 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001706/0.7023, allocations: 36 kB / 0.6243 GB, free: 4.359 MB / 478.1 MB Notification: Performance of matching and sorting (n=692) (initialization): time 0.01493/0.7173, allocations: 6.699 MB / 0.6308 GB, free: 13.96 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001746/0.7175, allocations: 60 kB / 0.6309 GB, free: 13.91 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002285/0.7178, allocations: 123.9 kB / 0.631 GB, free: 13.79 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007236/0.7185, allocations: 321.3 kB / 0.6313 GB, free: 13.47 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004475/0.723, allocations: 1.244 MB / 0.6325 GB, free: 12.22 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003088/0.7261, allocations: 2.495 MB / 0.635 GB, free: 9.586 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004947/0.7311, allocations: 291.5 kB / 0.6352 GB, free: 9.301 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001374/0.7325, allocations: 328 kB / 0.6356 GB, free: 8.98 MB / 494.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 555 * Number of states: 0 () * Number of discrete variables: 33 (spring.color[3],spring.color[2],spring.color[1],spring.massColor[3],spring.massColor[2],spring.massColor[1],fixed.color[3],fixed.color[2],fixed.color[1],body.color[3],body.color[2],body.color[1],body.body.sphereColor[3],body.body.sphereColor[2],body.body.sphereColor[1],body.frameTranslation.color[3],body.frameTranslation.color[2],body.frameTranslation.color[1],rev.cylinderColor[3],rev.cylinderColor[2],rev.cylinderColor[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]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (664): * Single equations (assignments): 660 * 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 {(1,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.005081/0.7376, allocations: 1.791 MB / 0.6373 GB, free: 7.176 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009753/0.7386, allocations: 311.9 kB / 0.6376 GB, free: 6.867 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006115/0.7447, allocations: 2.363 MB / 0.6399 GB, free: 4.492 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.971e-05/0.7448, allocations: 22.19 kB / 0.6399 GB, free: 4.473 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.525e-05/0.7448, allocations: 4 kB / 0.6399 GB, free: 4.469 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.145e-05/0.7449, allocations: 3.984 kB / 0.6399 GB, free: 4.465 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01572/0.7606, allocations: 5.916 MB / 0.6457 GB, free: 14.52 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.405e-05/0.7606, allocations: 0 / 0.6457 GB, free: 14.52 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009101/0.7616, allocations: 171.8 kB / 0.6459 GB, free: 14.35 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002267/0.7638, allocations: 0.7263 MB / 0.6466 GB, free: 13.62 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001763/0.764, allocations: 20 kB / 0.6466 GB, free: 13.6 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006455/0.7705, allocations: 4.827 MB / 0.6513 GB, free: 8.637 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.939e-06/0.7705, allocations: 4 kB / 0.6513 GB, free: 8.633 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007513/0.7781, allocations: 4.323 MB / 0.6556 GB, free: 4.281 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001068/0.7792, allocations: 364.9 kB / 0.6559 GB, free: 3.902 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008278/0.78, allocations: 19.98 kB / 0.6559 GB, free: 3.883 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001636/0.7817, allocations: 71.91 kB / 0.656 GB, free: 3.812 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002696/0.7819, allocations: 72.56 kB / 0.6561 GB, free: 3.742 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001293/0.7821, allocations: 32 kB / 0.6561 GB, free: 3.711 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.005329/0.7874, allocations: 2.327 MB / 0.6584 GB, free: 1.398 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.5e-07/0.7875, allocations: 0 / 0.6584 GB, free: 1.398 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.006032/0.7935, allocations: 0.8185 MB / 0.6592 GB, free: 0.582 MB / 0.4981 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 2 (rev.phi,rev.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 (96): * Single equations (assignments): 92 * 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 {(1,11,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.008682/0.8022, allocations: 4.962 MB / 0.664 GB, free: 11.58 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.007941/0.8102, allocations: 4.408 MB / 0.6683 GB, free: 7.191 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 7.414e-06/0.8102, allocations: 3.938 kB / 0.6683 GB, free: 7.188 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.001737/0.8119, allocations: 1.11 MB / 0.6694 GB, free: 6.062 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003238/0.8152, allocations: 388.7 kB / 0.6698 GB, free: 5.684 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3097/1.125, allocations: 43.71 MB / 0.7125 GB, free: 196.3 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004585/1.13, allocations: 2.783 MB / 0.7152 GB, free: 195.5 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.005198/1.135, allocations: 1.662 MB / 0.7168 GB, free: 195.5 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002748/1.138, allocations: 1.523 MB / 0.7183 GB, free: 194.8 MB / 0.545 GB Notification: Performance of SimCode: time 1.082e-06/1.138, allocations: 3.969 kB / 0.7183 GB, free: 194.8 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08796/1.226, allocations: 61.12 MB / 0.778 GB, free: 144.4 MB / 0.545 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001454/1.226, allocations: 228.5 kB / 0.7782 GB, free: 144.2 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.914/5.14, allocations: 0 / 0.7782 GB, free: 144.2 MB / 0.545 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.RevoluteInitialization.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.RevoluteInitialization.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.RevoluteInitialization.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.RevoluteInitialization.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.RevoluteInitialization_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_MultiBody_Joints_RevoluteInitialization_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_MultiBody_Joints_RevoluteInitialization.fmu > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.RevoluteInitialization.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.RevoluteInitialization_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Joints/RevoluteInitialization/RevoluteInitialization.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.RevoluteInitialization.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches