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.002498/0.002498, allocations: 103.4 kB / 17.98 MB, free: 5.367 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.003824/0.003824, allocations: 209.8 kB / 18.92 MB, free: 4.434 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 2.943/2.943, allocations: 227.4 MB / 247.1 MB, free: 10.8 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.4705/0.4705, allocations: 46.11 MB / 344.4 MB, free: 11.78 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002897/0.002897, allocations: 75.22 kB / 417.7 MB, free: 20.11 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2787/0.2817, allocations: 62.44 MB / 480.1 MB, free: 5.648 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical): time 0.6705/0.9522, allocations: 53.1 MB / 0.5207 GB, free: 10.14 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.05549/1.008, allocations: 10.98 MB / 0.5315 GB, free: 6.52 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.02545/1.033, allocations: 235.4 kB / 0.5317 GB, free: 6.48 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01071/1.044, allocations: 3.012 MB / 0.5346 GB, free: 5.613 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.02199/1.066, allocations: 2.355 MB / 0.5369 GB, free: 4.836 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005316/1.072, allocations: 0.9385 MB / 0.5378 GB, free: 4.512 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.02789/1.1, allocations: 7.443 MB / 0.5451 GB, free: 1.062 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02493/1.125, allocations: 4.591 MB / 0.5496 GB, free: 14.43 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01744/1.142, allocations: 2.263 MB / 0.5518 GB, free: 12.93 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01009/1.152, allocations: 3.586 MB / 0.5553 GB, free: 9.531 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00735/1.16, allocations: 488 kB / 0.5558 GB, free: 9.055 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0086/1.168, allocations: 1.494 MB / 0.5572 GB, free: 7.613 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.01145/1.18, allocations: 2.882 MB / 0.56 GB, free: 4.738 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01346/1.193, allocations: 3.256 MB / 0.5632 GB, free: 1.473 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02138/1.215, allocations: 8.167 MB / 0.5712 GB, free: 9.535 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.046e-05/1.215, allocations: 4 kB / 0.5712 GB, free: 9.531 MB / 414.1 MB Notification: Performance of FrontEnd: time 4.148e-06/1.215, allocations: 0 / 0.5712 GB, free: 9.531 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0006214/1.216, allocations: 0 / 0.5712 GB, free: 9.531 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.04218/1.258, allocations: 7.278 MB / 0.5783 GB, free: 2.328 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 9.795e-05/1.258, allocations: 12.03 kB / 0.5783 GB, free: 2.316 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02767/1.286, allocations: 3.923 MB / 0.5822 GB, free: 14.38 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01974/1.306, allocations: 4.068 MB / 0.5861 GB, free: 10.29 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009174/1.307, allocations: 315.8 kB / 0.5864 GB, free: 10.04 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004834/1.312, allocations: 436.5 kB / 0.5868 GB, free: 9.672 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.06201/1.374, allocations: 15.73 MB / 0.6022 GB, free: 9.191 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006892/1.374, allocations: 63.45 kB / 0.6023 GB, free: 9.129 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004243/1.379, allocations: 197 kB / 0.6025 GB, free: 8.953 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0092/1.388, allocations: 3.22 MB / 0.6056 GB, free: 5.73 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.05772/1.446, allocations: 14.17 MB / 0.6194 GB, free: 7.527 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1551/1.601, allocations: 57.76 MB / 0.6758 GB, free: 12.19 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0295/1.631, allocations: 6.601 MB / 0.6823 GB, free: 5.344 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.01201/1.643, allocations: 3.753 MB / 0.686 GB, free: 1.578 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.05396/1.697, allocations: 14.79 MB / 0.7004 GB, free: 2.246 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001332/1.697, allocations: 72.5 kB / 0.7005 GB, free: 2.168 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=292): time 1.391e-05/1.697, allocations: 0 / 0.7005 GB, free: 2.168 MB / 0.5294 GB Notification: Performance of matching and sorting (n=342): time 0.9774/2.674, allocations: 42.46 MB / 0.7419 GB, free: 188.6 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001829/2.675, allocations: 215.1 kB / 0.7421 GB, free: 188.3 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.02063/2.695, allocations: 5.466 MB / 0.7475 GB, free: 186.4 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 0.001584/2.697, allocations: 73.36 kB / 0.7475 GB, free: 186.3 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.005674/2.703, allocations: 4.345 MB / 0.7518 GB, free: 183 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.003915/2.707, allocations: 1.259 MB / 0.753 GB, free: 182 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.01104/2.718, allocations: 1.858 MB / 0.7548 GB, free: 181 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001961/2.718, allocations: 305.1 kB / 0.7551 GB, free: 180.7 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01292/2.731, allocations: 4.842 MB / 0.7598 GB, free: 178.3 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01918/2.75, allocations: 9.825 MB / 0.7694 GB, free: 167.5 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.03721/2.788, allocations: 15.62 MB / 0.7847 GB, free: 149.4 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0003754/2.788, allocations: 52 kB / 0.7847 GB, free: 149.4 MB / 0.545 GB Notification: Performance of matching and sorting (n=1190) (initialization): time 0.07671/2.865, allocations: 19.63 MB / 0.8039 GB, free: 129.7 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 0.0007868/2.866, allocations: 80 kB / 0.804 GB, free: 129.6 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0009842/2.867, allocations: 172 kB / 0.8042 GB, free: 129.4 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.03472/2.901, allocations: 5.947 MB / 0.81 GB, free: 123.5 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01986/2.921, allocations: 2.121 MB / 0.812 GB, free: 121.4 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.06171/2.983, allocations: 26.16 MB / 0.8376 GB, free: 94.93 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01725/3.001, allocations: 0.5608 MB / 0.8381 GB, free: 94.37 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.004542/3.005, allocations: 0.5078 MB / 0.8386 GB, free: 93.86 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.01554/3.021, allocations: 3.095 MB / 0.8416 GB, free: 90.76 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.004035/3.025, allocations: 497.5 kB / 0.8421 GB, free: 90.27 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.05842/3.083, allocations: 13.01 MB / 0.8548 GB, free: 77.19 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001967/3.084, allocations: 51.98 kB / 0.8549 GB, free: 77.14 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001068/3.084, allocations: 12 kB / 0.8549 GB, free: 77.12 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001647/3.084, allocations: 19.94 kB / 0.8549 GB, free: 77.11 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.08893/3.173, allocations: 24.69 MB / 0.879 GB, free: 51.96 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.000127/3.173, allocations: 4 kB / 0.879 GB, free: 51.95 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005579/3.179, allocations: 0.5856 MB / 0.8796 GB, free: 51.37 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.02698/3.206, allocations: 4.97 MB / 0.8844 GB, free: 46.39 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001528/3.207, allocations: 55.98 kB / 0.8845 GB, free: 46.33 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03704/3.244, allocations: 21.34 MB / 0.9053 GB, free: 24.72 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.409e-05/3.245, allocations: 15.94 kB / 0.9054 GB, free: 24.7 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.7501/3.995, allocations: 17.57 MB / 0.9225 GB, free: 176.8 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003225/3.998, allocations: 0.5289 MB / 0.923 GB, free: 176.7 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003513/4.002, allocations: 59.52 kB / 0.9231 GB, free: 176.6 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00744/4.009, allocations: 266 kB / 0.9233 GB, free: 176.6 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002493/4.012, allocations: 194.6 kB / 0.9235 GB, free: 176.6 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001484/4.013, allocations: 95.48 kB / 0.9236 GB, free: 176.5 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.01548/4.029, allocations: 3.393 MB / 0.9269 GB, free: 175.4 MB / 0.545 GB Notification: Performance of sort global known variables: time 6.01e-07/4.029, allocations: 0 / 0.9269 GB, free: 175.4 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.02229/4.051, allocations: 1.74 MB / 0.9286 GB, free: 175.3 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.002873/4.054, allocations: 206.3 kB / 0.9288 GB, free: 175.1 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.04563/4.1, allocations: 15.92 MB / 0.9444 GB, free: 171 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 2.201e-05/4.1, allocations: 0 / 0.9444 GB, free: 171 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.0102/4.11, allocations: 4.133 MB / 0.9484 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.01234/4.122, allocations: 0.6167 MB / 0.949 GB, free: 168.9 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05723/4.18, allocations: 19.83 MB / 0.9684 GB, free: 153.9 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0138/4.194, allocations: 4.603 MB / 0.9729 GB, free: 150.4 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003426/4.197, allocations: 422.6 kB / 0.9733 GB, free: 150 MB / 0.545 GB Notification: Performance of SimCode: time 1.713e-06/4.197, allocations: 0 / 0.9733 GB, free: 150 MB / 0.545 GB Notification: Performance of Templates: time 0.9184/5.116, allocations: 149.7 MB / 1.119 GB, free: 170.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 -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