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.001374/0.001375, allocations: 114 kB / 17.33 MB, free: 6.012 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001514/0.001514, allocations: 205.8 kB / 18.27 MB, free: 5.094 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.372/1.372, allocations: 227.4 MB / 246.4 MB, free: 10.79 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2564/0.2564, allocations: 46.11 MB / 343.8 MB, free: 11.77 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001379/0.001379, allocations: 78.41 kB / 417 MB, free: 20.1 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1166/0.118, allocations: 62.43 MB / 479.5 MB, free: 5.645 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical): time 0.3397/0.4577, allocations: 53.1 MB / 0.5201 GB, free: 10.12 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.03197/0.4897, allocations: 10.99 MB / 0.5308 GB, free: 6.508 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0168/0.5066, allocations: 230.5 kB / 0.531 GB, free: 6.473 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006526/0.5132, allocations: 3.017 MB / 0.534 GB, free: 5.602 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007235/0.5205, allocations: 2.354 MB / 0.5363 GB, free: 4.824 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002217/0.5227, allocations: 0.9351 MB / 0.5372 GB, free: 4.504 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.009114/0.5318, allocations: 7.441 MB / 0.5445 GB, free: 1.059 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005944/0.5378, allocations: 4.588 MB / 0.5489 GB, free: 14.43 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004668/0.5425, allocations: 2.264 MB / 0.5512 GB, free: 12.92 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007116/0.5497, allocations: 3.581 MB / 0.5547 GB, free: 9.52 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001835/0.5515, allocations: 484 kB / 0.5551 GB, free: 9.047 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003739/0.5553, allocations: 1.507 MB / 0.5566 GB, free: 7.594 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003572/0.5589, allocations: 2.876 MB / 0.5594 GB, free: 4.723 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004875/0.5638, allocations: 3.258 MB / 0.5626 GB, free: 1.457 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0117/0.5755, allocations: 10.05 MB / 0.5724 GB, free: 7.637 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.735e-06/0.5755, allocations: 0 / 0.5724 GB, free: 7.637 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.833e-06/0.5756, allocations: 0 / 0.5724 GB, free: 7.637 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0003117/0.5759, allocations: 0 / 0.5724 GB, free: 7.637 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.01779/0.5937, allocations: 7.294 MB / 0.5795 GB, free: 428 kB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.428e-05/0.5937, allocations: 8.031 kB / 0.5795 GB, free: 420 kB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01685/0.6106, allocations: 3.922 MB / 0.5834 GB, free: 12.47 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009373/0.62, allocations: 4.059 MB / 0.5873 GB, free: 8.391 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002961/0.6203, allocations: 322.1 kB / 0.5876 GB, free: 8.133 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001792/0.6221, allocations: 435.8 kB / 0.588 GB, free: 7.766 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02989/0.652, allocations: 15.73 MB / 0.6034 GB, free: 7.277 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002803/0.6524, allocations: 63.44 kB / 0.6035 GB, free: 7.215 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001412/0.6538, allocations: 207.7 kB / 0.6037 GB, free: 7.012 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005036/0.6588, allocations: 3.22 MB / 0.6068 GB, free: 3.789 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02957/0.6884, allocations: 14.17 MB / 0.6206 GB, free: 5.59 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08027/0.7687, allocations: 57.76 MB / 0.677 GB, free: 10.26 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01602/0.7848, allocations: 6.602 MB / 0.6835 GB, free: 3.418 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.006091/0.791, allocations: 3.747 MB / 0.6872 GB, free: 15.66 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02254/0.8135, allocations: 14.79 MB / 0.7016 GB, free: 328 kB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.088e-05/0.8136, allocations: 64.5 kB / 0.7017 GB, free: 256 kB / 0.5294 GB Notification: Performance of pre-optimization done (n=292): time 5.731e-06/0.8136, allocations: 0 / 0.7017 GB, free: 256 kB / 0.5294 GB Notification: Performance of matching and sorting (n=342): time 0.4031/1.217, allocations: 42.47 MB / 0.7431 GB, free: 188.4 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.718e-05/1.217, allocations: 209.8 kB / 0.7433 GB, free: 188.2 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007043/1.224, allocations: 5.468 MB / 0.7487 GB, free: 186.1 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 0.0008792/1.225, allocations: 69.55 kB / 0.7487 GB, free: 186 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.00224/1.227, allocations: 4.343 MB / 0.753 GB, free: 182.3 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.001563/1.229, allocations: 1.261 MB / 0.7542 GB, free: 181.2 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002423/1.231, allocations: 1.857 MB / 0.756 GB, free: 180.2 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 4.746e-05/1.231, allocations: 305.1 kB / 0.7563 GB, free: 179.9 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00557/1.237, allocations: 4.837 MB / 0.761 GB, free: 177.5 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007836/1.245, allocations: 9.826 MB / 0.7706 GB, free: 165.6 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01479/1.259, allocations: 15.62 MB / 0.7859 GB, free: 147.5 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001467/1.26, allocations: 48 kB / 0.7859 GB, free: 147.4 MB / 0.545 GB Notification: Performance of matching and sorting (n=1190) (initialization): time 0.04542/1.305, allocations: 19.63 MB / 0.8051 GB, free: 127.8 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002177/1.305, allocations: 80 kB / 0.8052 GB, free: 127.7 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003346/1.306, allocations: 172 kB / 0.8054 GB, free: 127.5 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02159/1.327, allocations: 5.935 MB / 0.8111 GB, free: 121.6 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007663/1.335, allocations: 2.13 MB / 0.8132 GB, free: 119.5 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02981/1.365, allocations: 26.17 MB / 0.8388 GB, free: 93.01 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009462/1.374, allocations: 0.5614 MB / 0.8393 GB, free: 92.45 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002171/1.376, allocations: 0.5155 MB / 0.8398 GB, free: 91.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.007124/1.384, allocations: 3.09 MB / 0.8428 GB, free: 88.84 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002084/1.386, allocations: 0.4897 MB / 0.8433 GB, free: 88.34 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03063/1.416, allocations: 13.01 MB / 0.856 GB, free: 75.27 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001009/1.416, allocations: 56 kB / 0.8561 GB, free: 75.21 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.695e-05/1.417, allocations: 8 kB / 0.8561 GB, free: 75.2 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.34e-05/1.417, allocations: 18 kB / 0.8561 GB, free: 75.19 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04978/1.466, allocations: 24.69 MB / 0.8802 GB, free: 50.04 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.11e-05/1.467, allocations: 4 kB / 0.8802 GB, free: 50.03 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003602/1.47, allocations: 0.5873 MB / 0.8808 GB, free: 49.45 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01835/1.489, allocations: 4.982 MB / 0.8857 GB, free: 44.46 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0015/1.49, allocations: 59.52 kB / 0.8857 GB, free: 44.4 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02446/1.515, allocations: 21.33 MB / 0.9065 GB, free: 22.8 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.537e-06/1.515, allocations: 15.88 kB / 0.9066 GB, free: 22.78 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.3322/1.847, allocations: 17.57 MB / 0.9237 GB, free: 176.8 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001608/1.849, allocations: 0.5272 MB / 0.9242 GB, free: 176.6 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001132/1.85, allocations: 60.36 kB / 0.9243 GB, free: 176.6 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002832/1.853, allocations: 267 kB / 0.9245 GB, free: 176.6 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008126/1.853, allocations: 202.5 kB / 0.9247 GB, free: 176.5 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003062/1.854, allocations: 84.25 kB / 0.9248 GB, free: 176.5 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.005881/1.86, allocations: 3.395 MB / 0.9281 GB, free: 175.4 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.71e-07/1.86, allocations: 1.062 kB / 0.9281 GB, free: 175.4 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.01071/1.87, allocations: 1.738 MB / 0.9298 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.001129/1.871, allocations: 210.3 kB / 0.93 GB, free: 175.1 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.02806/1.9, allocations: 15.92 MB / 0.9456 GB, free: 170.9 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.453e-05/1.9, allocations: 0 / 0.9456 GB, free: 170.9 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.006155/1.906, allocations: 4.135 MB / 0.9496 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.006907/1.913, allocations: 0.6085 MB / 0.9502 GB, free: 168.9 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02886/1.942, allocations: 19.25 MB / 0.969 GB, free: 153.2 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006822/1.948, allocations: 4.617 MB / 0.9735 GB, free: 149.7 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.007084/1.956, allocations: 2.984 MB / 0.9764 GB, free: 147.5 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001451/1.957, allocations: 347.4 kB / 0.9768 GB, free: 147.2 MB / 0.545 GB Notification: Performance of SimCode: time 3.086e-06/1.957, allocations: 0 / 0.9768 GB, free: 147.2 MB / 0.545 GB Notification: Performance of Templates: time 0.1208/2.078, allocations: 81.17 MB / 1.056 GB, free: 66.05 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