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.001286/0.001286, allocations: 117 kB / 18.41 MB, free: 4.559 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001212/0.001212, allocations: 204.5 kB / 19.36 MB, free: 3.617 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.311/1.311, allocations: 227.4 MB / 247.5 MB, free: 10.35 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2074/0.2074, allocations: 46.1 MB / 344.9 MB, free: 11.5 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001321/0.001321, allocations: 75.89 kB / 419 MB, free: 19.02 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1142/0.1155, allocations: 62.45 MB / 481.5 MB, free: 4.539 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical): time 0.01465/0.1302, allocations: 14.98 MB / 496.4 MB, free: 5.488 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.009773/0.14, allocations: 4.834 MB / 0.4895 GB, free: 0.6406 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001776/0.1418, allocations: 91.75 kB / 0.4896 GB, free: 0.5508 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005332/0.1472, allocations: 3.149 MB / 0.4927 GB, free: 13.39 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005392/0.1526, allocations: 2.521 MB / 0.4952 GB, free: 10.86 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002042/0.1547, allocations: 0.9788 MB / 0.4961 GB, free: 9.883 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.009152/0.1639, allocations: 7.055 MB / 0.503 GB, free: 2.816 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.2148/0.3786, allocations: 4.358 MB / 0.5073 GB, free: 15.11 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00418/0.3829, allocations: 2.217 MB / 0.5094 GB, free: 14.97 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00439/0.3873, allocations: 3.238 MB / 0.5126 GB, free: 14.64 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001139/0.3884, allocations: 489.9 kB / 0.5131 GB, free: 14.64 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003011/0.3914, allocations: 1.48 MB / 0.5145 GB, free: 14.64 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00344/0.3949, allocations: 2.837 MB / 0.5173 GB, free: 14.35 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004235/0.3991, allocations: 3.223 MB / 0.5204 GB, free: 13.19 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01221/0.4114, allocations: 10.37 MB / 0.5305 GB, free: 9.258 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.844e-06/0.4114, allocations: 1.312 kB / 0.5305 GB, free: 9.258 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.854e-06/0.4114, allocations: 0 / 0.5305 GB, free: 9.258 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0003462/0.4118, allocations: 1.125 kB / 0.5305 GB, free: 9.258 MB / 382.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.01631/0.4281, allocations: 7.262 MB / 0.5376 GB, free: 4.57 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.549e-05/0.4282, allocations: 13.77 kB / 0.5376 GB, free: 4.566 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01405/0.4422, allocations: 3.918 MB / 0.5415 GB, free: 2.559 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009262/0.4515, allocations: 4.141 MB / 0.5455 GB, free: 264 kB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001707/0.4517, allocations: 324.2 kB / 0.5458 GB, free: 168 kB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008979/0.4526, allocations: 437.7 kB / 0.5462 GB, free: 64 kB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0239/0.4765, allocations: 15.73 MB / 0.5616 GB, free: 4 kB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001468/0.4767, allocations: 60.23 kB / 0.5617 GB, free: 15.96 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005811/0.4773, allocations: 203.7 kB / 0.5619 GB, free: 15.82 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0046/0.4819, allocations: 3.217 MB / 0.565 GB, free: 12.66 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02677/0.5087, allocations: 14.16 MB / 0.5788 GB, free: 14.71 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06911/0.5778, allocations: 57.48 MB / 0.635 GB, free: 4.461 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0132/0.5911, allocations: 6.601 MB / 0.6414 GB, free: 13.62 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004566/0.5957, allocations: 3.745 MB / 0.6451 GB, free: 9.863 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02116/0.6168, allocations: 14.77 MB / 0.6595 GB, free: 10.66 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.899e-05/0.6169, allocations: 67.45 kB / 0.6596 GB, free: 10.59 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=292): time 7.314e-06/0.6169, allocations: 0 / 0.6596 GB, free: 10.59 MB / 0.4981 GB Notification: Performance of matching and sorting (n=342): time 0.1371/0.7541, allocations: 42.49 MB / 0.7011 GB, free: 176 kB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001121/0.7542, allocations: 218 kB / 0.7013 GB, free: 15.91 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008139/0.7624, allocations: 5.454 MB / 0.7066 GB, free: 10.47 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 0.000907/0.7633, allocations: 73.7 kB / 0.7067 GB, free: 10.39 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.003067/0.7664, allocations: 4.34 MB / 0.7109 GB, free: 6.059 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.001627/0.768, allocations: 1.27 MB / 0.7121 GB, free: 4.801 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002715/0.7708, allocations: 1.857 MB / 0.714 GB, free: 2.934 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 9.329e-05/0.7709, allocations: 309.1 kB / 0.7143 GB, free: 2.629 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.212/0.9829, allocations: 4.838 MB / 0.719 GB, free: 191.1 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01059/0.9935, allocations: 9.822 MB / 0.7286 GB, free: 183.2 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01732/1.011, allocations: 15.63 MB / 0.7438 GB, free: 171.8 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000274/1.011, allocations: 51.03 kB / 0.7439 GB, free: 171.8 MB / 0.545 GB Notification: Performance of matching and sorting (n=1190) (initialization): time 0.04061/1.052, allocations: 19.61 MB / 0.763 GB, free: 165.5 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001851/1.052, allocations: 76 kB / 0.7631 GB, free: 165.5 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002992/1.052, allocations: 180.2 kB / 0.7633 GB, free: 165.3 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02063/1.073, allocations: 5.938 MB / 0.7691 GB, free: 161.7 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007511/1.081, allocations: 2.124 MB / 0.7711 GB, free: 159.9 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02741/1.108, allocations: 26.15 MB / 0.7967 GB, free: 133.8 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007722/1.116, allocations: 0.5548 MB / 0.7972 GB, free: 133.3 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001763/1.118, allocations: 0.5093 MB / 0.7977 GB, free: 132.8 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.006357/1.124, allocations: 3.1 MB / 0.8008 GB, free: 129.8 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001124/1.125, allocations: 498.5 kB / 0.8012 GB, free: 129.5 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02638/1.151, allocations: 13.02 MB / 0.8139 GB, free: 116.4 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.294e-05/1.152, allocations: 58.56 kB / 0.814 GB, free: 116.4 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.41e-05/1.152, allocations: 8 kB / 0.814 GB, free: 116.4 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.536e-05/1.152, allocations: 15.95 kB / 0.814 GB, free: 116.4 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04483/1.196, allocations: 24.63 MB / 0.8381 GB, free: 91.36 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.625e-05/1.196, allocations: 12.36 kB / 0.8381 GB, free: 91.35 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002758/1.199, allocations: 0.5772 MB / 0.8386 GB, free: 90.77 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01709/1.216, allocations: 4.974 MB / 0.8435 GB, free: 85.79 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006764/1.217, allocations: 56 kB / 0.8436 GB, free: 85.73 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02175/1.239, allocations: 21.34 MB / 0.8644 GB, free: 64.2 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.581e-06/1.239, allocations: 8 kB / 0.8644 GB, free: 64.19 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03077/1.27, allocations: 17.59 MB / 0.8816 GB, free: 46.52 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001755/1.271, allocations: 0.5297 MB / 0.8821 GB, free: 45.97 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001569/1.273, allocations: 52 kB / 0.8821 GB, free: 45.92 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003785/1.277, allocations: 267.5 kB / 0.8824 GB, free: 45.66 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001175/1.278, allocations: 193.7 kB / 0.8826 GB, free: 45.47 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003196/1.278, allocations: 86.34 kB / 0.8827 GB, free: 45.39 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.005511/1.284, allocations: 3.39 MB / 0.886 GB, free: 42.02 MB / 0.545 GB Notification: Performance of sort global known variables: time 2.1e-07/1.284, allocations: 0 / 0.886 GB, free: 42.02 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.007776/1.292, allocations: 1.747 MB / 0.8877 GB, free: 40.28 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.0006509/1.292, allocations: 218.9 kB / 0.8879 GB, free: 40.07 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.0134/1.306, allocations: 11.05 MB / 0.8987 GB, free: 29.03 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 8.286e-06/1.306, allocations: 0 / 0.8987 GB, free: 29.03 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.004725/1.31, allocations: 4.134 MB / 0.9027 GB, free: 24.88 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00426/1.315, allocations: 0.6127 MB / 0.9033 GB, free: 24.29 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2371/1.552, allocations: 16.06 MB / 0.919 GB, free: 177.1 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007058/1.559, allocations: 4.615 MB / 0.9235 GB, free: 176.2 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.007442/1.566, allocations: 2.982 MB / 0.9264 GB, free: 176.2 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001644/1.568, allocations: 353 kB / 0.9268 GB, free: 176.2 MB / 0.545 GB Notification: Performance of SimCode: time 8.91e-07/1.568, allocations: 1.094 kB / 0.9268 GB, free: 176.2 MB / 0.545 GB Notification: Performance of Templates: time 0.1114/1.68, allocations: 73.98 MB / 0.999 GB, free: 123.1 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 -s gbode -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