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.001076/0.001076, allocations: 94.22 kB / 16.98 MB, free: 5.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001118/0.001119, allocations: 205 kB / 17.89 MB, free: 5.586 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.524/1.524, allocations: 227.2 MB / 245.9 MB, free: 12.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2383/0.2383, allocations: 45.91 MB / 344 MB, free: 12.39 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003272/0.0003274, allocations: 12 kB / 417.9 MB, free: 20.95 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1692/0.1696, allocations: 63.46 MB / 481.4 MB, free: 5.48 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical): time 0.3441/0.5137, allocations: 45.72 MB / 0.5147 GB, free: 9.934 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.03136/0.5451, allocations: 11.12 MB / 0.5256 GB, free: 9.047 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01312/0.5583, allocations: 227.5 kB / 0.5258 GB, free: 9.012 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01046/0.5688, allocations: 2.276 MB / 0.528 GB, free: 8.586 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.02775/0.5965, allocations: 6.681 MB / 0.5346 GB, free: 7.199 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004903/0.6015, allocations: 0.8353 MB / 0.5354 GB, free: 6.965 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.06838/0.6699, allocations: 49.18 MB / 0.5834 GB, free: 15.14 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.008857/0.6788, allocations: 5.079 MB / 0.5884 GB, free: 10 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003996/0.6828, allocations: 1.565 MB / 0.5899 GB, free: 8.43 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00413/0.687, allocations: 2.274 MB / 0.5921 GB, free: 6.148 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00135/0.6884, allocations: 240 kB / 0.5923 GB, free: 5.914 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003566/0.692, allocations: 1.085 MB / 0.5934 GB, free: 4.828 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003086/0.6951, allocations: 2.4 MB / 0.5957 GB, free: 2.422 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001966/0.697, allocations: 1.205 MB / 0.5969 GB, free: 1.207 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01173/0.7088, allocations: 8.082 MB / 0.6048 GB, free: 9.105 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.502e-06/0.7088, allocations: 4 kB / 0.6048 GB, free: 9.102 MB / 446.1 MB Notification: Performance of FrontEnd: time 3.236e-06/0.7088, allocations: 0 / 0.6048 GB, free: 9.102 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0003981/0.7093, allocations: 0 / 0.6048 GB, free: 9.102 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: 2242 * Number of variables: 2242 Notification: Performance of Generate backend data structure: time 0.01823/0.7275, allocations: 6.469 MB / 0.6111 GB, free: 2.551 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.696e-05/0.7276, allocations: 8.031 kB / 0.6111 GB, free: 2.543 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04964/0.7772, allocations: 9.719 MB / 0.6206 GB, free: 8.797 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01193/0.7892, allocations: 4.369 MB / 0.6249 GB, free: 4.367 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003376/0.7896, allocations: 316 kB / 0.6252 GB, free: 4.055 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002619/0.7922, allocations: 427.7 kB / 0.6256 GB, free: 3.637 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03113/0.8233, allocations: 15.75 MB / 0.641 GB, free: 2.953 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002157/0.8236, allocations: 67.38 kB / 0.6411 GB, free: 2.887 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008828/0.8245, allocations: 203.7 kB / 0.6413 GB, free: 2.688 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005062/0.8296, allocations: 3.22 MB / 0.6444 GB, free: 15.46 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02912/0.8587, allocations: 14.08 MB / 0.6582 GB, free: 1.363 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4148/1.274, allocations: 57.52 MB / 0.7143 GB, free: 146.1 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01662/1.29, allocations: 6.589 MB / 0.7208 GB, free: 144.8 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02663/1.317, allocations: 14.56 MB / 0.735 GB, free: 139.1 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.052e-05/1.317, allocations: 60.91 kB / 0.735 GB, free: 139 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=289): time 7.434e-06/1.317, allocations: 0 / 0.735 GB, free: 139 MB / 0.5294 GB Notification: Performance of matching and sorting (n=339): time 0.1378/1.455, allocations: 42.84 MB / 0.7769 GB, free: 110.5 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001143/1.455, allocations: 225.2 kB / 0.7771 GB, free: 110.3 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009469/1.465, allocations: 5.696 MB / 0.7826 GB, free: 104.6 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.00115/1.466, allocations: 72.44 kB / 0.7827 GB, free: 104.5 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.002859/1.469, allocations: 4.414 MB / 0.787 GB, free: 100.1 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.001943/1.471, allocations: 1.249 MB / 0.7882 GB, free: 98.86 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005119/1.471, allocations: 173 kB / 0.7884 GB, free: 98.7 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0003987/1.472, allocations: 0.6819 MB / 0.7891 GB, free: 98 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005689/1.477, allocations: 4.616 MB / 0.7936 GB, free: 93.38 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007683/1.485, allocations: 9.542 MB / 0.8029 GB, free: 81.47 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.008807/1.494, allocations: 6.493 MB / 0.8092 GB, free: 75.1 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001189/1.494, allocations: 55.94 kB / 0.8093 GB, free: 75.05 MB / 0.5294 GB Notification: Performance of matching and sorting (n=1149) (initialization): time 0.04731/1.541, allocations: 18.95 MB / 0.8278 GB, free: 56.09 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002825/1.542, allocations: 80 kB / 0.8279 GB, free: 56.01 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003929/1.542, allocations: 172 kB / 0.828 GB, free: 55.84 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02258/1.565, allocations: 5.835 MB / 0.8337 GB, free: 50 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008213/1.573, allocations: 2.063 MB / 0.8358 GB, free: 47.93 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02937/1.602, allocations: 24.95 MB / 0.8601 GB, free: 22.71 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008607/1.611, allocations: 0.5515 MB / 0.8607 GB, free: 22.16 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002034/1.613, allocations: 0.5006 MB / 0.8611 GB, free: 21.66 MB / 0.5294 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 (1058): * Single equations (assignments): 1050 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 42} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.007359/1.62, allocations: 3.093 MB / 0.8642 GB, free: 18.56 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001845/1.622, allocations: 0.4936 MB / 0.8646 GB, free: 18.06 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03335/1.656, allocations: 12.69 MB / 0.877 GB, free: 5.305 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001202/1.656, allocations: 57.23 kB / 0.8771 GB, free: 5.25 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.326e-05/1.656, allocations: 8 kB / 0.8771 GB, free: 5.242 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001064/1.656, allocations: 15.95 kB / 0.8771 GB, free: 5.227 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.06792/1.724, allocations: 24.42 MB / 0.901 GB, free: 12.32 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.501e-05/1.724, allocations: 12.53 kB / 0.901 GB, free: 12.3 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0036/1.728, allocations: 0.585 MB / 0.9016 GB, free: 11.72 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0203/1.748, allocations: 4.837 MB / 0.9063 GB, free: 6.871 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001053/1.749, allocations: 61.39 kB / 0.9063 GB, free: 6.812 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02989/1.779, allocations: 20.19 MB / 0.9261 GB, free: 2.359 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.119e-05/1.779, allocations: 7.938 kB / 0.9261 GB, free: 2.352 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.328/2.107, allocations: 17.82 MB / 0.9435 GB, free: 206.4 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00186/2.109, allocations: 0.5479 MB / 0.944 GB, free: 206.2 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00107/2.11, allocations: 57.97 kB / 0.9441 GB, free: 206.2 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002897/2.113, allocations: 261.7 kB / 0.9443 GB, free: 206.2 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007074/2.114, allocations: 194.4 kB / 0.9445 GB, free: 206.1 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002779/2.114, allocations: 84.97 kB / 0.9446 GB, free: 206.1 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.005656/2.12, allocations: 3.589 MB / 0.9481 GB, free: 204.9 MB / 0.5762 GB Notification: Performance of sort global known variables: time 4.1e-07/2.12, allocations: 0 / 0.9481 GB, free: 204.9 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.007703/2.127, allocations: 1.734 MB / 0.9498 GB, free: 204.8 MB / 0.5762 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 (254): * Single equations (assignments): 246 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 38} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0006602/2.128, allocations: 218.2 kB / 0.95 GB, free: 204.6 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.01337/2.141, allocations: 10.61 MB / 0.9603 GB, free: 200.6 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 8.786e-06/2.141, allocations: 0 / 0.9603 GB, free: 200.6 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.004969/2.146, allocations: 4.038 MB / 0.9643 GB, free: 198.9 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00307/2.149, allocations: 0.5764 MB / 0.9648 GB, free: 198.7 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02354/2.173, allocations: 18.39 MB / 0.9828 GB, free: 185.6 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00432/2.177, allocations: 4.749 MB / 0.9874 GB, free: 182.1 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.006521/2.184, allocations: 3 MB / 0.9904 GB, free: 179.4 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001229/2.185, allocations: 351.4 kB / 0.9907 GB, free: 179 MB / 0.5762 GB Notification: Performance of SimCode: time 6.41e-07/2.185, allocations: 0 / 0.9907 GB, free: 179 MB / 0.5762 GB Notification: Performance of Templates: time 0.1185/2.304, allocations: 75.41 MB / 1.064 GB, free: 103.7 MB / 0.5762 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","../files/ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches