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.001255/0.001255, allocations: 117 kB / 18.45 MB, free: 4.641 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001385/0.001385, allocations: 212.9 kB / 19.4 MB, free: 3.695 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.301/1.301, allocations: 227.4 MB / 247.6 MB, free: 10.46 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1935/0.1935, allocations: 46.09 MB / 344.9 MB, free: 11.5 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001267/0.001267, allocations: 75.88 kB / 482 MB, free: 4.082 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2721/0.2733, allocations: 62.43 MB / 0.5316 GB, free: 13.81 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical): time 0.01438/0.2878, allocations: 15.01 MB / 0.5463 GB, free: 2.012 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.009673/0.2975, allocations: 4.827 MB / 0.551 GB, free: 13.97 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002527/0.3001, allocations: 91.75 kB / 0.5511 GB, free: 13.88 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005497/0.3056, allocations: 3.149 MB / 0.5542 GB, free: 10.72 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005942/0.3116, allocations: 2.591 MB / 0.5567 GB, free: 8.121 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002064/0.3136, allocations: 0.9866 MB / 0.5577 GB, free: 7.133 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.008357/0.322, allocations: 7.047 MB / 0.5645 GB, free: 76 kB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004521/0.3266, allocations: 4.369 MB / 0.5688 GB, free: 11.64 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003031/0.3296, allocations: 2.223 MB / 0.571 GB, free: 9.406 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003714/0.3333, allocations: 3.24 MB / 0.5742 GB, free: 6.156 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008606/0.3342, allocations: 488 kB / 0.5746 GB, free: 5.68 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00234/0.3366, allocations: 1.486 MB / 0.5761 GB, free: 4.191 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002354/0.3389, allocations: 2.864 MB / 0.5789 GB, free: 1.32 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003109/0.3421, allocations: 3.219 MB / 0.582 GB, free: 14.08 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009923/0.352, allocations: 10.38 MB / 0.5921 GB, free: 3.668 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.14e-06/0.352, allocations: 0 / 0.5921 GB, free: 3.668 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.873e-06/0.352, allocations: 0 / 0.5921 GB, free: 3.668 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0002359/0.3523, allocations: 0 / 0.5921 GB, free: 3.668 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.01464/0.3669, allocations: 7.272 MB / 0.5992 GB, free: 12.31 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.641e-05/0.367, allocations: 8.031 kB / 0.5993 GB, free: 12.3 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01418/0.3812, allocations: 3.927 MB / 0.6031 GB, free: 8.359 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008266/0.3895, allocations: 4.13 MB / 0.6071 GB, free: 4.168 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002251/0.3897, allocations: 316.4 kB / 0.6074 GB, free: 3.855 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001206/0.3909, allocations: 431.5 kB / 0.6078 GB, free: 3.434 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02279/0.4137, allocations: 15.73 MB / 0.6232 GB, free: 2.77 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001409/0.4139, allocations: 63.45 kB / 0.6233 GB, free: 2.707 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005492/0.4145, allocations: 199.8 kB / 0.6234 GB, free: 2.512 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004283/0.4188, allocations: 3.216 MB / 0.6266 GB, free: 15.29 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02376/0.4425, allocations: 14.17 MB / 0.6404 GB, free: 1.094 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06554/0.5081, allocations: 57.49 MB / 0.6966 GB, free: 6.031 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01305/0.5212, allocations: 6.619 MB / 0.703 GB, free: 15.16 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004757/0.526, allocations: 3.745 MB / 0.7067 GB, free: 11.4 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.2651/0.7911, allocations: 14.76 MB / 0.7211 GB, free: 161.2 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.054e-05/0.7912, allocations: 66.09 kB / 0.7212 GB, free: 161.2 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=292): time 6.121e-06/0.7912, allocations: 1.125 kB / 0.7212 GB, free: 161.2 MB / 0.5606 GB Notification: Performance of matching and sorting (n=342): time 0.1186/0.9098, allocations: 42.48 MB / 0.7627 GB, free: 134.9 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.417e-05/0.9099, allocations: 218 kB / 0.7629 GB, free: 134.7 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005698/0.9156, allocations: 5.458 MB / 0.7682 GB, free: 129.2 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 0.0006882/0.9163, allocations: 73.3 kB / 0.7683 GB, free: 129.2 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.001604/0.9179, allocations: 4.347 MB / 0.7725 GB, free: 124.8 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.001139/0.9191, allocations: 1.269 MB / 0.7737 GB, free: 123.6 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002134/0.9212, allocations: 1.851 MB / 0.7756 GB, free: 121.7 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 3.811e-05/0.9212, allocations: 301.1 kB / 0.7758 GB, free: 121.4 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00513/0.9264, allocations: 4.843 MB / 0.7806 GB, free: 116.5 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006779/0.9332, allocations: 9.825 MB / 0.7902 GB, free: 104.3 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01384/0.9471, allocations: 15.62 MB / 0.8054 GB, free: 86.2 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001327/0.9472, allocations: 48 kB / 0.8055 GB, free: 86.16 MB / 0.5606 GB Notification: Performance of matching and sorting (n=1190) (initialization): time 0.03609/0.9833, allocations: 19.62 MB / 0.8246 GB, free: 66.49 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001008/0.9835, allocations: 80 kB / 0.8247 GB, free: 66.41 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001879/0.9837, allocations: 172 kB / 0.8249 GB, free: 66.25 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01873/1.002, allocations: 5.954 MB / 0.8307 GB, free: 60.29 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006333/1.009, allocations: 2.117 MB / 0.8328 GB, free: 58.16 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02589/1.035, allocations: 26.16 MB / 0.8583 GB, free: 31.71 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006781/1.042, allocations: 0.5616 MB / 0.8588 GB, free: 31.15 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001545/1.043, allocations: 0.5151 MB / 0.8594 GB, free: 30.64 MB / 0.5606 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.005518/1.049, allocations: 3.097 MB / 0.8624 GB, free: 27.54 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001481/1.05, allocations: 0.4898 MB / 0.8629 GB, free: 27.04 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02815/1.078, allocations: 13.01 MB / 0.8756 GB, free: 13.96 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.552e-05/1.078, allocations: 59.98 kB / 0.8756 GB, free: 13.9 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.755e-05/1.078, allocations: 8 kB / 0.8756 GB, free: 13.89 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.793e-05/1.079, allocations: 19.94 kB / 0.8756 GB, free: 13.88 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04889/1.127, allocations: 24.61 MB / 0.8997 GB, free: 4.789 MB / 0.5763 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.19e-05/1.128, allocations: 4 kB / 0.8997 GB, free: 4.785 MB / 0.5763 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003093/1.131, allocations: 0.5881 MB / 0.9002 GB, free: 4.199 MB / 0.5763 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01804/1.149, allocations: 4.966 MB / 0.9051 GB, free: 15.22 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007492/1.149, allocations: 67.34 kB / 0.9052 GB, free: 15.16 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02757/1.177, allocations: 21.34 MB / 0.926 GB, free: 9.543 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.061e-05/1.177, allocations: 15.88 kB / 0.926 GB, free: 9.527 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03474/1.212, allocations: 17.57 MB / 0.9432 GB, free: 7.785 MB / 0.6231 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001381/1.213, allocations: 0.5336 MB / 0.9437 GB, free: 7.227 MB / 0.6231 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001721/1.215, allocations: 59.98 kB / 0.9438 GB, free: 7.168 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003298/1.218, allocations: 259.6 kB / 0.944 GB, free: 6.914 MB / 0.6231 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009119/1.219, allocations: 197.6 kB / 0.9442 GB, free: 6.723 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004547/1.22, allocations: 87.3 kB / 0.9443 GB, free: 6.641 MB / 0.6231 GB Notification: Performance of sorting global known variables: time 0.00579/1.226, allocations: 3.394 MB / 0.9476 GB, free: 3.266 MB / 0.6231 GB Notification: Performance of sort global known variables: time 1.4e-07/1.226, allocations: 0 / 0.9476 GB, free: 3.266 MB / 0.6231 GB Notification: Performance of remove unused functions: time 0.2381/1.464, allocations: 1.735 MB / 0.9493 GB, free: 206.6 MB / 0.6231 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.001033/1.465, allocations: 206.2 kB / 0.9495 GB, free: 206.5 MB / 0.6231 GB Notification: Performance of simCode: created initialization part: time 0.01495/1.48, allocations: 11.05 MB / 0.9603 GB, free: 204.3 MB / 0.6231 GB Notification: Performance of simCode: created event and clocks part: time 8.586e-06/1.48, allocations: 0 / 0.9603 GB, free: 204.3 MB / 0.6231 GB Notification: Performance of simCode: created simulation system equations: time 0.004891/1.485, allocations: 4.139 MB / 0.9643 GB, free: 202.5 MB / 0.6231 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003211/1.488, allocations: 0.6111 MB / 0.9649 GB, free: 202.2 MB / 0.6231 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02019/1.508, allocations: 16.69 MB / 0.9812 GB, free: 195.2 MB / 0.6231 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003955/1.512, allocations: 4.594 MB / 0.9857 GB, free: 193.6 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001743/1.514, allocations: 417.4 kB / 0.9861 GB, free: 193.2 MB / 0.6231 GB Notification: Performance of SimCode: time 1.633e-06/1.514, allocations: 0 / 0.9861 GB, free: 193.2 MB / 0.6231 GB Notification: Performance of Templates: time 0.1321/1.646, allocations: 150.6 MB / 1.133 GB, free: 45.39 MB / 0.6231 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