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.001503/0.001503, allocations: 116.2 kB / 18.45 MB, free: 4.598 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001875/0.001874, allocations: 206 kB / 19.4 MB, free: 3.656 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.413/1.413, allocations: 227.4 MB / 247.6 MB, free: 10.48 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2163/0.2163, allocations: 46.11 MB / 345 MB, free: 11.51 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001269/0.001269, allocations: 75.88 kB / 482 MB, free: 4.098 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.313/0.3143, allocations: 62.44 MB / 0.5316 GB, free: 13.59 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical): time 0.01243/0.3268, allocations: 12.02 MB / 0.5434 GB, free: 4.145 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.008898/0.3357, allocations: 4.308 MB / 0.5476 GB, free: 0.7734 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002349/0.3381, allocations: 77.19 kB / 0.5477 GB, free: 0.7578 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005209/0.3433, allocations: 2.732 MB / 0.5503 GB, free: 14.54 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005424/0.3488, allocations: 2.042 MB / 0.5523 GB, free: 12.49 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002069/0.3509, allocations: 0.9047 MB / 0.5532 GB, free: 11.58 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.007481/0.3584, allocations: 5.673 MB / 0.5587 GB, free: 5.902 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003941/0.3624, allocations: 3.354 MB / 0.562 GB, free: 2.5 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002926/0.3653, allocations: 1.713 MB / 0.5637 GB, free: 0.7812 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003597/0.369, allocations: 2.52 MB / 0.5662 GB, free: 14.25 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001215/0.3702, allocations: 388 kB / 0.5665 GB, free: 13.87 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003091/0.3733, allocations: 1.389 MB / 0.5679 GB, free: 12.48 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002791/0.3761, allocations: 2.194 MB / 0.57 GB, free: 10.29 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003858/0.38, allocations: 2.431 MB / 0.5724 GB, free: 7.84 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009753/0.3898, allocations: 7.851 MB / 0.5801 GB, free: 15.96 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.64e-06/0.3898, allocations: 0 / 0.5801 GB, free: 15.96 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.844e-06/0.3898, allocations: 0 / 0.5801 GB, free: 15.96 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0002446/0.3901, allocations: 0 / 0.5801 GB, free: 15.96 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: 1538 * Number of variables: 1538 Notification: Performance of Generate backend data structure: time 0.01288/0.403, allocations: 5.49 MB / 0.5854 GB, free: 10.4 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.296e-05/0.403, allocations: 11.97 kB / 0.5854 GB, free: 10.39 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01045/0.4135, allocations: 2.467 MB / 0.5878 GB, free: 7.91 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007841/0.4214, allocations: 3.367 MB / 0.5911 GB, free: 4.484 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002526/0.4217, allocations: 242.5 kB / 0.5914 GB, free: 4.246 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001426/0.4231, allocations: 343.5 kB / 0.5917 GB, free: 3.91 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02052/0.4436, allocations: 10.88 MB / 0.6023 GB, free: 8.285 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000228/0.4439, allocations: 55.44 kB / 0.6024 GB, free: 8.23 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001132/0.445, allocations: 155.8 kB / 0.6025 GB, free: 8.078 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003205/0.4483, allocations: 1.998 MB / 0.6045 GB, free: 6.074 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01859/0.4669, allocations: 9.436 MB / 0.6137 GB, free: 12.62 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05068/0.5176, allocations: 41.05 MB / 0.6538 GB, free: 2.34 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01042/0.528, allocations: 4.27 MB / 0.6579 GB, free: 13.93 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002775/0.5309, allocations: 1.935 MB / 0.6598 GB, free: 11.98 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01175/0.5426, allocations: 7.59 MB / 0.6672 GB, free: 4.016 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.779e-05/0.5427, allocations: 51.55 kB / 0.6673 GB, free: 3.953 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=180): time 5.059e-06/0.5427, allocations: 0 / 0.6673 GB, free: 3.953 MB / 0.5137 GB Notification: Performance of matching and sorting (n=236): time 0.1518/0.6946, allocations: 40.92 MB / 0.7073 GB, free: 10.93 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001143/0.6948, allocations: 205.9 kB / 0.7075 GB, free: 10.69 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006935/0.7017, allocations: 4.305 MB / 0.7117 GB, free: 6.355 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 0.0005028/0.7022, allocations: 57.7 kB / 0.7117 GB, free: 6.293 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.002398/0.7046, allocations: 3.164 MB / 0.7148 GB, free: 3.086 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.001372/0.706, allocations: 0.883 MB / 0.7157 GB, free: 2.191 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002894/0.7089, allocations: 1.356 MB / 0.717 GB, free: 0.8242 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 9.566e-05/0.709, allocations: 305.1 kB / 0.7173 GB, free: 0.5234 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.2578/0.9669, allocations: 3.63 MB / 0.7208 GB, free: 164.6 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006334/0.9732, allocations: 7.3 MB / 0.728 GB, free: 158.4 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01089/0.9841, allocations: 11.62 MB / 0.7393 GB, free: 149.8 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001279/0.9843, allocations: 34.94 kB / 0.7393 GB, free: 149.8 MB / 0.5606 GB Notification: Performance of matching and sorting (n=856) (initialization): time 0.03271/1.017, allocations: 16.21 MB / 0.7552 GB, free: 140.7 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001769/1.017, allocations: 63.98 kB / 0.7552 GB, free: 140.6 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002017/1.017, allocations: 128 kB / 0.7554 GB, free: 140.5 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0197/1.037, allocations: 6.222 MB / 0.7614 GB, free: 134.2 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004556/1.042, allocations: 1.489 MB / 0.7629 GB, free: 132.8 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02836/1.07, allocations: 27.62 MB / 0.7899 GB, free: 104.9 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005255/1.075, allocations: 414.8 kB / 0.7903 GB, free: 104.6 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001169/1.077, allocations: 388 kB / 0.7906 GB, free: 104.2 MB / 0.5606 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.004084/1.081, allocations: 2.214 MB / 0.7928 GB, free: 102 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001008/1.082, allocations: 392.8 kB / 0.7932 GB, free: 101.9 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02438/1.106, allocations: 11.3 MB / 0.8042 GB, free: 90.54 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.162e-05/1.106, allocations: 24 kB / 0.8042 GB, free: 90.52 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.825e-05/1.106, allocations: 13.56 kB / 0.8042 GB, free: 90.5 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.842e-05/1.106, allocations: 15.95 kB / 0.8042 GB, free: 90.49 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0388/1.145, allocations: 20.64 MB / 0.8244 GB, free: 69.48 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.115e-05/1.145, allocations: 7.828 kB / 0.8244 GB, free: 69.47 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001861/1.147, allocations: 388 kB / 0.8248 GB, free: 69.09 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01718/1.164, allocations: 5.308 MB / 0.83 GB, free: 63.78 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005738/1.165, allocations: 44 kB / 0.83 GB, free: 63.73 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02406/1.189, allocations: 22.69 MB / 0.8522 GB, free: 40.84 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.252e-06/1.189, allocations: 4.047 kB / 0.8522 GB, free: 40.84 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02675/1.216, allocations: 14.61 MB / 0.8664 GB, free: 26.13 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001099/1.217, allocations: 447.9 kB / 0.8669 GB, free: 25.67 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001304/1.218, allocations: 47.05 kB / 0.8669 GB, free: 25.62 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003347/1.222, allocations: 179.7 kB / 0.8671 GB, free: 25.45 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001047/1.223, allocations: 157 kB / 0.8672 GB, free: 25.3 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004166/1.223, allocations: 64 kB / 0.8673 GB, free: 25.23 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.004915/1.228, allocations: 2.701 MB / 0.8699 GB, free: 22.53 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.1e-07/1.228, allocations: 0 / 0.8699 GB, free: 22.53 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.006338/1.234, allocations: 1.358 MB / 0.8713 GB, free: 21.17 MB / 0.5606 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.0006952/1.235, allocations: 184.1 kB / 0.8714 GB, free: 20.99 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.01109/1.246, allocations: 8.359 MB / 0.8796 GB, free: 12.65 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 1.112e-05/1.246, allocations: 1.188 kB / 0.8796 GB, free: 12.65 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.004208/1.25, allocations: 3.209 MB / 0.8827 GB, free: 9.434 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003971/1.254, allocations: 0.5037 MB / 0.8832 GB, free: 8.93 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02047/1.275, allocations: 12.24 MB / 0.8952 GB, free: 12.6 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003993/1.279, allocations: 3.472 MB / 0.8986 GB, free: 9.098 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001405/1.28, allocations: 311.4 kB / 0.8989 GB, free: 8.793 MB / 0.5762 GB Notification: Performance of SimCode: time 9.01e-07/1.28, allocations: 5.469 kB / 0.8989 GB, free: 8.789 MB / 0.5762 GB Notification: Performance of Templates: time 0.4235/1.704, allocations: 110.1 MB / 1.006 GB, free: 173.4 MB / 0.6231 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/FourbarVariants/SphericalSpherical/SphericalSpherical.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches