Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.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.SphericalSpherical,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|j1.phi|j1.w",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical") translateModel(ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|j1.phi|j1.w",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001108/0.001108, allocations: 106.2 kB / 17.33 MB, free: 5.996 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001318/0.001318, allocations: 209.8 kB / 18.27 MB, free: 5.07 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.384/1.384, allocations: 227.4 MB / 246.4 MB, free: 10.76 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2379/0.2379, allocations: 46.1 MB / 343.8 MB, free: 11.75 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001675/0.001675, allocations: 75.94 kB / 417 MB, free: 20.09 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1297/0.1314, allocations: 62.44 MB / 479.5 MB, free: 5.625 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical): time 0.2745/0.4059, allocations: 46.68 MB / 0.5138 GB, free: 10.29 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.02368/0.4297, allocations: 9.919 MB / 0.5235 GB, free: 8.117 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01089/0.4406, allocations: 206.6 kB / 0.5237 GB, free: 8.082 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00547/0.4462, allocations: 2.618 MB / 0.5263 GB, free: 7.32 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006385/0.4526, allocations: 1.851 MB / 0.5281 GB, free: 6.703 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002301/0.4549, allocations: 0.8514 MB / 0.5289 GB, free: 6.41 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.008418/0.4633, allocations: 6.055 MB / 0.5348 GB, free: 4.438 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004214/0.4676, allocations: 3.546 MB / 0.5383 GB, free: 2.395 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002855/0.4705, allocations: 1.753 MB / 0.54 GB, free: 1.508 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003284/0.4738, allocations: 2.79 MB / 0.5427 GB, free: 36 kB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008075/0.4746, allocations: 384 kB / 0.5431 GB, free: 36 kB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00269/0.4773, allocations: 1.408 MB / 0.5445 GB, free: 15.55 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002211/0.4795, allocations: 2.196 MB / 0.5466 GB, free: 13.9 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003586/0.4831, allocations: 2.45 MB / 0.549 GB, free: 11.45 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009183/0.4923, allocations: 7.658 MB / 0.5565 GB, free: 3.961 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.594e-06/0.4924, allocations: 0 / 0.5565 GB, free: 3.961 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.562e-06/0.4924, allocations: 0 / 0.5565 GB, free: 3.961 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0002581/0.4927, allocations: 0 / 0.5565 GB, free: 3.961 MB / 398.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1538 * Number of variables: 1538 Notification: Performance of Generate backend data structure: time 0.01468/0.5073, allocations: 5.493 MB / 0.5619 GB, free: 14.5 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.841e-05/0.5074, allocations: 12.03 kB / 0.5619 GB, free: 14.48 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01227/0.5197, allocations: 2.473 MB / 0.5643 GB, free: 12 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007896/0.5277, allocations: 3.302 MB / 0.5675 GB, free: 8.68 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002067/0.5279, allocations: 237.6 kB / 0.5677 GB, free: 8.484 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009998/0.5289, allocations: 335.5 kB / 0.568 GB, free: 8.195 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02094/0.5499, allocations: 10.88 MB / 0.5787 GB, free: 12.69 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001975/0.5502, allocations: 55.52 kB / 0.5787 GB, free: 12.63 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004928/0.5507, allocations: 153.6 kB / 0.5789 GB, free: 12.52 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003207/0.5539, allocations: 2 MB / 0.5808 GB, free: 10.53 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02103/0.5749, allocations: 9.449 MB / 0.5901 GB, free: 1.062 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05689/0.6319, allocations: 41.21 MB / 0.6303 GB, free: 6.824 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01159/0.6435, allocations: 4.268 MB / 0.6345 GB, free: 2.422 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002968/0.6465, allocations: 1.924 MB / 0.6363 GB, free: 500 kB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01212/0.6587, allocations: 7.617 MB / 0.6438 GB, free: 8.539 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.524e-05/0.6588, allocations: 59.5 kB / 0.6438 GB, free: 8.469 MB / 494.1 MB Notification: Performance of pre-optimization done (n=180): time 5.881e-06/0.6588, allocations: 0 / 0.6438 GB, free: 8.469 MB / 494.1 MB Notification: Performance of matching and sorting (n=236): time 0.2017/0.8605, allocations: 40.92 MB / 0.6838 GB, free: 15.54 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001355/0.8606, allocations: 213.9 kB / 0.684 GB, free: 15.29 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008603/0.8693, allocations: 4.297 MB / 0.6882 GB, free: 10.96 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.0005876/0.8699, allocations: 61.7 kB / 0.6883 GB, free: 10.9 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.002564/0.8724, allocations: 3.167 MB / 0.6913 GB, free: 7.734 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.001298/0.8738, allocations: 0.8759 MB / 0.6922 GB, free: 6.867 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003085/0.8768, allocations: 1.352 MB / 0.6935 GB, free: 5.504 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0001118/0.877, allocations: 301.1 kB / 0.6938 GB, free: 5.207 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005438/0.8824, allocations: 3.636 MB / 0.6974 GB, free: 1.566 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007535/0.89, allocations: 7.295 MB / 0.7045 GB, free: 8.473 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.2528/1.143, allocations: 11.62 MB / 0.7158 GB, free: 188 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002179/1.143, allocations: 36.44 kB / 0.7159 GB, free: 188 MB / 0.545 GB Notification: Performance of matching and sorting (n=856) (initialization): time 0.04184/1.185, allocations: 16.21 MB / 0.7317 GB, free: 183.7 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 7.429e-05/1.185, allocations: 58.88 kB / 0.7318 GB, free: 183.7 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001223/1.185, allocations: 129.6 kB / 0.7319 GB, free: 183.7 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02276/1.208, allocations: 6.225 MB / 0.738 GB, free: 182.7 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005728/1.214, allocations: 1.497 MB / 0.7394 GB, free: 182.3 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02992/1.244, allocations: 27.63 MB / 0.7664 GB, free: 161.3 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005788/1.249, allocations: 407.9 kB / 0.7668 GB, free: 160.9 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001238/1.251, allocations: 380 kB / 0.7672 GB, free: 160.6 MB / 0.545 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 582 * Number of states: 0 () * Number of discrete variables: 42 (b3.color[3],b3.color[2],b3.color[1],sphericalSpherical.massColor[3],sphericalSpherical.massColor[2],sphericalSpherical.massColor[1],sphericalSpherical.sphereColor[3],sphericalSpherical.sphereColor[2],sphericalSpherical.sphereColor[1],sphericalSpherical.rodColor[3],sphericalSpherical.rodColor[2],sphericalSpherical.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 (779): * Single equations (assignments): 774 * Array equations: 3 * 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 {(3,51,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.00362/1.254, allocations: 2.225 MB / 0.7693 GB, free: 158.4 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000911/1.255, allocations: 394.9 kB / 0.7697 GB, free: 158.2 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02537/1.281, allocations: 11.3 MB / 0.7807 GB, free: 146.9 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.446e-05/1.281, allocations: 24 kB / 0.7808 GB, free: 146.9 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.738e-05/1.281, allocations: 12 kB / 0.7808 GB, free: 146.9 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.424e-05/1.281, allocations: 14.58 kB / 0.7808 GB, free: 146.8 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04259/1.324, allocations: 20.69 MB / 0.801 GB, free: 125.8 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.073e-05/1.324, allocations: 4 kB / 0.801 GB, free: 125.8 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002112/1.326, allocations: 388 kB / 0.8014 GB, free: 125.4 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.02074/1.347, allocations: 5.31 MB / 0.8066 GB, free: 120.1 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007714/1.347, allocations: 49.34 kB / 0.8066 GB, free: 120 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02806/1.375, allocations: 22.71 MB / 0.8288 GB, free: 97.14 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.483e-06/1.376, allocations: 4 kB / 0.8288 GB, free: 97.14 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02969/1.405, allocations: 14.6 MB / 0.843 GB, free: 82.45 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001252/1.407, allocations: 451.9 kB / 0.8435 GB, free: 81.99 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001376/1.408, allocations: 47.98 kB / 0.8435 GB, free: 81.94 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003064/1.411, allocations: 178.4 kB / 0.8437 GB, free: 81.77 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009438/1.412, allocations: 157 kB / 0.8438 GB, free: 81.61 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003926/1.412, allocations: 63.98 kB / 0.8439 GB, free: 81.55 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.00435/1.417, allocations: 2.705 MB / 0.8465 GB, free: 78.84 MB / 0.545 GB Notification: Performance of sort global known variables: time 2.2e-07/1.417, allocations: 0 / 0.8465 GB, free: 78.84 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.006855/1.424, allocations: 1.354 MB / 0.8479 GB, free: 77.49 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 (167): * Single equations (assignments): 162 * Array equations: 3 * 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 {(3,45,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.000818/1.424, allocations: 190.7 kB / 0.848 GB, free: 77.3 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.01443/1.439, allocations: 9.717 MB / 0.8575 GB, free: 67.63 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.306e-05/1.439, allocations: 4 kB / 0.8575 GB, free: 67.62 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.004494/1.443, allocations: 3.217 MB / 0.8607 GB, free: 64.4 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004762/1.448, allocations: 0.5073 MB / 0.8612 GB, free: 63.91 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02082/1.469, allocations: 14.03 MB / 0.8749 GB, free: 49.8 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004999/1.474, allocations: 3.515 MB / 0.8783 GB, free: 46.25 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.005122/1.479, allocations: 1.956 MB / 0.8802 GB, free: 44.29 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001273/1.481, allocations: 263.4 kB / 0.8805 GB, free: 44.03 MB / 0.545 GB Notification: Performance of SimCode: time 1.563e-06/1.481, allocations: 0 / 0.8805 GB, free: 44.03 MB / 0.545 GB Notification: Performance of Templates: time 0.3507/1.831, allocations: 69.99 MB / 0.9488 GB, free: 171.5 MB / 0.545 GB make -j1 -f ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.makefile (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.sim & ./ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/FourbarVariants/SphericalSpherical/SphericalSpherical.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches