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.0007363/0.0007363, allocations: 96.66 kB / 18.01 MB, free: 5.602 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0008591/0.0008591, allocations: 204.1 kB / 18.93 MB, free: 4.715 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.343/1.343, allocations: 227.7 MB / 247.5 MB, free: 11.41 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1931/0.1931, allocations: 46.18 MB / 345.9 MB, free: 11.49 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002926/0.0002927, allocations: 11.98 kB / 420.2 MB, free: 19.77 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1172/0.1175, allocations: 63.56 MB / 483.7 MB, free: 4.184 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical): time 0.3068/0.4243, allocations: 51.69 MB / 0.5229 GB, free: 10.05 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.02858/0.453, allocations: 11.01 MB / 0.5336 GB, free: 6.766 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01261/0.4656, allocations: 229.3 kB / 0.5338 GB, free: 6.73 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002196/0.4678, allocations: 0.6066 MB / 0.5344 GB, free: 6.516 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007679/0.4755, allocations: 2.391 MB / 0.5368 GB, free: 5.73 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002314/0.4779, allocations: 0.9049 MB / 0.5377 GB, free: 5.43 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.01241/0.4903, allocations: 9.978 MB / 0.5474 GB, free: 0.8828 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.008799/0.4991, allocations: 5.786 MB / 0.5531 GB, free: 13.54 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004313/0.5035, allocations: 1.736 MB / 0.5547 GB, free: 11.87 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005501/0.509, allocations: 3.145 MB / 0.5578 GB, free: 8.91 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001515/0.5106, allocations: 236 kB / 0.558 GB, free: 8.68 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003887/0.5145, allocations: 1.331 MB / 0.5593 GB, free: 7.402 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003956/0.5185, allocations: 2.597 MB / 0.5619 GB, free: 4.809 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005698/0.5242, allocations: 2.945 MB / 0.5648 GB, free: 1.852 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01055/0.5348, allocations: 7.9 MB / 0.5725 GB, free: 10.18 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.5e-06/0.5348, allocations: 0 / 0.5725 GB, free: 10.18 MB / 414.1 MB Notification: Performance of FrontEnd: time 2.925e-06/0.5348, allocations: 0 / 0.5725 GB, free: 10.18 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0004056/0.5352, allocations: 0 / 0.5725 GB, free: 10.18 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.01627/0.5515, allocations: 6.048 MB / 0.5784 GB, free: 4.09 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.979e-05/0.5516, allocations: 12.03 kB / 0.5784 GB, free: 4.078 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01787/0.5694, allocations: 4.019 MB / 0.5823 GB, free: 48 kB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01093/0.5804, allocations: 4.063 MB / 0.5863 GB, free: 11.96 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004982/0.581, allocations: 320.3 kB / 0.5866 GB, free: 11.7 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002701/0.5837, allocations: 432.1 kB / 0.587 GB, free: 11.34 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03457/0.6183, allocations: 15.76 MB / 0.6024 GB, free: 10.83 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003006/0.6186, allocations: 55.44 kB / 0.6024 GB, free: 10.77 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001691/0.6204, allocations: 211.6 kB / 0.6026 GB, free: 10.62 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005631/0.626, allocations: 3.222 MB / 0.6058 GB, free: 7.422 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02913/0.6552, allocations: 14.18 MB / 0.6196 GB, free: 9.207 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08409/0.7393, allocations: 57.8 MB / 0.6761 GB, free: 14.16 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01697/0.7563, allocations: 6.588 MB / 0.6825 GB, free: 7.32 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.008157/0.7645, allocations: 3.751 MB / 0.6862 GB, free: 3.559 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.03184/0.7964, allocations: 14.79 MB / 0.7006 GB, free: 4.32 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.925e-05/0.7965, allocations: 64.5 kB / 0.7007 GB, free: 4.25 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=292): time 1.007e-05/0.7966, allocations: 0 / 0.7007 GB, free: 4.25 MB / 0.5294 GB Notification: Performance of matching and sorting (n=342): time 0.3999/1.196, allocations: 42.75 MB / 0.7424 GB, free: 187.4 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.441e-05/1.197, allocations: 213.6 kB / 0.7426 GB, free: 187.1 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00722/1.204, allocations: 5.46 MB / 0.748 GB, free: 185.2 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 0.0009141/1.205, allocations: 73.11 kB / 0.748 GB, free: 185.1 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.002483/1.207, allocations: 4.34 MB / 0.7523 GB, free: 181.8 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.002603/1.21, allocations: 1.271 MB / 0.7535 GB, free: 180.9 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00119/1.211, allocations: 0.7842 MB / 0.7543 GB, free: 180.5 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 7.635e-05/1.211, allocations: 305.1 kB / 0.7546 GB, free: 180.2 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006091/1.217, allocations: 4.838 MB / 0.7593 GB, free: 178.4 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008507/1.226, allocations: 9.826 MB / 0.7689 GB, free: 169.2 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01612/1.242, allocations: 15.62 MB / 0.7842 GB, free: 151.4 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001999/1.242, allocations: 51.98 kB / 0.7842 GB, free: 151.3 MB / 0.545 GB Notification: Performance of matching and sorting (n=1190) (initialization): time 0.0437/1.286, allocations: 19.63 MB / 0.8034 GB, free: 131.7 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002239/1.286, allocations: 80 kB / 0.8035 GB, free: 131.6 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003019/1.286, allocations: 172 kB / 0.8036 GB, free: 131.4 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02261/1.309, allocations: 5.971 MB / 0.8094 GB, free: 125.5 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00755/1.317, allocations: 2.129 MB / 0.8115 GB, free: 123.3 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02812/1.345, allocations: 24.78 MB / 0.8357 GB, free: 98.27 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008234/1.353, allocations: 0.5664 MB / 0.8363 GB, free: 97.71 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001679/1.355, allocations: 0.5087 MB / 0.8368 GB, free: 97.2 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.006524/1.361, allocations: 3.101 MB / 0.8398 GB, free: 94.09 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001574/1.363, allocations: 497.5 kB / 0.8403 GB, free: 93.6 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03113/1.394, allocations: 13.04 MB / 0.853 GB, free: 80.5 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.762e-05/1.394, allocations: 52.7 kB / 0.8531 GB, free: 80.45 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.19e-05/1.394, allocations: 8 kB / 0.8531 GB, free: 80.44 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.257e-05/1.394, allocations: 19.94 kB / 0.8531 GB, free: 80.42 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05098/1.445, allocations: 24.76 MB / 0.8773 GB, free: 55.2 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.401e-05/1.445, allocations: 4.594 kB / 0.8773 GB, free: 55.19 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003074/1.448, allocations: 0.5851 MB / 0.8778 GB, free: 54.61 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01934/1.468, allocations: 5.006 MB / 0.8827 GB, free: 49.59 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000703/1.469, allocations: 56.86 kB / 0.8828 GB, free: 49.54 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02183/1.49, allocations: 19.99 MB / 0.9023 GB, free: 29.28 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.01e-06/1.49, allocations: 4 kB / 0.9023 GB, free: 29.27 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2839/1.774, allocations: 17.59 MB / 0.9195 GB, free: 176.3 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001791/1.776, allocations: 0.5466 MB / 0.92 GB, free: 176.2 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002065/1.778, allocations: 61.69 kB / 0.9201 GB, free: 176.2 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004528/1.783, allocations: 265.5 kB / 0.9203 GB, free: 176.2 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001361/1.784, allocations: 196.1 kB / 0.9205 GB, free: 176.2 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0007231/1.785, allocations: 85.47 kB / 0.9206 GB, free: 176.2 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.008163/1.793, allocations: 3.391 MB / 0.9239 GB, free: 176 MB / 0.545 GB Notification: Performance of sort global known variables: time 3.71e-07/1.793, allocations: 3.781 kB / 0.9239 GB, free: 176 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.009436/1.803, allocations: 1.737 MB / 0.9256 GB, free: 176 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.0007861/1.803, allocations: 210.8 kB / 0.9258 GB, free: 175.9 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.0171/1.821, allocations: 11 MB / 0.9366 GB, free: 172.2 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 8.416e-06/1.821, allocations: 0 / 0.9366 GB, free: 172.2 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.005374/1.826, allocations: 4.138 MB / 0.9406 GB, free: 170.4 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008559/1.835, allocations: 0.5908 MB / 0.9412 GB, free: 170.2 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02627/1.861, allocations: 19.91 MB / 0.9606 GB, free: 160 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004558/1.865, allocations: 4.59 MB / 0.9651 GB, free: 158.1 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001999/1.867, allocations: 422 kB / 0.9655 GB, free: 157.7 MB / 0.545 GB Notification: Performance of SimCode: time 6.41e-07/1.868, allocations: 0 / 0.9655 GB, free: 157.7 MB / 0.545 GB Notification: Performance of Templates: time 0.1414/2.009, allocations: 148.4 MB / 1.11 GB, free: 12.75 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