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.001124/0.001124, allocations: 113 kB / 18.45 MB, free: 4.645 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00127/0.00127, allocations: 212.9 kB / 19.4 MB, free: 3.695 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.374/1.374, allocations: 227.4 MB / 247.6 MB, free: 10.57 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2183/0.2183, allocations: 46.11 MB / 345 MB, free: 11.54 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00155/0.00155, allocations: 79.88 kB / 482 MB, free: 4.105 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3996/0.4012, allocations: 62.43 MB / 0.5316 GB, free: 13.65 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical): time 0.01646/0.4177, allocations: 15 MB / 0.5463 GB, free: 1.859 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.01119/0.4289, allocations: 4.828 MB / 0.551 GB, free: 13.88 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003581/0.4326, allocations: 91.75 kB / 0.5511 GB, free: 13.79 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006526/0.4392, allocations: 3.157 MB / 0.5542 GB, free: 10.62 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007954/0.4472, allocations: 2.517 MB / 0.5566 GB, free: 8.098 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002611/0.4498, allocations: 0.9788 MB / 0.5576 GB, free: 7.117 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.01037/0.4602, allocations: 7.04 MB / 0.5645 GB, free: 68 kB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005976/0.4662, allocations: 4.379 MB / 0.5687 GB, free: 11.62 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004208/0.4704, allocations: 2.215 MB / 0.5709 GB, free: 9.398 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005082/0.4756, allocations: 3.248 MB / 0.5741 GB, free: 6.141 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00166/0.4772, allocations: 484 kB / 0.5745 GB, free: 5.668 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003664/0.4809, allocations: 1.482 MB / 0.576 GB, free: 4.184 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00341/0.4844, allocations: 2.868 MB / 0.5788 GB, free: 1.309 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004965/0.4893, allocations: 3.227 MB / 0.5819 GB, free: 14.06 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01312/0.5025, allocations: 10.37 MB / 0.5921 GB, free: 3.66 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.031e-05/0.5025, allocations: 4 kB / 0.5921 GB, free: 3.656 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.244e-06/0.5025, allocations: 0 / 0.5921 GB, free: 3.656 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0003056/0.5029, allocations: 0 / 0.5921 GB, free: 3.656 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: 2242 * Number of variables: 2242 Notification: Performance of Generate backend data structure: time 0.0185/0.5214, allocations: 7.272 MB / 0.5992 GB, free: 12.3 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.652e-05/0.5214, allocations: 8.031 kB / 0.5992 GB, free: 12.29 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01712/0.5385, allocations: 3.927 MB / 0.603 GB, free: 8.348 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0103/0.5489, allocations: 4.13 MB / 0.607 GB, free: 4.156 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003784/0.5493, allocations: 320.4 kB / 0.6073 GB, free: 3.84 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002185/0.5515, allocations: 439.5 kB / 0.6078 GB, free: 3.41 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03154/0.5831, allocations: 15.73 MB / 0.6231 GB, free: 2.75 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002507/0.5834, allocations: 55.53 kB / 0.6232 GB, free: 2.695 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001757/0.5851, allocations: 203.8 kB / 0.6234 GB, free: 2.496 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005639/0.5908, allocations: 3.22 MB / 0.6265 GB, free: 15.27 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02862/0.6195, allocations: 14.16 MB / 0.6403 GB, free: 1.082 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07917/0.6987, allocations: 57.51 MB / 0.6965 GB, free: 6.008 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01415/0.7129, allocations: 6.607 MB / 0.703 GB, free: 15.15 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005051/0.718, allocations: 3.747 MB / 0.7066 GB, free: 11.39 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.329/1.047, allocations: 14.75 MB / 0.721 GB, free: 160.5 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.744e-05/1.047, allocations: 68.31 kB / 0.7211 GB, free: 160.5 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=292): time 6.843e-06/1.047, allocations: 0 / 0.7211 GB, free: 160.5 MB / 0.5606 GB Notification: Performance of matching and sorting (n=342): time 0.147/1.194, allocations: 42.49 MB / 0.7626 GB, free: 134.9 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.554e-05/1.194, allocations: 210 kB / 0.7628 GB, free: 134.6 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007189/1.201, allocations: 5.465 MB / 0.7681 GB, free: 129.2 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 0.0008542/1.202, allocations: 69.7 kB / 0.7682 GB, free: 129.1 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.001999/1.204, allocations: 4.346 MB / 0.7724 GB, free: 124.8 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.001775/1.206, allocations: 1.264 MB / 0.7737 GB, free: 123.5 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002988/1.209, allocations: 1.855 MB / 0.7755 GB, free: 121.6 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 5.815e-05/1.209, allocations: 305.1 kB / 0.7758 GB, free: 121.3 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005751/1.215, allocations: 4.835 MB / 0.7805 GB, free: 116.5 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008418/1.223, allocations: 9.829 MB / 0.7901 GB, free: 104.2 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01626/1.24, allocations: 15.62 MB / 0.8054 GB, free: 86.14 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001766/1.24, allocations: 48 kB / 0.8054 GB, free: 86.09 MB / 0.5606 GB Notification: Performance of matching and sorting (n=1190) (initialization): time 0.04347/1.283, allocations: 19.62 MB / 0.8246 GB, free: 66.43 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001032/1.284, allocations: 76 kB / 0.8246 GB, free: 66.36 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001777/1.284, allocations: 176 kB / 0.8248 GB, free: 66.18 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02208/1.306, allocations: 5.946 MB / 0.8306 GB, free: 60.23 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00733/1.313, allocations: 2.123 MB / 0.8327 GB, free: 58.11 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02923/1.342, allocations: 26.17 MB / 0.8582 GB, free: 31.65 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007611/1.35, allocations: 0.5656 MB / 0.8588 GB, free: 31.09 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001525/1.352, allocations: 0.5074 MB / 0.8593 GB, free: 30.58 MB / 0.5606 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.005291/1.357, allocations: 3.094 MB / 0.8623 GB, free: 27.48 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00116/1.358, allocations: 497.5 kB / 0.8628 GB, free: 26.98 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04049/1.399, allocations: 13.02 MB / 0.8755 GB, free: 13.89 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001458/1.399, allocations: 59.97 kB / 0.8755 GB, free: 13.84 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.015e-05/1.399, allocations: 8 kB / 0.8755 GB, free: 13.83 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.894e-05/1.399, allocations: 19.94 kB / 0.8756 GB, free: 13.81 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1004/1.499, allocations: 24.6 MB / 0.8996 GB, free: 4.727 MB / 0.5763 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.741e-05/1.5, allocations: 8 kB / 0.8996 GB, free: 4.719 MB / 0.5763 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006204/1.506, allocations: 0.5856 MB / 0.9002 GB, free: 4.133 MB / 0.5763 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.03915/1.545, allocations: 4.966 MB / 0.905 GB, free: 15.16 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001128/1.546, allocations: 63.98 kB / 0.9051 GB, free: 15.09 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.05457/1.601, allocations: 21.34 MB / 0.9259 GB, free: 9.48 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.461e-05/1.601, allocations: 17.66 kB / 0.9259 GB, free: 9.465 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04158/1.642, allocations: 17.59 MB / 0.9431 GB, free: 7.711 MB / 0.6231 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001695/1.644, allocations: 0.5297 MB / 0.9436 GB, free: 7.156 MB / 0.6231 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002068/1.646, allocations: 59.73 kB / 0.9437 GB, free: 7.102 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004206/1.65, allocations: 263.6 kB / 0.9439 GB, free: 6.844 MB / 0.6231 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001198/1.652, allocations: 197.7 kB / 0.9441 GB, free: 6.652 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006179/1.652, allocations: 83.94 kB / 0.9442 GB, free: 6.57 MB / 0.6231 GB Notification: Performance of sorting global known variables: time 0.007011/1.659, allocations: 3.394 MB / 0.9475 GB, free: 3.195 MB / 0.6231 GB Notification: Performance of sort global known variables: time 1.6e-07/1.659, allocations: 0 / 0.9475 GB, free: 3.195 MB / 0.6231 GB Notification: Performance of remove unused functions: time 0.3785/2.038, allocations: 1.742 MB / 0.9492 GB, free: 206.6 MB / 0.6231 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.001386/2.039, allocations: 199.3 kB / 0.9494 GB, free: 206.5 MB / 0.6231 GB Notification: Performance of simCode: created initialization part: time 0.02126/2.061, allocations: 11.05 MB / 0.9602 GB, free: 204.2 MB / 0.6231 GB Notification: Performance of simCode: created event and clocks part: time 1.324e-05/2.061, allocations: 0 / 0.9602 GB, free: 204.2 MB / 0.6231 GB Notification: Performance of simCode: created simulation system equations: time 0.005857/2.066, allocations: 4.138 MB / 0.9642 GB, free: 202.5 MB / 0.6231 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004061/2.071, allocations: 0.6178 MB / 0.9648 GB, free: 202.2 MB / 0.6231 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02544/2.096, allocations: 16.68 MB / 0.9811 GB, free: 195.2 MB / 0.6231 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004825/2.101, allocations: 4.587 MB / 0.9856 GB, free: 193.6 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002149/2.103, allocations: 415.8 kB / 0.986 GB, free: 193.3 MB / 0.6231 GB Notification: Performance of SimCode: time 2.425e-06/2.103, allocations: 0 / 0.986 GB, free: 193.3 MB / 0.6231 GB Notification: Performance of Templates: time 0.1549/2.258, allocations: 150.6 MB / 1.133 GB, free: 45.43 MB / 0.6231 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