Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001442/0.001442, allocations: 83.58 kB / 21.19 MB, free: 3.383 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001417/0.001417, allocations: 161 kB / 24.56 MB, free: 16 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.9901/0.9901, allocations: 177.1 MB / 205 MB, free: 5.621 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.3027/0.3027, allocations: 32.8 MB / 294.3 MB, free: 1.281 MB / 266.7 MB " [Timeout remaining time 180] 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.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|j1.phi|j1.w",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal") translateModel(ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|j1.phi|j1.w",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.783e-06/1.783e-06, allocations: 0 / 376 MB, free: 4.707 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.942e-05/3.12e-05, allocations: 2.312 kB / 376 MB, free: 4.703 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal): time 0.01085/0.01089, allocations: 12.95 MB / 389 MB, free: 7.688 MB / 362.7 MB Notification: Performance of NFInst.instExpressions: time 0.008993/0.01988, allocations: 4.75 MB / 393.7 MB, free: 2.922 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001861/0.02174, allocations: 115.4 kB / 393.8 MB, free: 2.809 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 0.004715/0.02645, allocations: 3.999 MB / 397.8 MB, free: 14.8 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00407/0.03052, allocations: 2.298 MB / 400.1 MB, free: 12.49 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001583/0.03211, allocations: 1.205 MB / 401.3 MB, free: 11.28 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.006537/0.03865, allocations: 7.717 MB / 409 MB, free: 3.551 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005175/0.04382, allocations: 4.435 MB / 413.5 MB, free: 15.05 MB / 394.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005203/0.04902, allocations: 4.222 MB / 417.7 MB, free: 10.82 MB / 394.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003647/0.05267, allocations: 3.129 MB / 420.8 MB, free: 7.68 MB / 394.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0009121/0.05358, allocations: 436 kB / 421.2 MB, free: 7.254 MB / 394.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001846/0.05543, allocations: 1.385 MB / 422.6 MB, free: 5.867 MB / 394.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001877/0.05731, allocations: 2.669 MB / 425.3 MB, free: 3.191 MB / 394.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001795/0.0591, allocations: 1.651 MB / 426.9 MB, free: 1.535 MB / 394.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00506/0.06416, allocations: 5.754 MB / 432.7 MB, free: 11.76 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.65e-06/0.06417, allocations: 0 / 432.7 MB, free: 11.76 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.363e-06/0.06417, allocations: 0 / 432.7 MB, free: 11.76 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0002368/0.0644, allocations: 0 / 432.7 MB, free: 11.76 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1729 * Number of variables: 1729 Notification: Performance of Generate backend data structure: time 0.008299/0.0727, allocations: 6.776 MB / 439.5 MB, free: 4.914 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.855e-05/0.07275, allocations: 12.03 kB / 439.5 MB, free: 4.902 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006324/0.07908, allocations: 3.013 MB / 442.5 MB, free: 1.883 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.195/0.2741, allocations: 3.298 MB / 445.8 MB, free: 93.62 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000194/0.2743, allocations: 281 kB / 446.1 MB, free: 93.61 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000527/0.2748, allocations: 388 kB / 446.5 MB, free: 93.61 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00917/0.2839, allocations: 7.271 MB / 453.7 MB, free: 90.45 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000123/0.2841, allocations: 57.86 kB / 453.8 MB, free: 90.45 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003166/0.2844, allocations: 179.3 kB / 454 MB, free: 90.45 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001735/0.2861, allocations: 2.091 MB / 456 MB, free: 90.44 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007034/0.2932, allocations: 3.814 MB / 459.9 MB, free: 90.04 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0264/0.3196, allocations: 50.26 MB / 0.4982 GB, free: 49.3 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006177/0.3257, allocations: 2.647 MB / 0.5008 GB, free: 48.88 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009782/0.3267, allocations: 0.6309 MB / 0.5014 GB, free: 48.73 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00675/0.3335, allocations: 5.147 MB / 0.5064 GB, free: 46.15 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.09e-05/0.3335, allocations: 55.33 kB / 0.5064 GB, free: 46.1 MB / 410.7 MB Notification: Performance of pre-optimization done (n=160): time 3.777e-06/0.3335, allocations: 0 / 0.5064 GB, free: 46.1 MB / 410.7 MB Notification: Performance of matching and sorting (n=192): time 0.03798/0.3715, allocations: 18.95 MB / 0.525 GB, free: 34.32 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.653e-05/0.3715, allocations: 197.2 kB / 0.5251 GB, free: 34.08 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00356/0.3751, allocations: 4.318 MB / 0.5294 GB, free: 29.84 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 9.138e-05/0.3752, allocations: 49.7 kB / 0.5294 GB, free: 29.78 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001402/0.3766, allocations: 4.052 MB / 0.5334 GB, free: 25.77 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004216/0.377, allocations: 0.8005 MB / 0.5341 GB, free: 24.97 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009637/0.378, allocations: 1.49 MB / 0.5356 GB, free: 23.47 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 3.852e-05/0.378, allocations: 480.7 kB / 0.5361 GB, free: 23 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009898/0.379, allocations: 0.7553 MB / 0.5368 GB, free: 22.24 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002463/0.3815, allocations: 7.033 MB / 0.5437 GB, free: 12.35 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004459/0.3859, allocations: 8.525 MB / 0.552 GB, free: 1.008 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.026e-05/0.386, allocations: 40 kB / 0.552 GB, free: 0.9688 MB / 410.7 MB Notification: Performance of matching and sorting (n=905) (initialization): time 0.008563/0.3945, allocations: 6.581 MB / 0.5585 GB, free: 10.37 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.197e-05/0.3946, allocations: 68 kB / 0.5585 GB, free: 10.3 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001083/0.3947, allocations: 148 kB / 0.5587 GB, free: 10.16 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002674/0.3974, allocations: 1.371 MB / 0.56 GB, free: 8.77 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002605/0.4, allocations: 1.579 MB / 0.5615 GB, free: 7.188 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00775/0.4077, allocations: 9.594 MB / 0.5709 GB, free: 13.11 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003227/0.411, allocations: 479.2 kB / 0.5714 GB, free: 12.64 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003782/0.4114, allocations: 412.1 kB / 0.5718 GB, free: 12.24 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 676 * Number of states: 0 () * Number of discrete variables: 42 (Universal1.cylinderColor[3],Universal1.cylinderColor[2],Universal1.cylinderColor[1],FixedTranslation1.color[3],FixedTranslation1.color[2],FixedTranslation1.color[1],spherical.sphereColor[3],spherical.sphereColor[2],spherical.sphereColor[1],b3.color[3],b3.color[2],b3.color[1],b2.color[3],b2.color[2],b2.color[1],b2.body.sphereColor[3],b2.body.sphereColor[2],b2.body.sphereColor[1],b1.color[3],b1.color[2],b1.color[1],b1.body.sphereColor[3],b1.body.sphereColor[2],b1.body.sphereColor[1],j2.boxColor[3],j2.boxColor[2],j2.boxColor[1],j1.cylinderColor[3],j1.cylinderColor[2],j1.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 (851): * Single equations (assignments): 844 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(5,17,60.0%), (2,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(1,4), (1,2)} Notification: Performance of prepare postOptimizeDAE: time 0.001411/0.4128, allocations: 0.7312 MB / 0.5725 GB, free: 11.49 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005194/0.4133, allocations: 469.2 kB / 0.5729 GB, free: 11.03 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002955/0.4162, allocations: 2.002 MB / 0.5749 GB, free: 9.004 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.781e-05/0.4163, allocations: 24 kB / 0.5749 GB, free: 8.98 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.376e-06/0.4163, allocations: 4 kB / 0.5749 GB, free: 8.977 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.426e-05/0.4163, allocations: 11.97 kB / 0.5749 GB, free: 8.965 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01042/0.4267, allocations: 7.177 MB / 0.5819 GB, free: 1.621 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.736e-06/0.4267, allocations: 8.906 kB / 0.5819 GB, free: 1.613 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006148/0.4273, allocations: 287.6 kB / 0.5822 GB, free: 1.332 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002102/0.4294, allocations: 1 MB / 0.5832 GB, free: 324 kB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.216e-05/0.4295, allocations: 36 kB / 0.5832 GB, free: 288 kB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006108/0.4356, allocations: 8.665 MB / 0.5917 GB, free: 7.129 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.163e-05/0.4356, allocations: 15.88 kB / 0.5917 GB, free: 7.113 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004442/0.4401, allocations: 3.259 MB / 0.5949 GB, free: 3.688 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005981/0.4407, allocations: 425.2 kB / 0.5953 GB, free: 3.27 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002955/0.441, allocations: 51.19 kB / 0.5953 GB, free: 3.223 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008657/0.4418, allocations: 143.8 kB / 0.5955 GB, free: 3.082 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002538/0.4421, allocations: 148.6 kB / 0.5956 GB, free: 2.938 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.016e-05/0.4422, allocations: 56 kB / 0.5957 GB, free: 2.883 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.00214/0.4443, allocations: 1.896 MB / 0.5975 GB, free: 0.9844 MB / 458.7 MB Notification: Performance of sort global known variables: time 2.5e-07/0.4443, allocations: 0 / 0.5975 GB, free: 0.9844 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.2117/0.656, allocations: 1.275 MB / 0.5988 GB, free: 117 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 33 * Number of states: 2 (j1.phi,j1.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 (144): * Single equations (assignments): 137 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(5,15,60.0%), (2,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(1,4), (1,2)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0009548/0.657, allocations: 197.7 kB / 0.5989 GB, free: 116.9 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.006809/0.6638, allocations: 4.171 MB / 0.603 GB, free: 116.1 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 1.088e-05/0.6638, allocations: 0 / 0.603 GB, free: 116.1 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001717/0.6655, allocations: 1.545 MB / 0.6045 GB, free: 115.3 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002454/0.6679, allocations: 0.5301 MB / 0.605 GB, free: 115.3 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01171/0.6796, allocations: 9.146 MB / 0.614 GB, free: 111.5 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001392/0.681, allocations: 1.505 MB / 0.6154 GB, free: 111.3 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.002759/0.6838, allocations: 1.72 MB / 0.6171 GB, free: 111.2 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005012/0.6843, allocations: 270.1 kB / 0.6174 GB, free: 111.2 MB / 458.7 MB Notification: Performance of SimCode: time 3.296e-06/0.6843, allocations: 8.484 kB / 0.6174 GB, free: 111.2 MB / 458.7 MB Notification: Performance of Templates: time 0.07118/0.7555, allocations: 41.05 MB / 0.6575 GB, free: 97.84 MB / 458.7 MB " [Timeout remaining time 659] make -j1 -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal.makefile [Timeout 660] (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal.sim & ./ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/FourbarVariants/SphericalAndUniversal/SphericalAndUniversal.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.954256906174123]