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.001716/0.001716, allocations: 104.5 kB / 17.85 MB, free: 5.656 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002336/0.002336, allocations: 205.8 kB / 18.79 MB, free: 4.727 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 2.271/2.271, allocations: 227.4 MB / 246.9 MB, free: 9.043 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.4434/0.4434, allocations: 46.11 MB / 344.3 MB, free: 11.61 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002846/0.002846, allocations: 76.94 kB / 417.5 MB, free: 20.2 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1823/0.1851, allocations: 62.44 MB / 479.9 MB, free: 5.746 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical): time 0.4367/0.6219, allocations: 53.1 MB / 0.5205 GB, free: 10.07 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.04156/0.6635, allocations: 11.09 MB / 0.5314 GB, free: 6.43 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.02187/0.6854, allocations: 231.4 kB / 0.5316 GB, free: 6.395 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01213/0.6977, allocations: 3.115 MB / 0.5346 GB, free: 5.457 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01304/0.7108, allocations: 2.373 MB / 0.5369 GB, free: 4.684 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004662/0.7155, allocations: 0.9123 MB / 0.5378 GB, free: 4.375 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.01934/0.7349, allocations: 9.971 MB / 0.5476 GB, free: 15.66 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.008117/0.7431, allocations: 4.285 MB / 0.5518 GB, free: 12.66 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006208/0.7494, allocations: 1.967 MB / 0.5537 GB, free: 10.76 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007061/0.7565, allocations: 3.424 MB / 0.557 GB, free: 7.52 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002151/0.7587, allocations: 332 kB / 0.5573 GB, free: 7.195 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004601/0.7633, allocations: 1.414 MB / 0.5587 GB, free: 5.836 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004325/0.7677, allocations: 2.723 MB / 0.5614 GB, free: 3.117 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005836/0.7736, allocations: 3.087 MB / 0.5644 GB, free: 24 kB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01043/0.784, allocations: 8.092 MB / 0.5723 GB, free: 8.16 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.484e-06/0.7841, allocations: 4 kB / 0.5723 GB, free: 8.156 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.863e-06/0.7841, allocations: 0 / 0.5723 GB, free: 8.156 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0003561/0.7845, allocations: 0 / 0.5723 GB, free: 8.156 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.02182/0.8063, allocations: 7.284 MB / 0.5794 GB, free: 0.9492 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.822e-05/0.8063, allocations: 8.031 kB / 0.5794 GB, free: 0.9414 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02684/0.8332, allocations: 3.922 MB / 0.5832 GB, free: 13.01 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01309/0.8463, allocations: 4.066 MB / 0.5872 GB, free: 8.918 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004451/0.8468, allocations: 319.9 kB / 0.5875 GB, free: 8.66 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002644/0.8495, allocations: 432.1 kB / 0.5879 GB, free: 8.297 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03718/0.8867, allocations: 15.73 MB / 0.6033 GB, free: 7.809 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000363/0.8871, allocations: 55.53 kB / 0.6034 GB, free: 7.754 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002565/0.8897, allocations: 204.7 kB / 0.6036 GB, free: 7.613 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.006619/0.8964, allocations: 3.22 MB / 0.6067 GB, free: 4.41 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03609/0.9325, allocations: 14.17 MB / 0.6205 GB, free: 6.207 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1154/1.048, allocations: 57.76 MB / 0.6769 GB, free: 10.98 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02744/1.075, allocations: 6.598 MB / 0.6834 GB, free: 4.129 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.01055/1.086, allocations: 3.756 MB / 0.6871 GB, free: 368 kB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.03855/1.125, allocations: 14.79 MB / 0.7015 GB, free: 1.023 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.497e-05/1.125, allocations: 68.48 kB / 0.7016 GB, free: 0.9492 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=292): time 9.338e-06/1.125, allocations: 4 kB / 0.7016 GB, free: 0.9453 MB / 0.5294 GB Notification: Performance of matching and sorting (n=342): time 0.7269/1.852, allocations: 42.46 MB / 0.743 GB, free: 188.5 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001838/1.852, allocations: 214.3 kB / 0.7432 GB, free: 188.3 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01932/1.871, allocations: 5.459 MB / 0.7486 GB, free: 186.4 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 0.001634/1.873, allocations: 72.86 kB / 0.7486 GB, free: 186.3 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.005946/1.879, allocations: 4.346 MB / 0.7529 GB, free: 182.7 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.003285/1.882, allocations: 1.272 MB / 0.7541 GB, free: 181.6 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.01138/1.894, allocations: 1.853 MB / 0.7559 GB, free: 180.6 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001372/1.894, allocations: 308.9 kB / 0.7562 GB, free: 180.3 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01346/1.908, allocations: 4.835 MB / 0.7609 GB, free: 177.9 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01893/1.927, allocations: 9.825 MB / 0.7705 GB, free: 166.2 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02867/1.955, allocations: 15.62 MB / 0.7858 GB, free: 148.2 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002948/1.956, allocations: 52 kB / 0.7858 GB, free: 148.1 MB / 0.545 GB Notification: Performance of matching and sorting (n=1190) (initialization): time 0.0763/2.032, allocations: 19.62 MB / 0.805 GB, free: 128.4 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003958/2.032, allocations: 80 kB / 0.8051 GB, free: 128.4 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0004812/2.033, allocations: 172 kB / 0.8052 GB, free: 128.2 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02266/2.056, allocations: 5.936 MB / 0.811 GB, free: 122.2 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008613/2.064, allocations: 2.125 MB / 0.8131 GB, free: 120.1 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03384/2.098, allocations: 24.77 MB / 0.8373 GB, free: 95.09 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01061/2.109, allocations: 0.5695 MB / 0.8379 GB, free: 94.52 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00271/2.112, allocations: 0.5155 MB / 0.8384 GB, free: 94 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.00935/2.121, allocations: 3.099 MB / 0.8414 GB, free: 90.9 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002733/2.124, allocations: 0.4937 MB / 0.8419 GB, free: 90.4 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03894/2.163, allocations: 13 MB / 0.8546 GB, free: 77.33 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001441/2.163, allocations: 55.28 kB / 0.8546 GB, free: 77.28 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.81e-05/2.163, allocations: 8 kB / 0.8546 GB, free: 77.27 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001397/2.163, allocations: 19.88 kB / 0.8547 GB, free: 77.25 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.06188/2.225, allocations: 24.69 MB / 0.8788 GB, free: 52.11 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.576e-05/2.225, allocations: 4.594 kB / 0.8788 GB, free: 52.1 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004165/2.229, allocations: 0.5889 MB / 0.8793 GB, free: 51.51 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01995/2.249, allocations: 4.97 MB / 0.8842 GB, free: 46.53 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001054/2.251, allocations: 55.94 kB / 0.8842 GB, free: 46.48 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02606/2.277, allocations: 19.97 MB / 0.9038 GB, free: 26.24 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.268e-05/2.277, allocations: 15.44 kB / 0.9038 GB, free: 26.23 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.5045/2.781, allocations: 17.57 MB / 0.9209 GB, free: 176.3 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003194/2.784, allocations: 0.5271 MB / 0.9214 GB, free: 176.2 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003605/2.788, allocations: 65.19 kB / 0.9215 GB, free: 176.2 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00859/2.797, allocations: 263.9 kB / 0.9218 GB, free: 176.2 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002494/2.799, allocations: 201.7 kB / 0.9219 GB, free: 176.1 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001141/2.801, allocations: 90.05 kB / 0.922 GB, free: 176.1 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.01476/2.815, allocations: 3.392 MB / 0.9253 GB, free: 175 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.412e-06/2.815, allocations: 0 / 0.9253 GB, free: 175 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.02108/2.837, allocations: 1.739 MB / 0.927 GB, free: 174.8 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.002183/2.839, allocations: 205.2 kB / 0.9272 GB, free: 174.7 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.03821/2.877, allocations: 11 MB / 0.938 GB, free: 170.6 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 2.228e-05/2.877, allocations: 1.25 kB / 0.938 GB, free: 170.6 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.01257/2.89, allocations: 4.132 MB / 0.942 GB, free: 168.9 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01566/2.905, allocations: 0.5928 MB / 0.9426 GB, free: 168.6 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06133/2.967, allocations: 19.83 MB / 0.962 GB, free: 158.6 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01494/2.982, allocations: 4.6 MB / 0.9665 GB, free: 155.6 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003793/2.986, allocations: 418.4 kB / 0.9669 GB, free: 155.2 MB / 0.545 GB Notification: Performance of SimCode: time 1.092e-06/2.986, allocations: 4 kB / 0.9669 GB, free: 155.2 MB / 0.545 GB Notification: Performance of Templates: time 0.3128/3.299, allocations: 149.6 MB / 1.113 GB, free: 8.176 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/FourbarVariants/UniversalSpherical/UniversalSpherical.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches