Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.RevoluteInitialization.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.RevoluteInitialization,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Joints_RevoluteInitialization",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.RevoluteInitialization,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Joints_RevoluteInitialization",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001015/0.001015, allocations: 175.2 kB / 16.72 MB, free: 5.082 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.241/1.241, allocations: 205.4 MB / 222.9 MB, free: 9.023 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008788/0.0008787, allocations: 95.77 kB / 271.2 MB, free: 8.238 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.298/0.298, allocations: 43.56 MB / 363.1 MB, free: 52.12 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003679/0.000368, allocations: 12 kB / 432.1 MB, free: 5.73 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09712/0.09751, allocations: 58.85 MB / 490.9 MB, free: 10.8 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.RevoluteInitialization): time 0.1963/0.2939, allocations: 31.44 MB / 0.5101 GB, free: 28.16 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.01432/0.3082, allocations: 7.433 MB / 0.5174 GB, free: 23.12 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005632/0.3139, allocations: 146.5 kB / 0.5175 GB, free: 23.1 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.004358/0.3183, allocations: 1.578 MB / 0.5191 GB, free: 22.54 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01136/0.3297, allocations: 4.872 MB / 0.5238 GB, free: 20.51 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002384/0.3321, allocations: 0.5538 MB / 0.5244 GB, free: 20.29 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.004242/0.3363, allocations: 3.823 MB / 0.5281 GB, free: 18.99 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004227/0.3406, allocations: 3.181 MB / 0.5312 GB, free: 17.71 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002211/0.3428, allocations: 1.05 MB / 0.5322 GB, free: 17.36 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00236/0.3452, allocations: 1.594 MB / 0.5338 GB, free: 16.89 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000738/0.3459, allocations: 114.1 kB / 0.5339 GB, free: 16.89 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002181/0.3481, allocations: 0.9377 MB / 0.5348 GB, free: 16.66 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001812/0.35, allocations: 1.395 MB / 0.5362 GB, free: 16.26 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002566/0.3526, allocations: 1.588 MB / 0.5377 GB, free: 15.18 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.007317/0.3599, allocations: 4.46 MB / 0.5421 GB, free: 14.18 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 9.327e-06/0.3599, allocations: 4 kB / 0.5421 GB, free: 14.18 MB / 378.7 MB Notification: Performance of FrontEnd: time 3.095e-06/0.36, allocations: 0 / 0.5421 GB, free: 14.18 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0003171/0.3603, allocations: 1 kB / 0.5421 GB, free: 14.18 MB / 378.7 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.009084/0.3694, allocations: 3.327 MB / 0.5453 GB, free: 11.78 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.089e-05/0.3694, allocations: 9 kB / 0.5453 GB, free: 11.78 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001897/0.3713, allocations: 0.6042 MB / 0.5459 GB, free: 11.36 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007206/0.3786, allocations: 1.831 MB / 0.5477 GB, free: 10.43 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005505/0.3841, allocations: 2.386 MB / 0.55 GB, free: 8.898 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002422/0.3844, allocations: 188.2 kB / 0.5502 GB, free: 8.809 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001141/0.3855, allocations: 261.4 kB / 0.5505 GB, free: 8.711 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01562/0.4012, allocations: 8.434 MB / 0.5587 GB, free: 3.363 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001573/0.4014, allocations: 45.17 kB / 0.5587 GB, free: 3.336 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007697/0.4022, allocations: 122.6 kB / 0.5589 GB, free: 3.254 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00274/0.4049, allocations: 1.697 MB / 0.5605 GB, free: 2.27 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01332/0.4183, allocations: 7.067 MB / 0.5674 GB, free: 11.19 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04117/0.4595, allocations: 34.17 MB / 0.6008 GB, free: 8.039 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007312/0.4668, allocations: 3.279 MB / 0.604 GB, free: 4.605 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001913/0.4688, allocations: 1.455 MB / 0.6054 GB, free: 3.137 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006895/0.4757, allocations: 4.369 MB / 0.6097 GB, free: 14.56 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.264e-05/0.4758, allocations: 51.06 kB / 0.6097 GB, free: 14.5 MB / 442.7 MB Notification: Performance of pre-optimization done (n=121): time 4.258e-06/0.4758, allocations: 4 kB / 0.6097 GB, free: 14.5 MB / 442.7 MB Notification: Performance of matching and sorting (n=129): time 0.02965/0.5054, allocations: 11.54 MB / 0.621 GB, free: 2.809 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.665e-05/0.5056, allocations: 166.9 kB / 0.6212 GB, free: 2.609 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006045/0.5116, allocations: 3.727 MB / 0.6248 GB, free: 14.89 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002805/0.5119, allocations: 49.61 kB / 0.6249 GB, free: 14.84 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002096/0.514, allocations: 2.748 MB / 0.6275 GB, free: 12.05 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007475/0.5148, allocations: 0.5171 MB / 0.628 GB, free: 11.52 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004182/0.5152, allocations: 108 kB / 0.6281 GB, free: 11.42 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0003926/0.5156, allocations: 0.5291 MB / 0.6287 GB, free: 10.88 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002696/0.5183, allocations: 1.673 MB / 0.6303 GB, free: 9.203 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004634/0.523, allocations: 5.1 MB / 0.6353 GB, free: 2.375 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007942/0.5309, allocations: 7.378 MB / 0.6425 GB, free: 9.285 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.169e-05/0.5311, allocations: 32 kB / 0.6425 GB, free: 9.254 MB / 474.7 MB Notification: Performance of matching and sorting (n=692) (initialization): time 0.01204/0.5431, allocations: 6.653 MB / 0.649 GB, free: 2.59 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001309/0.5433, allocations: 64.09 kB / 0.6491 GB, free: 2.527 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001905/0.5435, allocations: 124 kB / 0.6492 GB, free: 2.406 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006669/0.5442, allocations: 320.7 kB / 0.6495 GB, free: 2.09 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00399/0.5482, allocations: 1.24 MB / 0.6507 GB, free: 0.8438 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002539/0.5507, allocations: 2.29 MB / 0.6529 GB, free: 14.41 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003918/0.5547, allocations: 283.6 kB / 0.6532 GB, free: 14.13 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008304/0.5555, allocations: 343.8 kB / 0.6535 GB, free: 13.8 MB / 490.7 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 (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 {(1,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.004406/0.5599, allocations: 1.787 MB / 0.6553 GB, free: 12 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008123/0.5608, allocations: 311.9 kB / 0.6556 GB, free: 11.69 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005157/0.5659, allocations: 2.359 MB / 0.6579 GB, free: 9.316 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.681e-05/0.566, allocations: 19.91 kB / 0.6579 GB, free: 9.301 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.348e-05/0.566, allocations: 11.94 kB / 0.6579 GB, free: 9.289 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.657e-05/0.566, allocations: 3.984 kB / 0.6579 GB, free: 9.285 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01373/0.5798, allocations: 5.923 MB / 0.6637 GB, free: 3.293 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.514e-05/0.5798, allocations: 0 / 0.6637 GB, free: 3.293 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008799/0.5807, allocations: 180 kB / 0.6639 GB, free: 3.117 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002209/0.583, allocations: 0.72 MB / 0.6646 GB, free: 2.395 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001501/0.5831, allocations: 16 kB / 0.6646 GB, free: 2.379 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005533/0.5887, allocations: 4.47 MB / 0.669 GB, free: 13.78 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.166e-06/0.5887, allocations: 0 / 0.669 GB, free: 13.78 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006806/0.5955, allocations: 4.331 MB / 0.6732 GB, free: 9.418 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001476/0.597, allocations: 0.5325 MB / 0.6737 GB, free: 8.863 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007364/0.5978, allocations: 20 kB / 0.6737 GB, free: 8.844 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001498/0.5993, allocations: 75.89 kB / 0.6738 GB, free: 8.77 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002945/0.5996, allocations: 64.56 kB / 0.6739 GB, free: 8.707 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001025/0.5997, allocations: 36 kB / 0.6739 GB, free: 8.672 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.004357/0.6041, allocations: 2.327 MB / 0.6762 GB, free: 6.359 MB / 0.4948 GB Notification: Performance of sort global known variables: time 1.753e-06/0.6041, allocations: 0 / 0.6762 GB, free: 6.359 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.004833/0.6089, allocations: 0.8242 MB / 0.677 GB, free: 5.535 MB / 0.4948 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 (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 {(1,100.0%) 11} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.007689/0.6166, allocations: 4.943 MB / 0.6818 GB, free: 0.5469 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.1816/0.7982, allocations: 3.981 MB / 0.6857 GB, free: 158 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 5.741e-06/0.7983, allocations: 1.156 kB / 0.6857 GB, free: 158 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.001699/0.8, allocations: 1.104 MB / 0.6868 GB, free: 157.9 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003354/0.8034, allocations: 372 kB / 0.6871 GB, free: 157.9 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04535/0.8487, allocations: 28.53 MB / 0.715 GB, free: 140.1 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003098/0.8519, allocations: 2.799 MB / 0.7177 GB, free: 138.9 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001985/0.8539, allocations: 1.566 MB / 0.7192 GB, free: 137.7 MB / 0.4948 GB Notification: Performance of SimCode: time 8.92e-07/0.8539, allocations: 0 / 0.7192 GB, free: 137.7 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 6.411/7.265, allocations: 77.1 MB / 0.7945 GB, free: 76.84 MB / 0.4948 GB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.RevoluteInitialization.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.RevoluteInitialization.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.RevoluteInitialization.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.RevoluteInitialization.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.RevoluteInitialization_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Joints_RevoluteInitialization_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Joints_RevoluteInitialization.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.RevoluteInitialization.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.RevoluteInitialization_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/MultiBody/Joints/RevoluteInitialization/RevoluteInitialization.csv","../files/ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.RevoluteInitialization.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches