Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical.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.UniversalSpherical,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|j1.phi|j1.w",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical") translateModel(ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|j1.phi|j1.w",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009721/0.0009723, allocations: 93.78 kB / 17.35 MB, free: 6.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001167/0.001167, allocations: 201.9 kB / 18.28 MB, free: 5.477 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.551/1.551, allocations: 227.8 MB / 246.8 MB, free: 11.46 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2475/0.2475, allocations: 46.19 MB / 345.3 MB, free: 11.34 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002952/0.0002952, allocations: 8 kB / 419.6 MB, free: 19.69 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1401/0.1404, allocations: 63.58 MB / 483.2 MB, free: 4.086 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical): time 0.2954/0.4359, allocations: 51.69 MB / 0.5223 GB, free: 10.07 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0252/0.4611, allocations: 11.02 MB / 0.5331 GB, free: 6.742 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01055/0.4717, allocations: 230.2 kB / 0.5333 GB, free: 6.707 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002235/0.474, allocations: 0.6059 MB / 0.5339 GB, free: 6.492 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006476/0.4805, allocations: 2.387 MB / 0.5362 GB, free: 5.711 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002061/0.4825, allocations: 0.9104 MB / 0.5371 GB, free: 5.406 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.01113/0.4937, allocations: 9.973 MB / 0.5469 GB, free: 0.8398 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.008751/0.5025, allocations: 5.797 MB / 0.5525 GB, free: 13.48 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004091/0.5066, allocations: 1.73 MB / 0.5542 GB, free: 11.82 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005336/0.512, allocations: 3.134 MB / 0.5573 GB, free: 8.867 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001186/0.5132, allocations: 243.9 kB / 0.5575 GB, free: 8.629 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003278/0.5165, allocations: 1.327 MB / 0.5588 GB, free: 7.355 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003556/0.52, allocations: 2.6 MB / 0.5613 GB, free: 4.762 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005969/0.526, allocations: 2.946 MB / 0.5642 GB, free: 1.805 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01359/0.5396, allocations: 9.615 MB / 0.5736 GB, free: 8.418 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.49e-06/0.5397, allocations: 4 kB / 0.5736 GB, free: 8.414 MB / 414.1 MB Notification: Performance of FrontEnd: time 2.294e-06/0.5397, allocations: 0 / 0.5736 GB, free: 8.414 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.000394/0.5401, allocations: 4 kB / 0.5736 GB, free: 8.41 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: 2242 * Number of variables: 2242 Notification: Performance of Generate backend data structure: time 0.01646/0.5566, allocations: 6.044 MB / 0.5795 GB, free: 2.328 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.739e-05/0.5566, allocations: 12.03 kB / 0.5795 GB, free: 2.316 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01892/0.5756, allocations: 4.02 MB / 0.5835 GB, free: 14.29 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01068/0.5863, allocations: 4.068 MB / 0.5874 GB, free: 10.2 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003406/0.5867, allocations: 314.2 kB / 0.5877 GB, free: 9.941 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001938/0.5886, allocations: 440.1 kB / 0.5881 GB, free: 9.57 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03493/0.6236, allocations: 15.75 MB / 0.6035 GB, free: 9.066 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002401/0.6238, allocations: 63.42 kB / 0.6036 GB, free: 9.004 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000872/0.6247, allocations: 202.8 kB / 0.6038 GB, free: 8.863 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005812/0.6305, allocations: 3.211 MB / 0.6069 GB, free: 5.668 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03061/0.6612, allocations: 14.2 MB / 0.6208 GB, free: 7.445 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09276/0.754, allocations: 57.79 MB / 0.6772 GB, free: 12.41 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01644/0.7705, allocations: 6.594 MB / 0.6837 GB, free: 5.562 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.006716/0.7773, allocations: 3.756 MB / 0.6873 GB, free: 1.797 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.03002/0.8073, allocations: 14.79 MB / 0.7018 GB, free: 2.562 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.341e-05/0.8075, allocations: 72.42 kB / 0.7018 GB, free: 2.484 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=292): time 8.005e-06/0.8075, allocations: 7.938 kB / 0.7018 GB, free: 2.477 MB / 0.5294 GB Notification: Performance of matching and sorting (n=342): time 0.4157/1.223, allocations: 42.75 MB / 0.7436 GB, free: 187.8 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001053/1.223, allocations: 213.3 kB / 0.7438 GB, free: 187.6 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007053/1.23, allocations: 5.456 MB / 0.7491 GB, free: 185.6 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 0.000808/1.231, allocations: 74.73 kB / 0.7492 GB, free: 185.6 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.002248/1.233, allocations: 4.342 MB / 0.7534 GB, free: 182.2 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.001659/1.235, allocations: 1.269 MB / 0.7547 GB, free: 181.2 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001038/1.236, allocations: 0.7751 MB / 0.7554 GB, free: 180.8 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 4.714e-05/1.236, allocations: 308.9 kB / 0.7557 GB, free: 180.5 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005789/1.242, allocations: 4.834 MB / 0.7604 GB, free: 178.1 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00797/1.25, allocations: 9.827 MB / 0.77 GB, free: 167.7 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01499/1.265, allocations: 15.62 MB / 0.7853 GB, free: 149.6 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001454/1.265, allocations: 52 kB / 0.7853 GB, free: 149.6 MB / 0.545 GB Notification: Performance of matching and sorting (n=1190) (initialization): time 0.04328/1.309, allocations: 19.63 MB / 0.8045 GB, free: 129.9 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001276/1.309, allocations: 80.19 kB / 0.8046 GB, free: 129.8 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002392/1.309, allocations: 176 kB / 0.8048 GB, free: 129.7 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02344/1.332, allocations: 5.974 MB / 0.8106 GB, free: 123.7 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008368/1.341, allocations: 2.121 MB / 0.8127 GB, free: 121.6 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02991/1.371, allocations: 24.79 MB / 0.8369 GB, free: 96.51 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007937/1.379, allocations: 0.5634 MB / 0.8374 GB, free: 95.95 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001523/1.38, allocations: 0.5078 MB / 0.8379 GB, free: 95.44 MB / 0.545 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 789 * Number of states: 0 () * Number of discrete variables: 45 (fixedFrame4.color_x[3],fixedFrame4.color_x[2],fixedFrame4.color_x[1],b3.color[3],b3.color[2],b3.color[1],universalSpherical.cylinderColor[3],universalSpherical.cylinderColor[2],universalSpherical.cylinderColor[1],universalSpherical.sphereColor[3],universalSpherical.sphereColor[2],universalSpherical.sphereColor[1],universalSpherical.rodColor[3],universalSpherical.rodColor[2],universalSpherical.rodColor[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 (1099): * Single equations (assignments): 1091 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,42,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.006004/1.386, allocations: 3.102 MB / 0.8409 GB, free: 92.32 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001523/1.388, allocations: 497.5 kB / 0.8414 GB, free: 91.83 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03302/1.421, allocations: 13.03 MB / 0.8541 GB, free: 78.73 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.234e-05/1.421, allocations: 54.62 kB / 0.8542 GB, free: 78.68 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.53e-05/1.421, allocations: 12 kB / 0.8542 GB, free: 78.67 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.881e-05/1.421, allocations: 15.89 kB / 0.8542 GB, free: 78.66 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0544/1.476, allocations: 24.77 MB / 0.8784 GB, free: 53.42 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.362e-05/1.476, allocations: 8 kB / 0.8784 GB, free: 53.41 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003253/1.479, allocations: 0.5772 MB / 0.879 GB, free: 52.83 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01975/1.499, allocations: 4.998 MB / 0.8839 GB, free: 47.82 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008444/1.5, allocations: 64.7 kB / 0.8839 GB, free: 47.76 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02321/1.523, allocations: 19.99 MB / 0.9034 GB, free: 27.52 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.111e-06/1.523, allocations: 7.938 kB / 0.9034 GB, free: 27.51 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.3394/1.862, allocations: 17.6 MB / 0.9206 GB, free: 175.7 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001838/1.864, allocations: 0.5435 MB / 0.9212 GB, free: 175.6 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001823/1.866, allocations: 57.44 kB / 0.9212 GB, free: 175.6 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00417/1.87, allocations: 263.1 kB / 0.9215 GB, free: 175.6 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001127/1.871, allocations: 203.8 kB / 0.9217 GB, free: 175.6 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003228/1.872, allocations: 85.91 kB / 0.9217 GB, free: 175.6 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.007537/1.879, allocations: 3.392 MB / 0.9251 GB, free: 175.4 MB / 0.545 GB Notification: Performance of sort global known variables: time 2.2e-07/1.879, allocations: 1.438 kB / 0.9251 GB, free: 175.4 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.01083/1.89, allocations: 1.734 MB / 0.9268 GB, free: 175.2 MB / 0.545 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 (257): * Single equations (assignments): 249 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,38,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001145/1.891, allocations: 212.9 kB / 0.927 GB, free: 175.1 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.01928/1.911, allocations: 11 MB / 0.9377 GB, free: 171 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 8.977e-06/1.911, allocations: 0 / 0.9377 GB, free: 171 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.005657/1.916, allocations: 4.13 MB / 0.9417 GB, free: 169.2 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007696/1.924, allocations: 0.592 MB / 0.9423 GB, free: 169 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0267/1.951, allocations: 19.32 MB / 0.9612 GB, free: 159.2 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004898/1.956, allocations: 4.623 MB / 0.9657 GB, free: 156.8 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.006903/1.963, allocations: 2.976 MB / 0.9686 GB, free: 154.9 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001631/1.964, allocations: 354.6 kB / 0.9689 GB, free: 154.5 MB / 0.545 GB Notification: Performance of SimCode: time 1.132e-06/1.964, allocations: 0 / 0.9689 GB, free: 154.5 MB / 0.545 GB Notification: Performance of Templates: time 0.1114/2.076, allocations: 76.8 MB / 1.044 GB, free: 80.07 MB / 0.545 GB make -j1 -f ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical.makefile (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical.sim & ./ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/FourbarVariants/UniversalSpherical/UniversalSpherical.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches