Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|j1.phi|j1.w",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal") translateModel(ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|j1.phi|j1.w",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001225/0.001225, allocations: 117.8 kB / 17.79 MB, free: 5.305 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001286/0.001286, allocations: 199.8 kB / 18.73 MB, free: 4.363 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.437/1.437, allocations: 227.4 MB / 246.9 MB, free: 10.54 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.222/0.222, allocations: 46.11 MB / 344.3 MB, free: 11.5 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001468/0.001468, allocations: 79.88 kB / 481.3 MB, free: 4.082 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4106/0.4121, allocations: 62.44 MB / 0.531 GB, free: 13.62 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal): time 0.01486/0.427, allocations: 13.37 MB / 0.544 GB, free: 3.109 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.01162/0.4387, allocations: 4.808 MB / 0.5487 GB, free: 15.33 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003973/0.4427, allocations: 90.5 kB / 0.5488 GB, free: 15.31 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.007713/0.4505, allocations: 3.728 MB / 0.5525 GB, free: 11.71 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007314/0.4578, allocations: 2.167 MB / 0.5546 GB, free: 9.535 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002827/0.4607, allocations: 1.068 MB / 0.5556 GB, free: 8.465 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.009666/0.4703, allocations: 6.657 MB / 0.5621 GB, free: 1.797 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006473/0.4768, allocations: 4.498 MB / 0.5665 GB, free: 13.23 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004045/0.4809, allocations: 2.025 MB / 0.5685 GB, free: 11.2 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004693/0.4856, allocations: 2.746 MB / 0.5712 GB, free: 8.445 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001563/0.4872, allocations: 432 kB / 0.5716 GB, free: 8.023 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003496/0.4907, allocations: 1.436 MB / 0.573 GB, free: 6.586 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003343/0.4941, allocations: 2.482 MB / 0.5754 GB, free: 4.098 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004348/0.4984, allocations: 2.758 MB / 0.5781 GB, free: 1.324 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01096/0.5094, allocations: 8.762 MB / 0.5867 GB, free: 8.535 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.314e-06/0.5095, allocations: 0 / 0.5867 GB, free: 8.535 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.936e-06/0.5095, allocations: 8 kB / 0.5867 GB, free: 8.527 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0004794/0.51, allocations: 0 / 0.5867 GB, free: 8.527 MB / 446.1 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.02153/0.5315, allocations: 6.238 MB / 0.5928 GB, free: 2.215 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.14e-05/0.5316, allocations: 12.03 kB / 0.5928 GB, free: 2.203 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01228/0.5439, allocations: 2.517 MB / 0.5952 GB, free: 15.68 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01079/0.5547, allocations: 3.949 MB / 0.5991 GB, free: 11.67 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003395/0.5551, allocations: 283.7 kB / 0.5994 GB, free: 11.39 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002098/0.5572, allocations: 387.6 kB / 0.5997 GB, free: 11.01 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02496/0.5822, allocations: 12 MB / 0.6115 GB, free: 14.22 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002139/0.5824, allocations: 59.44 kB / 0.6115 GB, free: 14.16 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001118/0.5835, allocations: 179.8 kB / 0.6117 GB, free: 13.98 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003598/0.5872, allocations: 2.136 MB / 0.6138 GB, free: 11.85 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02201/0.6092, allocations: 10.37 MB / 0.6239 GB, free: 1.461 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06945/0.6787, allocations: 47.27 MB / 0.6701 GB, free: 0.8438 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01629/0.695, allocations: 5.831 MB / 0.6758 GB, free: 10.86 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004258/0.6993, allocations: 2.973 MB / 0.6787 GB, free: 7.879 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01622/0.7156, allocations: 8.861 MB / 0.6873 GB, free: 14.85 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.632e-05/0.7157, allocations: 59.86 kB / 0.6874 GB, free: 14.78 MB / 0.545 GB Notification: Performance of pre-optimization done (n=206): time 6.092e-06/0.7157, allocations: 0 / 0.6874 GB, free: 14.78 MB / 0.545 GB Notification: Performance of matching and sorting (n=262): time 0.4736/1.189, allocations: 34.92 MB / 0.7215 GB, free: 164.5 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000108/1.189, allocations: 212.5 kB / 0.7217 GB, free: 164.2 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00799/1.197, allocations: 4.761 MB / 0.7263 GB, free: 162.7 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 0.0007401/1.198, allocations: 62.95 kB / 0.7264 GB, free: 162.7 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.00239/1.201, allocations: 3.545 MB / 0.7298 GB, free: 160.5 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.001283/1.202, allocations: 0.973 MB / 0.7308 GB, free: 159.8 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001958/1.204, allocations: 1.423 MB / 0.7322 GB, free: 159.2 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 5.99e-05/1.204, allocations: 307.2 kB / 0.7325 GB, free: 158.9 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003978/1.208, allocations: 3.172 MB / 0.7356 GB, free: 157.7 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004961/1.213, allocations: 7.045 MB / 0.7425 GB, free: 151.4 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01006/1.223, allocations: 10.94 MB / 0.7531 GB, free: 142.2 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.166e-05/1.223, allocations: 38.06 kB / 0.7532 GB, free: 142.2 MB / 0.5606 GB Notification: Performance of matching and sorting (n=914) (initialization): time 0.02594/1.249, allocations: 13.74 MB / 0.7666 GB, free: 128.7 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002033/1.249, allocations: 66.5 kB / 0.7667 GB, free: 128.7 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002575/1.25, allocations: 132 kB / 0.7668 GB, free: 128.5 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01208/1.262, allocations: 4.39 MB / 0.7711 GB, free: 124.1 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005098/1.267, allocations: 1.485 MB / 0.7725 GB, free: 122.7 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03445/1.301, allocations: 29.04 MB / 0.8009 GB, free: 93.25 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005997/1.307, allocations: 403.3 kB / 0.8013 GB, free: 92.85 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001267/1.309, allocations: 411.9 kB / 0.8017 GB, free: 92.45 MB / 0.5606 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 612 * 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 (798): * Single equations (assignments): 792 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(8,50,50.0%), (2,12,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,21)} Notification: Performance of prepare postOptimizeDAE: time 0.004488/1.313, allocations: 2.473 MB / 0.8041 GB, free: 89.96 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001193/1.314, allocations: 434.4 kB / 0.8045 GB, free: 89.54 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01638/1.331, allocations: 8.482 MB / 0.8128 GB, free: 81.03 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.682e-05/1.331, allocations: 29.25 kB / 0.8128 GB, free: 81 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.127e-05/1.331, allocations: 19.88 kB / 0.8128 GB, free: 80.98 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.88e-05/1.331, allocations: 11.95 kB / 0.8128 GB, free: 80.97 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03197/1.363, allocations: 16.92 MB / 0.8294 GB, free: 63.95 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.618e-05/1.363, allocations: 4 kB / 0.8294 GB, free: 63.95 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001473/1.364, allocations: 299.5 kB / 0.8296 GB, free: 63.65 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01031/1.375, allocations: 3.968 MB / 0.8335 GB, free: 59.67 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005439/1.375, allocations: 56 kB / 0.8336 GB, free: 59.62 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0311/1.406, allocations: 27.77 MB / 0.8607 GB, free: 31.42 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.153e-06/1.407, allocations: 15.92 kB / 0.8607 GB, free: 31.41 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02014/1.427, allocations: 12.44 MB / 0.8729 GB, free: 18.82 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00176/1.428, allocations: 495.3 kB / 0.8733 GB, free: 18.31 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001363/1.43, allocations: 48 kB / 0.8734 GB, free: 18.27 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002822/1.433, allocations: 179.7 kB / 0.8735 GB, free: 18.09 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007867/1.434, allocations: 190.1 kB / 0.8737 GB, free: 17.91 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002599/1.434, allocations: 71.98 kB / 0.8738 GB, free: 17.84 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.00521/1.439, allocations: 3.001 MB / 0.8767 GB, free: 14.84 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.3e-07/1.439, allocations: 0 / 0.8767 GB, free: 14.84 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.009056/1.448, allocations: 1.454 MB / 0.8782 GB, free: 13.39 MB / 0.5606 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 23 * 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 (158): * Single equations (assignments): 152 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(8,43,50.0%), (2,9,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,25)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0008055/1.449, allocations: 189.5 kB / 0.8783 GB, free: 13.2 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.01276/1.462, allocations: 8.468 MB / 0.8866 GB, free: 4.723 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 1.11e-05/1.462, allocations: 8.25 kB / 0.8866 GB, free: 4.715 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.005426/1.467, allocations: 3.534 MB / 0.8901 GB, free: 1.148 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005073/1.472, allocations: 0.5696 MB / 0.8906 GB, free: 0.5781 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02747/1.5, allocations: 12.42 MB / 0.9027 GB, free: 4.086 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007114/1.507, allocations: 3.918 MB / 0.9066 GB, free: 136 kB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.005461/1.512, allocations: 2.003 MB / 0.9085 GB, free: 14.12 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001204/1.514, allocations: 275.3 kB / 0.9088 GB, free: 13.86 MB / 0.5919 GB Notification: Performance of SimCode: time 1.763e-06/1.514, allocations: 4 kB / 0.9088 GB, free: 13.85 MB / 0.5919 GB Notification: Performance of Templates: time 0.4569/1.971, allocations: 69.76 MB / 0.9769 GB, free: 200.7 MB / 0.6231 GB make -j1 -f ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal.makefile (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal.sim & ./ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches